Documentation ¶
Overview ¶
Package hybrid provides HybridEncrypt/Decrypt primitive-specific test utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func KeysetHandleFromSerializedPrivateKey ¶
func KeysetHandleFromSerializedPrivateKey(privKeyBytes, pubKeyBytes []byte, template *tinkpb.KeyTemplate) (*keyset.Handle, error)
KeysetHandleFromSerializedPrivateKey returns a keyset handle containing a primary key that has the specified privKeyBytes and pubKeyBytes and matches template.
Supported templates include:
- DHKEM_X25519_HKDF_SHA256_HKDF_SHA256_CHACHA20_POLY1305_Raw_Key_Template, which requires privKeyBytes and pubKeyBytes to be the KEM-encoding of the private and public key, respectively, i.e. SerializePrivateKey and SerializePublicKey in https://www.rfc-editor.org/rfc/rfc9180.html#section-7.1.1.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.