public class BcTlsMLKemDomain extends java.lang.Object implements TlsKemDomain
| Modifier and Type | Field and Description |
|---|---|
protected BcTlsCrypto |
crypto |
protected org.bouncycastle.crypto.params.MLKEMParameters |
domainParameters |
protected boolean |
isServer |
| Constructor and Description |
|---|
BcTlsMLKemDomain(BcTlsCrypto crypto,
TlsKemConfig kemConfig) |
| Modifier and Type | Method and Description |
|---|---|
BcTlsSecret |
adoptLocalSecret(byte[] secret) |
TlsAgreement |
createKem() |
BcTlsSecret |
decapsulate(org.bouncycastle.crypto.params.MLKEMPrivateKeyParameters privateKey,
byte[] ciphertext) |
org.bouncycastle.crypto.params.MLKEMPublicKeyParameters |
decodePublicKey(byte[] encoding) |
org.bouncycastle.crypto.SecretWithEncapsulation |
encapsulate(org.bouncycastle.crypto.params.MLKEMPublicKeyParameters publicKey) |
byte[] |
encodePublicKey(org.bouncycastle.crypto.params.MLKEMPublicKeyParameters publicKey) |
org.bouncycastle.crypto.AsymmetricCipherKeyPair |
generateKeyPair() |
static org.bouncycastle.crypto.params.MLKEMParameters |
getDomainParameters(TlsKemConfig kemConfig) |
boolean |
isServer() |
protected final BcTlsCrypto crypto
protected final org.bouncycastle.crypto.params.MLKEMParameters domainParameters
protected final boolean isServer
public BcTlsMLKemDomain(BcTlsCrypto crypto, TlsKemConfig kemConfig)
public static org.bouncycastle.crypto.params.MLKEMParameters getDomainParameters(TlsKemConfig kemConfig)
public BcTlsSecret adoptLocalSecret(byte[] secret)
public TlsAgreement createKem()
createKem in interface TlsKemDomainpublic BcTlsSecret decapsulate(org.bouncycastle.crypto.params.MLKEMPrivateKeyParameters privateKey, byte[] ciphertext)
public org.bouncycastle.crypto.params.MLKEMPublicKeyParameters decodePublicKey(byte[] encoding)
public org.bouncycastle.crypto.SecretWithEncapsulation encapsulate(org.bouncycastle.crypto.params.MLKEMPublicKeyParameters publicKey)
public byte[] encodePublicKey(org.bouncycastle.crypto.params.MLKEMPublicKeyParameters publicKey)
public org.bouncycastle.crypto.AsymmetricCipherKeyPair generateKeyPair()
public boolean isServer()