| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static enum |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public KEMSpi. | engineNewDecapsulator(PrivateKey privateKey, AlgorithmParameterSpec spec)
Implements javax. Creates a KEM decapsulator on the KEM receiver side. |
| public KEMSpi. | engineNewEncapsulator(PublicKey publicKey, AlgorithmParameterSpec spec, SecureRandom secureRandom)
Implements javax. Creates a KEM encapsulator on the KEM sender side. |
| DHasKEM | back to summary |
|---|---|
| public DHasKEM() | |
| engineNewDecapsulator | back to summary |
|---|---|
| public KEMSpi. Implements javax. Doc from javax. Creates a KEM decapsulator on the KEM receiver side.
| |
| engineNewEncapsulator | back to summary |
|---|---|
| public KEMSpi. Implements javax. Doc from javax. Creates a KEM encapsulator on the KEM sender side.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final DHasKEM. | |
| private final PublicKey | |
| private final PrivateKey | |
| private final SecureRandom |
| Access | Constructor and Description |
|---|---|
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public SecretKey | engineDecapsulate(byte[] encapsulation, int from, int to, String algorithm)
Implements javax. The key decapsulation function. |
| public KEM. | engineEncapsulate(int from, int to, String algorithm)
Implements javax. The key encapsulation function. |
| public int | engineEncapsulationSize()
Implements javax. Returns the size of the key encapsulation message. |
| public int | engineSecretSize()
Implements javax. Returns the size of the shared secret. |
| private DHasKEM. | |
| private SecretKey |
| params | back to summary |
|---|---|
| private final DHasKEM. | |
| pkR | back to summary |
|---|---|
| private final PublicKey pkR | |
| skR | back to summary |
|---|---|
| private final PrivateKey skR | |
| sr | back to summary |
|---|---|
| private final SecureRandom sr | |
| Handler | back to summary |
|---|---|
| pack-priv Handler(PublicKey pk, PrivateKey sk, SecureRandom sr) throws InvalidKeyException | |
| engineDecapsulate | back to summary |
|---|---|
| public SecretKey engineDecapsulate(byte[] encapsulation, int from, int to, String algorithm) throws DecapsulateException Implements javax. Doc from javax. The key decapsulation function. An invocation of this method recovers the secret key from the key encapsulation message.
An implementation must support the case where
| |
| engineEncapsulate | back to summary |
|---|---|
| public KEM. Implements javax. Doc from javax. The key encapsulation function.
Each invocation of this method must generate a new secret key and key
encapsulation message that is returned in an
An implementation must support the case where
| |
| engineEncapsulationSize | back to summary |
|---|---|
| public int engineEncapsulationSize() Implements javax. Doc from javax. Returns the size of the key encapsulation message.
| |
| engineSecretSize | back to summary |
|---|---|
| public int engineSecretSize() Implements javax. Doc from javax. Returns the size of the shared secret.
| |
| paramsFromKey | back to summary |
|---|---|
| private DHasKEM. | |
| sub | back to summary |
|---|---|
| private SecretKey sub(SecretKey key, int from, int to) | |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final String | |
| public static final DHasKEM. | |
| public static final DHasKEM. | |
| public static final DHasKEM. | |
| private final int | |
| private final int | |
| private final AlgorithmParameterSpec | |
| public static final DHasKEM. | |
| public static final DHasKEM. |
| Access | Constructor and Description |
|---|---|
| private | Params(int secretLen, int publicKeyLen, String kaAlgorithm, String keyAlgorithm, AlgorithmParameterSpec spec)
|
| Modifier and Type | Method and Description |
|---|---|
| private PublicKey | |
| private SecretKey | |
| private KeyPair | |
| private boolean | |
| private byte[] | |
| public static DHasKEM. | |
| public static DHasKEM. |
| kaAlgorithm | back to summary |
|---|---|
| private final String kaAlgorithm | |
| keyAlgorithm | back to summary |
|---|---|
| private final String keyAlgorithm | |
| P256 | back to summary |
|---|---|
| public static final DHasKEM. | |
| P384 | back to summary |
|---|---|
| public static final DHasKEM. | |
| P521 | back to summary |
|---|---|
| public static final DHasKEM. | |
| publicKeyLen | back to summary |
|---|---|
| private final int publicKeyLen | |
| secretLen | back to summary |
|---|---|
| private final int secretLen | |
| spec | back to summary |
|---|---|
| private final AlgorithmParameterSpec spec | |
| X25519 | back to summary |
|---|---|
| public static final DHasKEM. | |
| X448 | back to summary |
|---|---|
| public static final DHasKEM. | |
| Params | back to summary |
|---|---|
| private Params(int secretLen, int publicKeyLen, String kaAlgorithm, String keyAlgorithm, AlgorithmParameterSpec spec) | |
| DeserializePublicKey | back to summary |
|---|---|
| private PublicKey DeserializePublicKey(byte[] data) throws IOException, NoSuchAlgorithmException, InvalidKeySpecException | |
| DH | back to summary |
|---|---|
| private SecretKey DH(String alg, PrivateKey skE, PublicKey pkR) throws NoSuchAlgorithmException, InvalidKeyException | |
| generateKeyPair | back to summary |
|---|---|
| private KeyPair generateKeyPair(SecureRandom sr) | |
| isEC | back to summary |
|---|---|
| private boolean isEC() | |
| SerializePublicKey | back to summary |
|---|---|
| private byte[] SerializePublicKey(PublicKey k) | |
| valueOf | back to summary |
|---|---|
| public static DHasKEM. | |
| values | back to summary |
|---|---|
| public static DHasKEM. | |