cryptotest

package
v0.76.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package cryptotest provides cryptographic asset fixtures for tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AlgorithmAsset

func AlgorithmAsset(opts ...Option) types.CryptoAsset

AlgorithmAsset returns a valid algorithm asset.

func AlgorithmDescriptor

func AlgorithmDescriptor() types.CryptoDescriptor

AlgorithmDescriptor returns the descriptor of AlgorithmAsset.

func CertificateAsset

func CertificateAsset(opts ...Option) types.CryptoAsset

CertificateAsset returns a valid certificate asset.

func CertificateDescriptor

func CertificateDescriptor() types.CryptoDescriptor

CertificateDescriptor returns the descriptor of CertificateAsset.

func EncryptedPrivateKeyAsset

func EncryptedPrivateKeyAsset(opts ...Option) types.CryptoAsset

EncryptedPrivateKeyAsset returns a valid encrypted private key asset.

func EncryptedPrivateKeyDescriptor

func EncryptedPrivateKeyDescriptor() types.CryptoDescriptor

EncryptedPrivateKeyDescriptor returns the descriptor of EncryptedPrivateKeyAsset.

func PrivateKeyAsset

func PrivateKeyAsset(opts ...Option) types.CryptoAsset

PrivateKeyAsset returns a valid private key asset.

func PrivateKeyDescriptor

func PrivateKeyDescriptor() types.CryptoDescriptor

PrivateKeyDescriptor returns the descriptor of PrivateKeyAsset.

func PublicKeyAsset

func PublicKeyAsset(opts ...Option) types.CryptoAsset

PublicKeyAsset returns a valid public key asset.

func PublicKeyDescriptor

func PublicKeyDescriptor() types.CryptoDescriptor

PublicKeyDescriptor returns the descriptor of PublicKeyAsset.

func RFC1423EncryptedPrivateKeyAsset

func RFC1423EncryptedPrivateKeyAsset(opts ...Option) types.CryptoAsset

RFC1423EncryptedPrivateKeyAsset returns a valid RFC 1423 encrypted private key asset.

func RFC1423EncryptedPrivateKeyDescriptor

func RFC1423EncryptedPrivateKeyDescriptor() types.CryptoDescriptor

RFC1423EncryptedPrivateKeyDescriptor returns the descriptor of RFC1423EncryptedPrivateKeyAsset.

Types

type Option

type Option func(*types.CryptoAsset)

Option customizes an Asset fixture.

func WithMutate

func WithMutate(mutate func(*types.CryptoAsset)) Option

WithMutate applies mutate after constructing a complete Asset fixture.

Jump to

Keyboard shortcuts

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