kmscryptoutil

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

Package kmscryptoutil contains test utilities for tests using the kmscrypto wrappers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LocalKMSCrypto

func LocalKMSCrypto(t *testing.T) wrapperapi.KMSCrypto

LocalKMSCrypto creates a kmscrypto.KMSCrypto instance that uses localkms and tinkcrypto.

func LocalKMSCryptoErr

func LocalKMSCryptoErr() (wrapperapi.KMSCrypto, error)

LocalKMSCryptoErr creates a kmscrypto.KMSCrypto instance that uses localkms and tinkcrypto.

This API returns an error instead of needing a testing parameter.

func LocalKMSCryptoSuite

func LocalKMSCryptoSuite() (wrapperapi.Suite, error)

LocalKMSCryptoSuite creates a kms+crypto wrapper suite that uses localkms and tinkcrypto.

func PubKeyBytesToJWK

func PubKeyBytesToJWK(t *testing.T, pubKeyBytes []byte, keyType kmsapi.KeyType) *jwk.JWK

PubKeyBytesToJWK converts the given public key to a JWK.

Types

This section is empty.

Jump to

Keyboard shortcuts

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