| Modifier and Type | Field and Description |
|---|---|
| public static final short | |
| public static final short | |
| public static final short | |
| public static final short | |
| private final short | |
| private final byte[] | |
| private final byte[] | |
| private final DHKEM | |
| private final HKDF | |
| public static final short | |
| public static final short | |
| public static final short | |
| private final short | |
| public static final short | |
| public static final short | |
| public static final short | |
| public static final short | |
| public static final short | |
| private final short | |
| private final byte | |
| public static final byte | |
| public static final byte | |
| public static final byte | |
| public static final byte | |
| pack-priv short |
| Access | Constructor and Description |
|---|---|
| public | HPKE(byte mode, short kemId, short kdfId, short aeadId)
Hybrid Public Key Encryption as described in RFC9180. |
| Modifier and Type | Method and Description |
|---|---|
| public AsymmetricCipherKeyPair | |
| public AsymmetricCipherKeyPair | |
| public AsymmetricKeyParameter | |
| public AsymmetricCipherKeyPair | |
| private HPKEContext | |
| public byte[] | open(byte[] enc, AsymmetricCipherKeyPair skR, byte[] info, byte[] aad, byte[] ct, byte[] psk, byte[] pskId, AsymmetricKeyParameter pkS)
|
| public byte[] | receiveExport(byte[] enc, AsymmetricCipherKeyPair skR, byte[] info, byte[] exporterContext, int L, byte[] psk, byte[] pskId, AsymmetricKeyParameter pkS)
|
| public byte[][] | seal(AsymmetricKeyParameter pkR, byte[] info, byte[] aad, byte[] pt, byte[] psk, byte[] pskId, AsymmetricCipherKeyPair skS)
|
| public byte[][] | sendExport(AsymmetricKeyParameter pkR, byte[] info, byte[] exporterContext, int L, byte[] psk, byte[] pskId, AsymmetricCipherKeyPair skS)
|
| public byte[] | |
| public byte[] | |
| public HPKEContext | setupAuthPSKR(byte[] enc, AsymmetricCipherKeyPair skR, byte[] info, byte[] psk, byte[] psk_id, AsymmetricKeyParameter pkS)
|
| public HPKEContextWithEncapsulation | setupAuthPSKS(AsymmetricKeyParameter pkR, byte[] info, byte[] psk, byte[] psk_id, AsymmetricCipherKeyPair skS)
|
| public HPKEContext | |
| public HPKEContextWithEncapsulation | |
| public HPKEContext | |
| public HPKEContextWithEncapsulation | |
| public HPKEContextWithEncapsulation | |
| public HPKEContext | |
| public HPKEContextWithEncapsulation | |
| private void |
| aead_AES_GCM128 | back to summary |
|---|---|
| public static final short aead_AES_GCM128 | |
| aead_AES_GCM256 | back to summary |
|---|---|
| public static final short aead_AES_GCM256 | |
| aead_CHACHA20_POLY1305 | back to summary |
|---|---|
| public static final short aead_CHACHA20_POLY1305 | |
| aead_EXPORT_ONLY | back to summary |
|---|---|
| public static final short aead_EXPORT_ONLY | |
| aeadId | back to summary |
|---|---|
| private final short aeadId | |
| default_psk | back to summary |
|---|---|
| private final byte[] default_psk | |
| default_psk_id | back to summary |
|---|---|
| private final byte[] default_psk_id | |
| dhkem | back to summary |
|---|---|
| private final DHKEM dhkem | |
| hkdf | back to summary |
|---|---|
| private final HKDF hkdf | |
| kdf_HKDF_SHA256 | back to summary |
|---|---|
| public static final short kdf_HKDF_SHA256 | |
| kdf_HKDF_SHA384 | back to summary |
|---|---|
| public static final short kdf_HKDF_SHA384 | |
| kdf_HKDF_SHA512 | back to summary |
|---|---|
| public static final short kdf_HKDF_SHA512 | |
| kdfId | back to summary |
|---|---|
| private final short kdfId | |
| kem_P256_SHA256 | back to summary |
|---|---|
| public static final short kem_P256_SHA256 | |
| kem_P384_SHA348 | back to summary |
|---|---|
| public static final short kem_P384_SHA348 | |
| kem_P521_SHA512 | back to summary |
|---|---|
| public static final short kem_P521_SHA512 | |
| kem_X25519_SHA256 | back to summary |
|---|---|
| public static final short kem_X25519_SHA256 | |
| kem_X448_SHA512 | back to summary |
|---|---|
| public static final short kem_X448_SHA512 | |
| kemId | back to summary |
|---|---|
| private final short kemId | |
| mode | back to summary |
|---|---|
| private final byte mode | |
| mode_auth | back to summary |
|---|---|
| public static final byte mode_auth | |
| mode_auth_psk | back to summary |
|---|---|
| public static final byte mode_auth_psk | |
| mode_base | back to summary |
|---|---|
| public static final byte mode_base | |
| mode_psk | back to summary |
|---|---|
| public static final byte mode_psk | |
| Nk | back to summary |
|---|---|
| pack-priv short Nk | |
| HPKE | back to summary |
|---|---|
| public HPKE(byte mode, short kemId, short kdfId, short aeadId) Hybrid Public Key Encryption as described in RFC9180. | |
| deriveKeyPair | back to summary |
|---|---|
| public AsymmetricCipherKeyPair deriveKeyPair(byte[] ikm) | |
| deserializePrivateKey | back to summary |
|---|---|
| public AsymmetricCipherKeyPair deserializePrivateKey(byte[] skEncoded, byte[] pkEncoded) | |
| deserializePublicKey | back to summary |
|---|---|
| public AsymmetricKeyParameter deserializePublicKey(byte[] pkEncoded) | |
| generatePrivateKey | back to summary |
|---|---|
| public AsymmetricCipherKeyPair generatePrivateKey() | |
| keySchedule | back to summary |
|---|---|
| private HPKEContext keySchedule(byte mode, byte[] sharedSecret, byte[] info, byte[] psk, byte[] pskid) | |
| open | back to summary |
|---|---|
| public byte[] open(byte[] enc, AsymmetricCipherKeyPair skR, byte[] info, byte[] aad, byte[] ct, byte[] psk, byte[] pskId, AsymmetricKeyParameter pkS) throws InvalidCipherTextException | |
| receiveExport | back to summary |
|---|---|
| public byte[] receiveExport(byte[] enc, AsymmetricCipherKeyPair skR, byte[] info, byte[] exporterContext, int L, byte[] psk, byte[] pskId, AsymmetricKeyParameter pkS) | |
| seal | back to summary |
|---|---|
| public byte[][] seal(AsymmetricKeyParameter pkR, byte[] info, byte[] aad, byte[] pt, byte[] psk, byte[] pskId, AsymmetricCipherKeyPair skS) throws InvalidCipherTextException | |
| sendExport | back to summary |
|---|---|
| public byte[][] sendExport(AsymmetricKeyParameter pkR, byte[] info, byte[] exporterContext, int L, byte[] psk, byte[] pskId, AsymmetricCipherKeyPair skS) | |
| serializePrivateKey | back to summary |
|---|---|
| public byte[] serializePrivateKey(AsymmetricKeyParameter sk) | |
| serializePublicKey | back to summary |
|---|---|
| public byte[] serializePublicKey(AsymmetricKeyParameter pk) | |
| setupAuthPSKR | back to summary |
|---|---|
| public HPKEContext setupAuthPSKR(byte[] enc, AsymmetricCipherKeyPair skR, byte[] info, byte[] psk, byte[] psk_id, AsymmetricKeyParameter pkS) | |
| setupAuthPSKS | back to summary |
|---|---|
| public HPKEContextWithEncapsulation setupAuthPSKS(AsymmetricKeyParameter pkR, byte[] info, byte[] psk, byte[] psk_id, AsymmetricCipherKeyPair skS) | |
| setupAuthR | back to summary |
|---|---|
| public HPKEContext setupAuthR(byte[] enc, AsymmetricCipherKeyPair skR, byte[] info, AsymmetricKeyParameter pkS) | |
| setupAuthS | back to summary |
|---|---|
| public HPKEContextWithEncapsulation setupAuthS(AsymmetricKeyParameter pkR, byte[] info, AsymmetricCipherKeyPair skS) | |
| setupBaseR | back to summary |
|---|---|
| public HPKEContext setupBaseR(byte[] enc, AsymmetricCipherKeyPair skR, byte[] info) | |
| setupBaseS | back to summary |
|---|---|
| public HPKEContextWithEncapsulation setupBaseS(AsymmetricKeyParameter pkR, byte[] info) | |
| setupBaseS | back to summary |
|---|---|
| public HPKEContextWithEncapsulation setupBaseS(AsymmetricKeyParameter pkR, byte[] info, AsymmetricCipherKeyPair kpE) | |
| setupPSKR | back to summary |
|---|---|
| public HPKEContext setupPSKR(byte[] enc, AsymmetricCipherKeyPair skR, byte[] info, byte[] psk, byte[] psk_id) | |
| SetupPSKS | back to summary |
|---|---|
| public HPKEContextWithEncapsulation SetupPSKS(AsymmetricKeyParameter pkR, byte[] info, byte[] psk, byte[] psk_id) | |
| VerifyPSKInputs | back to summary |
|---|---|
| private void VerifyPSKInputs(byte mode, byte[] psk, byte[] pskid) | |