Documentation
¶
Overview ¶
Package cryptotest provides cryptographic asset fixtures for tests.
Index ¶
- func AlgorithmAsset(opts ...Option) types.CryptoAsset
- func AlgorithmDescriptor() types.CryptoDescriptor
- func CertificateAsset(opts ...Option) types.CryptoAsset
- func CertificateDescriptor() types.CryptoDescriptor
- func EncryptedPrivateKeyAsset(opts ...Option) types.CryptoAsset
- func EncryptedPrivateKeyDescriptor() types.CryptoDescriptor
- func PrivateKeyAsset(opts ...Option) types.CryptoAsset
- func PrivateKeyDescriptor() types.CryptoDescriptor
- func PublicKeyAsset(opts ...Option) types.CryptoAsset
- func PublicKeyDescriptor() types.CryptoDescriptor
- func RFC1423EncryptedPrivateKeyAsset(opts ...Option) types.CryptoAsset
- func RFC1423EncryptedPrivateKeyDescriptor() types.CryptoDescriptor
- type Option
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.