hybrid

package
v1.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL