byte[] |
HpkeKem.authDecapsulate(byte[] encapsulatedKey,
HpkeKemPrivateKey recipientPrivateKey,
byte[] senderPublicKey) |
Extracts the shared secret from encapsulatedKey using recipientPrivateKey.
|
com.google.crypto.tink.hybrid.internal.HpkeKemEncapOutput |
HpkeKem.authEncapsulate(byte[] recipientPublicKey,
HpkeKemPrivateKey senderPrivateKey) |
Similar to HpkeKem.encapsulate(byte[]), but the output additionally encodes an assurance that the KEM
shared secret was generated by the holder of senderPrivateKey.
|
static HpkeContext |
HpkeContext.createAuthRecipientContext(byte[] encapsulatedKey,
HpkeKemPrivateKey recipientPrivateKey,
HpkeKem kem,
HpkeKdf kdf,
HpkeAead aead,
byte[] info,
HpkePublicKey senderPublicKey) |
Creates HPKE recipient context with authentication according to KeySchedule() defined in
https://www.rfc-editor.org/rfc/rfc9180.html#section-5.1.3.
|
static HpkeContext |
HpkeContext.createAuthSenderContext(HpkePublicKey recipientPublicKey,
HpkeKem kem,
HpkeKdf kdf,
HpkeAead aead,
byte[] info,
HpkeKemPrivateKey senderPrivateKey) |
Creates HPKE sender context with authentication according to KeySchedule() defined in
https://www.rfc-editor.org/rfc/rfc9180.html#section-5.1.3.
|
static HpkeContext |
HpkeContext.createRecipientContext(byte[] encapsulatedKey,
HpkeKemPrivateKey recipientPrivateKey,
HpkeKem kem,
HpkeKdf kdf,
HpkeAead aead,
byte[] info) |
Creates HPKE sender recipient context according to KeySchedule() defined in
https://www.rfc-editor.org/rfc/rfc9180.html#section-5.1-9.
|
byte[] |
HpkeKem.decapsulate(byte[] encapsulatedKey,
HpkeKemPrivateKey recipientPrivateKey) |
Extracts the shared secret from encapsulatedKey using recipientPrivateKey.
|