package hybrid

import "github.com/google/tink/go/testutil/hybrid"

Package hybrid provides HybridEncrypt/Decrypt primitive-specific test utilities.

Index

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:

Source Files

private_key.go

Version
v1.7.0 (latest)
Published
Aug 10, 2022
Platform
linux/amd64
Imports
7 packages
Last checked
3 months ago

Tools for package owners.