public class JceTlsMLKemDomain extends java.lang.Object implements TlsKemDomain
| Modifier and Type | Field and Description |
|---|---|
protected JcaTlsCrypto |
crypto |
protected boolean |
isServer |
protected java.lang.String |
kemName |
| Constructor and Description |
|---|
JceTlsMLKemDomain(JcaTlsCrypto crypto,
TlsKemConfig kemConfig) |
| Modifier and Type | Method and Description |
|---|---|
JceTlsSecret |
adoptLocalSecret(byte[] secret) |
TlsAgreement |
createKem() |
JceTlsSecret |
decapsulate(java.security.PrivateKey privateKey,
byte[] ciphertext) |
java.security.PublicKey |
decodePublicKey(byte[] encoding) |
org.bouncycastle.jcajce.SecretKeyWithEncapsulation |
encapsulate(java.security.PublicKey publicKey) |
byte[] |
encodePublicKey(java.security.PublicKey publicKey) |
java.security.KeyPair |
generateKeyPair() |
boolean |
isServer() |
protected final JcaTlsCrypto crypto
protected final java.lang.String kemName
protected final boolean isServer
public JceTlsMLKemDomain(JcaTlsCrypto crypto, TlsKemConfig kemConfig)
public JceTlsSecret adoptLocalSecret(byte[] secret)
public TlsAgreement createKem()
createKem in interface TlsKemDomainpublic JceTlsSecret decapsulate(java.security.PrivateKey privateKey, byte[] ciphertext)
public java.security.PublicKey decodePublicKey(byte[] encoding)
throws java.io.IOException
java.io.IOExceptionpublic org.bouncycastle.jcajce.SecretKeyWithEncapsulation encapsulate(java.security.PublicKey publicKey)
public byte[] encodePublicKey(java.security.PublicKey publicKey)
throws java.io.IOException
java.io.IOExceptionpublic java.security.KeyPair generateKeyPair()
public boolean isServer()