Class JceTlsMLKemDomain
- java.lang.Object
-
- org.bouncycastle.tls.crypto.impl.jcajce.JceTlsMLKemDomain
-
- All Implemented Interfaces:
TlsKemDomain
public class JceTlsMLKemDomain extends java.lang.Object implements TlsKemDomain
-
-
Field Summary
Fields Modifier and Type Field Description protected JcaTlsCryptocryptoprotected booleanisServerprotected org.bouncycastle.pqc.crypto.crystals.kyber.KyberParameterskyberParameters
-
Constructor Summary
Constructors Constructor Description JceTlsMLKemDomain(JcaTlsCrypto crypto, TlsKemConfig kemConfig)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description JceTlsSecretadoptLocalSecret(byte[] secret)TlsAgreementcreateKem()JceTlsSecretdecapsulate(org.bouncycastle.pqc.crypto.crystals.kyber.KyberPrivateKeyParameters privateKey, byte[] ciphertext)org.bouncycastle.pqc.crypto.crystals.kyber.KyberPublicKeyParametersdecodePublicKey(byte[] encoding)org.bouncycastle.crypto.SecretWithEncapsulationencapsulate(org.bouncycastle.pqc.crypto.crystals.kyber.KyberPublicKeyParameters publicKey)byte[]encodePublicKey(org.bouncycastle.pqc.crypto.crystals.kyber.KyberPublicKeyParameters publicKey)org.bouncycastle.crypto.AsymmetricCipherKeyPairgenerateKeyPair()protected static org.bouncycastle.pqc.crypto.crystals.kyber.KyberParametersgetKyberParameters(int namedGroup)booleanisServer()
-
-
-
Field Detail
-
crypto
protected final JcaTlsCrypto crypto
-
kyberParameters
protected final org.bouncycastle.pqc.crypto.crystals.kyber.KyberParameters kyberParameters
-
isServer
protected final boolean isServer
-
-
Constructor Detail
-
JceTlsMLKemDomain
public JceTlsMLKemDomain(JcaTlsCrypto crypto, TlsKemConfig kemConfig)
-
-
Method Detail
-
getKyberParameters
protected static org.bouncycastle.pqc.crypto.crystals.kyber.KyberParameters getKyberParameters(int namedGroup)
-
adoptLocalSecret
public JceTlsSecret adoptLocalSecret(byte[] secret)
-
createKem
public TlsAgreement createKem()
- Specified by:
createKemin interfaceTlsKemDomain
-
decapsulate
public JceTlsSecret decapsulate(org.bouncycastle.pqc.crypto.crystals.kyber.KyberPrivateKeyParameters privateKey, byte[] ciphertext)
-
decodePublicKey
public org.bouncycastle.pqc.crypto.crystals.kyber.KyberPublicKeyParameters decodePublicKey(byte[] encoding)
-
encapsulate
public org.bouncycastle.crypto.SecretWithEncapsulation encapsulate(org.bouncycastle.pqc.crypto.crystals.kyber.KyberPublicKeyParameters publicKey)
-
encodePublicKey
public byte[] encodePublicKey(org.bouncycastle.pqc.crypto.crystals.kyber.KyberPublicKeyParameters publicKey)
-
generateKeyPair
public org.bouncycastle.crypto.AsymmetricCipherKeyPair generateKeyPair()
-
isServer
public boolean isServer()
-
-