Top Fields Constructors Methods
org.bouncycastle.tls.crypto.impl.bc

public Class BcTlsMLKemDomain

extends Object
implements TlsKemDomain
Class Inheritance
All Implemented Interfaces
org.bouncycastle.tls.crypto.TlsKemDomain
Imports
org.bouncycastle.crypto.AsymmetricCipherKeyPair, .SecretWithEncapsulation, org.bouncycastle.pqc.crypto.mlkem.MLKEMExtractor, .MLKEMGenerator, .MLKEMKeyGenerationParameters, .MLKEMKeyPairGenerator, .MLKEMParameters, .MLKEMPrivateKeyParameters, .MLKEMPublicKeyParameters, org.bouncycastle.tls.NamedGroup, org.bouncycastle.tls.crypto.TlsAgreement, .TlsKemConfig, .TlsKemDomain

Field Summary

Modifier and TypeField and Description
protected final TlsKemConfig
protected final BcTlsCrypto
protected final MLKEMParameters
protected final boolean

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public BcTlsSecret
adoptLocalSecret(byte[] secret)

public TlsAgreement
public BcTlsSecret
decapsulate(MLKEMPrivateKeyParameters privateKey, byte[] ciphertext)

public MLKEMPublicKeyParameters
decodePublicKey(byte[] encoding)

public SecretWithEncapsulation
public byte[]
public AsymmetricCipherKeyPair
public static MLKEMParameters
public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

configback to summary
protected final TlsKemConfig config
cryptoback to summary
protected final BcTlsCrypto crypto
domainParametersback to summary
protected final MLKEMParameters domainParameters
isServerback to summary
protected final boolean isServer

Constructor Detail

BcTlsMLKemDomainback to summary
public BcTlsMLKemDomain(BcTlsCrypto crypto, TlsKemConfig kemConfig)

Method Detail

adoptLocalSecretback to summary
public BcTlsSecret adoptLocalSecret(byte[] secret)
createKemback to summary
public TlsAgreement createKem()

Implements org.bouncycastle.tls.crypto.TlsKemDomain.createKem.

decapsulateback to summary
public BcTlsSecret decapsulate(MLKEMPrivateKeyParameters privateKey, byte[] ciphertext)
decodePublicKeyback to summary
public MLKEMPublicKeyParameters decodePublicKey(byte[] encoding)
encapsulateback to summary
public SecretWithEncapsulation encapsulate(MLKEMPublicKeyParameters publicKey)
encodePublicKeyback to summary
public byte[] encodePublicKey(MLKEMPublicKeyParameters publicKey)
generateKeyPairback to summary
public AsymmetricCipherKeyPair generateKeyPair()
getDomainParametersback to summary
public static MLKEMParameters getDomainParameters(TlsKemConfig kemConfig)
isServerback to summary
public boolean isServer()