Class BcTlsMLKemDomain
java.lang.Object
org.bouncycastle.tls.crypto.impl.bc.BcTlsMLKemDomain
- All Implemented Interfaces:
TlsKemDomain
-
Field Summary
Modifier and TypeFieldDescriptionprotected final BcTlsCrypto
protected final boolean
protected final org.bouncycastle.pqc.crypto.mlkem.MLKEMParameters
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionadoptLocalSecret
(byte[] secret) decapsulate
(org.bouncycastle.pqc.crypto.mlkem.MLKEMPrivateKeyParameters privateKey, byte[] ciphertext) org.bouncycastle.pqc.crypto.mlkem.MLKEMPublicKeyParameters
decodePublicKey
(byte[] encoding) org.bouncycastle.crypto.SecretWithEncapsulation
encapsulate
(org.bouncycastle.pqc.crypto.mlkem.MLKEMPublicKeyParameters publicKey) byte[]
encodePublicKey
(org.bouncycastle.pqc.crypto.mlkem.MLKEMPublicKeyParameters publicKey) org.bouncycastle.crypto.AsymmetricCipherKeyPair
protected static org.bouncycastle.pqc.crypto.mlkem.MLKEMParameters
getKyberParameters
(int namedGroup) boolean
isServer()
-
Field Details
-
crypto
-
kyberParameters
protected final org.bouncycastle.pqc.crypto.mlkem.MLKEMParameters kyberParameters -
isServer
protected final boolean isServer
-
-
Constructor Details
-
BcTlsMLKemDomain
-
-
Method Details
-
getKyberParameters
protected static org.bouncycastle.pqc.crypto.mlkem.MLKEMParameters getKyberParameters(int namedGroup) -
adoptLocalSecret
-
createKem
- Specified by:
createKem
in interfaceTlsKemDomain
-
decapsulate
public BcTlsSecret decapsulate(org.bouncycastle.pqc.crypto.mlkem.MLKEMPrivateKeyParameters privateKey, byte[] ciphertext) -
decodePublicKey
public org.bouncycastle.pqc.crypto.mlkem.MLKEMPublicKeyParameters decodePublicKey(byte[] encoding) -
encapsulate
public org.bouncycastle.crypto.SecretWithEncapsulation encapsulate(org.bouncycastle.pqc.crypto.mlkem.MLKEMPublicKeyParameters publicKey) -
encodePublicKey
public byte[] encodePublicKey(org.bouncycastle.pqc.crypto.mlkem.MLKEMPublicKeyParameters publicKey) -
generateKeyPair
public org.bouncycastle.crypto.AsymmetricCipherKeyPair generateKeyPair() -
isServer
public boolean isServer()
-