| Modifier and Type | Class and Description |
|---|---|
| private static record | |
| private static enum | |
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final byte[] | |
| private static final byte[] | |
| private static final byte[] | |
| private static final byte[] | |
| private static final byte[] | |
| private static final byte[] | |
| private static final byte[] | |
| private static final byte[] |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static byte[] | |
| public KEMSpi. | |
| public KEMSpi. | engineNewAuthEncapsulator(PublicKey pkR, PrivateKey skS, AlgorithmParameterSpec spec, SecureRandom secureRandom)
|
| public KEMSpi. | engineNewDecapsulator(PrivateKey sk, AlgorithmParameterSpec spec)
Implements javax. Creates a KEM decapsulator on the KEM receiver side. |
| public KEMSpi. | engineNewEncapsulator(PublicKey pk, AlgorithmParameterSpec spec, SecureRandom secureRandom)
Implements javax. Creates a KEM encapsulator on the KEM sender side. |
| private static SecureRandom | |
| public static byte[] | |
| public static HKDFParameterSpec | labeledExpand(HKDFParameterSpec.
|
| public static HKDFParameterSpec | |
| public static HKDFParameterSpec. | |
| private static byte[] | |
| private DHKEM. |
| CANDIDATE | back to summary |
|---|---|
| private static final byte[] CANDIDATE | |
| DKP_PRK | back to summary |
|---|---|
| private static final byte[] DKP_PRK | |
| EAE_PRK | back to summary |
|---|---|
| private static final byte[] EAE_PRK | |
| EMPTY | back to summary |
|---|---|
| private static final byte[] EMPTY | |
| HPKE_V1 | back to summary |
|---|---|
| private static final byte[] HPKE_V1 | |
| KEM | back to summary |
|---|---|
| private static final byte[] KEM | |
| SHARED_SECRET | back to summary |
|---|---|
| private static final byte[] SHARED_SECRET | |
| SK | back to summary |
|---|---|
| private static final byte[] SK | |
| DHKEM | back to summary |
|---|---|
| public DHKEM() | |
| concat | back to summary |
|---|---|
| private static byte[] concat(byte[]... inputs) | |
| engineNewAuthDecapsulator | back to summary |
|---|---|
| public KEMSpi. | |
| engineNewAuthEncapsulator | back to summary |
|---|---|
| public KEMSpi. | |
| 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.
| |
| getSecureRandom | back to summary |
|---|---|
| private static SecureRandom getSecureRandom(SecureRandom userSR) | |
| i2OSP | back to summary |
|---|---|
| public static byte[] i2OSP(int n, int w) | |
| labeledExpand | back to summary |
|---|---|
| public static HKDFParameterSpec labeledExpand(HKDFParameterSpec. | |
| labeledExpand | back to summary |
|---|---|
| public static HKDFParameterSpec labeledExpand(SecretKey prk, byte[] suiteId, byte[] label, byte[] info, int length) | |
| labeledExtract | back to summary |
|---|---|
| public static HKDFParameterSpec. | |
| labeledInfo | back to summary |
|---|---|
| private static byte[] labeledInfo(byte[] suiteId, byte[] label, byte[] info, int length) | |
| paramsFromKey | back to summary |
|---|---|
| private DHKEM. | |
| Modifier and Type | Field and Description |
|---|---|
| private final DHKEM. | |
| private final PublicKey | |
| private final PublicKey | |
| private final SecureRandom | secureRandom
Record Component accessed by secureRandom(). |
| private final PrivateKey | |
| private final PrivateKey |
| Access | Constructor and Description |
|---|---|
| private | Handler(DHKEM.
|
| 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. |
| public final boolean | equals(Object o)
Implements abstract java. Indicates whether some other object is "equal to" this one. |
| public final int | |
| public DHKEM. | |
| public PublicKey | |
| public PublicKey | |
| public SecureRandom | |
| public PrivateKey | |
| public PrivateKey | |
| public final String | toString()
Implements abstract java. Returns a string representation of the record. |
| params | back to summary |
|---|---|
| private final DHKEM. Record Component accessed by params(). | |
| pkR | back to summary |
|---|---|
| private final PublicKey pkR Record Component accessed by pkR(). | |
| pkS | back to summary |
|---|---|
| private final PublicKey pkS Record Component accessed by pkS(). | |
| secureRandom | back to summary |
|---|---|
| private final SecureRandom secureRandom Record Component accessed by secureRandom(). | |
| skR | back to summary |
|---|---|
| private final PrivateKey skR Record Component accessed by skR(). | |
| skS | back to summary |
|---|---|
| private final PrivateKey skS Record Component accessed by skS(). | |
| Handler | back to summary |
|---|---|
| private Handler(DHKEM. | |
| 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.
| |
| equals | back to summary |
|---|---|
| public final boolean equals(Object o) Implements abstract java. Doc from java. Indicates whether some other object is "equal to" this one. In addition
to the general contract of
R copy = new R(r.c1(), r.c2(), ..., r.cn());
then it must be the case that r.equals(copy).
| |
| hashCode | back to summary |
|---|---|
| public final int hashCode() Implements abstract java. Doc from java. Returns a hash code value for the record.
Obeys the general contract of | |
| params | back to summary |
|---|---|
| public DHKEM. Record Component getter of params. | |
| pkR | back to summary |
|---|---|
| public PublicKey pkR() Record Component getter of pkR. | |
| pkS | back to summary |
|---|---|
| public PublicKey pkS() Record Component getter of pkS. | |
| secureRandom | back to summary |
|---|---|
| public SecureRandom secureRandom() Record Component getter of secureRandom. | |
| skR | back to summary |
|---|---|
| public PrivateKey skR() Record Component getter of skR. | |
| skS | back to summary |
|---|---|
| public PrivateKey skS() Record Component getter of skS. | |
| toString | back to summary |
|---|---|
| public final String toString() Implements abstract java. Doc from java. Returns a string representation of the record.
In accordance with the general contract of In addition to this general contract, record classes must further participate in the invariant that any two records which are equal must produce equal strings. This invariant is necessarily relaxed in the rare case where corresponding equal component values might fail to produce equal strings for themselves. | |
| Modifier and Type | Field and Description |
|---|---|
| private final String | |
| private final String | |
| private final int | |
| private final String | |
| private final int | |
| private final int | |
| private final int | |
| public static final DHKEM. | |
| public static final DHKEM. | |
| public static final DHKEM. | |
| private final AlgorithmParameterSpec | |
| private final byte[] | |
| public static final DHKEM. | |
| public static final DHKEM. |
| Access | Constructor and Description |
|---|---|
| private | Params(int kem_id, int nsecret, int nsk, int npk, String kaAlgorithm, String keyAlgorithm, AlgorithmParameterSpec spec, String hkdfAlgorithm)
|
| Modifier and Type | Method and Description |
|---|---|
| private SecretKey | |
| public KeyPair | |
| private PrivateKey | |
| private PublicKey | |
| private SecretKey | |
| private SecretKey | |
| private KeyPair | |
| private PublicKey | |
| private boolean | |
| private byte[] | |
| public static DHKEM. | |
| public static DHKEM. |
| hkdfAlgorithm | back to summary |
|---|---|
| private final String hkdfAlgorithm | |
| kaAlgorithm | back to summary |
|---|---|
| private final String kaAlgorithm | |
| kem_id | back to summary |
|---|---|
| private final int kem_id | |
| keyAlgorithm | back to summary |
|---|---|
| private final String keyAlgorithm | |
| npk | back to summary |
|---|---|
| private final int npk | |
| nsecret | back to summary |
|---|---|
| private final int nsecret | |
| nsk | back to summary |
|---|---|
| private final int nsk | |
| P256 | back to summary |
|---|---|
| public static final DHKEM. | |
| P384 | back to summary |
|---|---|
| public static final DHKEM. | |
| P521 | back to summary |
|---|---|
| public static final DHKEM. | |
| spec | back to summary |
|---|---|
| private final AlgorithmParameterSpec spec | |
| suiteId | back to summary |
|---|---|
| private final byte[] suiteId | |
| X25519 | back to summary |
|---|---|
| public static final DHKEM. | |
| X448 | back to summary |
|---|---|
| public static final DHKEM. | |
| Params | back to summary |
|---|---|
| private Params(int kem_id, int nsecret, int nsk, int npk, String kaAlgorithm, String keyAlgorithm, AlgorithmParameterSpec spec, String hkdfAlgorithm) | |
| deriveKey | back to summary |
|---|---|
| private SecretKey deriveKey(String alg, int from, int to, byte[] kem_context, SecretKey... dhs) throws NoSuchAlgorithmException | |
| deriveKeyPair | back to summary |
|---|---|
| public KeyPair deriveKeyPair(byte[] ikm) throws Exception | |
| deserializePrivateKey | back to summary |
|---|---|
| private PrivateKey deserializePrivateKey(byte[] data) throws Exception | |
| deserializePublicKey | back to summary |
|---|---|
| private PublicKey deserializePublicKey(byte[] data) throws IOException, NoSuchAlgorithmException, InvalidKeySpecException | |
| dh | back to summary |
|---|---|
| private SecretKey dh(PrivateKey skE, PublicKey pkR) throws NoSuchAlgorithmException, InvalidKeyException | |
| extractAndExpand | back to summary |
|---|---|
| private SecretKey extractAndExpand(byte[] kem_context, String alg, SecretKey... dhs) throws NoSuchAlgorithmException | |
| generateKeyPair | back to summary |
|---|---|
| private KeyPair generateKeyPair(SecureRandom sr) | |
| getPublicKey | back to summary |
|---|---|
| private PublicKey getPublicKey(PrivateKey sk) throws InvalidKeyException | |
| isEC | back to summary |
|---|---|
| private boolean isEC() | |
| serializePublicKey | back to summary |
|---|---|
| private byte[] serializePublicKey(PublicKey k) | |
| valueOf | back to summary |
|---|---|
| public static DHKEM. | |
| values | back to summary |
|---|---|
| public static DHKEM. | |
| Modifier and Type | Field and Description |
|---|---|
| private final byte[] | |
| private static final long |
| Access | Constructor and Description |
|---|---|
| public |
| ikm | back to summary |
|---|---|
| private final byte[] ikm | |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID Hides java. | |
| RFC9180DeriveKeyPairSR | back to summary |
|---|---|
| public RFC9180DeriveKeyPairSR(byte[] ikm) | |
| derive | back to summary |
|---|---|
| private KeyPair derive(DHKEM. | |
| derive | back to summary |
|---|---|
| public KeyPair derive(int kem_id) | |