Versions in this module Expand all Collapse all v1 v1.0.0 Mar 3, 2023 Changes in this version + const AES + const AES128 + const AES192 + const AES256 + const ECDSA + const ECDSAP256 + const ECDSAP384 + const ECDSAReRand + const HMAC + const HMACTruncated256 + const SHA + const SHA2 + const SHA256 + const SHA3 + const SHA384 + const SHA3_256 + const SHA3_384 + const X509Certificate + type AES128KeyGenOpts struct + Temporary bool + func (opts *AES128KeyGenOpts) Algorithm() string + func (opts *AES128KeyGenOpts) Ephemeral() bool + type AES192KeyGenOpts struct + Temporary bool + func (opts *AES192KeyGenOpts) Algorithm() string + func (opts *AES192KeyGenOpts) Ephemeral() bool + type AES256ImportKeyOpts struct + Temporary bool + func (opts *AES256ImportKeyOpts) Algorithm() string + func (opts *AES256ImportKeyOpts) Ephemeral() bool + type AES256KeyGenOpts struct + Temporary bool + func (opts *AES256KeyGenOpts) Algorithm() string + func (opts *AES256KeyGenOpts) Ephemeral() bool + type AESCBCPKCS7ModeOpts struct + IV []byte + PRNG io.Reader + type AESKeyGenOpts struct + Temporary bool + func (opts *AESKeyGenOpts) Algorithm() string + func (opts *AESKeyGenOpts) Ephemeral() bool + type BCCSP interface + Decrypt func(k Key, ciphertext []byte, opts DecrypterOpts) (plaintext []byte, err error) + Encrypt func(k Key, plaintext []byte, opts EncrypterOpts) (ciphertext []byte, err error) + GetHash func(opts HashOpts) (h hash.Hash, err error) + GetKey func(ski []byte) (k Key, err error) + Hash func(msg []byte, opts HashOpts) (hash []byte, err error) + KeyDeriv func(k Key, opts KeyDerivOpts) (dk Key, err error) + KeyGen func(opts KeyGenOpts) (k Key, err error) + KeyImport func(raw interface{}, opts KeyImportOpts) (k Key, err error) + Sign func(k Key, digest []byte, opts SignerOpts) (signature []byte, err error) + Verify func(k Key, signature, digest []byte, opts SignerOpts) (valid bool, err error) + type DecrypterOpts interface + type ECDSAGoPublicKeyImportOpts struct + Temporary bool + func (opts *ECDSAGoPublicKeyImportOpts) Algorithm() string + func (opts *ECDSAGoPublicKeyImportOpts) Ephemeral() bool + type ECDSAKeyGenOpts struct + Temporary bool + func (opts *ECDSAKeyGenOpts) Algorithm() string + func (opts *ECDSAKeyGenOpts) Ephemeral() bool + type ECDSAP256KeyGenOpts struct + Temporary bool + func (opts *ECDSAP256KeyGenOpts) Algorithm() string + func (opts *ECDSAP256KeyGenOpts) Ephemeral() bool + type ECDSAP384KeyGenOpts struct + Temporary bool + func (opts *ECDSAP384KeyGenOpts) Algorithm() string + func (opts *ECDSAP384KeyGenOpts) Ephemeral() bool + type ECDSAPKIXPublicKeyImportOpts struct + Temporary bool + func (opts *ECDSAPKIXPublicKeyImportOpts) Algorithm() string + func (opts *ECDSAPKIXPublicKeyImportOpts) Ephemeral() bool + type ECDSAPrivateKeyImportOpts struct + Temporary bool + func (opts *ECDSAPrivateKeyImportOpts) Algorithm() string + func (opts *ECDSAPrivateKeyImportOpts) Ephemeral() bool + type ECDSAReRandKeyOpts struct + Expansion []byte + Temporary bool + func (opts *ECDSAReRandKeyOpts) Algorithm() string + func (opts *ECDSAReRandKeyOpts) Ephemeral() bool + func (opts *ECDSAReRandKeyOpts) ExpansionValue() []byte + type EncrypterOpts interface + type HMACDeriveKeyOpts struct + Arg []byte + Temporary bool + func (opts *HMACDeriveKeyOpts) Algorithm() string + func (opts *HMACDeriveKeyOpts) Argument() []byte + func (opts *HMACDeriveKeyOpts) Ephemeral() bool + type HMACImportKeyOpts struct + Temporary bool + func (opts *HMACImportKeyOpts) Algorithm() string + func (opts *HMACImportKeyOpts) Ephemeral() bool + type HMACTruncated256AESDeriveKeyOpts struct + Arg []byte + Temporary bool + func (opts *HMACTruncated256AESDeriveKeyOpts) Algorithm() string + func (opts *HMACTruncated256AESDeriveKeyOpts) Argument() []byte + func (opts *HMACTruncated256AESDeriveKeyOpts) Ephemeral() bool + type HashOpts interface + Algorithm func() string + func GetHashOpt(hashFunction string) (HashOpts, error) + type Key interface + Bytes func() ([]byte, error) + Private func() bool + PublicKey func() (Key, error) + SKI func() []byte + Symmetric func() bool + type KeyDerivOpts interface + Algorithm func() string + Ephemeral func() bool + type KeyGenOpts interface + Algorithm func() string + Ephemeral func() bool + type KeyImportOpts interface + Algorithm func() string + Ephemeral func() bool + type KeyStore interface + GetKey func(ski []byte) (k Key, err error) + ReadOnly func() bool + StoreKey func(k Key) (err error) + type SHA256Opts struct + func (opts *SHA256Opts) Algorithm() string + type SHA384Opts struct + func (opts *SHA384Opts) Algorithm() string + type SHA3_256Opts struct + func (opts *SHA3_256Opts) Algorithm() string + type SHA3_384Opts struct + func (opts *SHA3_384Opts) Algorithm() string + type SHAOpts struct + func (opts *SHAOpts) Algorithm() string + type SignerOpts interface + type X509PublicKeyImportOpts struct + Temporary bool + func (opts *X509PublicKeyImportOpts) Algorithm() string + func (opts *X509PublicKeyImportOpts) Ephemeral() bool