Versions in this module Expand all Collapse all v0 v0.0.6 Sep 27, 2022 v0.0.5 May 18, 2022 v0.0.4 Apr 21, 2022 v0.0.3 Mar 3, 2022 v0.0.2 Mar 2, 2022 v0.0.1 Feb 22, 2022 Changes in this version + const AES + const AES128 + const AES192 + const AES256 + const ECDSA + const ECDSAP256 + const ECDSAP384 + const ECDSAReRand + const GMSM2 + const GMSM3 + const GMSM4 + const HMAC + const HMACTruncated256 + const IDEMIX + 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 GMSM2KeyGenOpts struct + Temporary bool + func (opts *GMSM2KeyGenOpts) Algorithm() string + func (opts *GMSM2KeyGenOpts) Ephemeral() bool + type GMSM2PrivateKeyImportOpts struct + Temporary bool + func (opts *GMSM2PrivateKeyImportOpts) Algorithm() string + func (opts *GMSM2PrivateKeyImportOpts) Ephemeral() bool + type GMSM2PublicKeyImportOpts struct + Temporary bool + func (opts *GMSM2PublicKeyImportOpts) Algorithm() string + func (opts *GMSM2PublicKeyImportOpts) Ephemeral() bool + type GMSM3Opts struct + func (opts *GMSM3Opts) Algorithm() string + type GMSM4ImportKeyOpts struct + Temporary bool + func (opts *GMSM4ImportKeyOpts) Algorithm() string + func (opts *GMSM4ImportKeyOpts) Ephemeral() bool + type GMSM4KeyGenOpts struct + Temporary bool + func (opts *GMSM4KeyGenOpts) Algorithm() string + func (opts *GMSM4KeyGenOpts) Ephemeral() bool + 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 IdemixAttribute struct + Type IdemixAttributeType + Value interface{} + type IdemixAttributeType int + const IdemixBytesAttribute + const IdemixHiddenAttribute + const IdemixIntAttribute + type IdemixCRISignerOpts struct + Epoch int + H crypto.Hash + RevocationAlgorithm RevocationAlgorithm + UnrevokedHandles [][]byte + func (o *IdemixCRISignerOpts) HashFunc() crypto.Hash + type IdemixCredentialRequestSignerOpts struct + Attributes []int + H crypto.Hash + IssuerNonce []byte + IssuerPK Key + func (o *IdemixCredentialRequestSignerOpts) HashFunc() crypto.Hash + func (o *IdemixCredentialRequestSignerOpts) IssuerPublicKey() Key + type IdemixCredentialSignerOpts struct + Attributes []IdemixAttribute + H crypto.Hash + IssuerPK Key + func (o *IdemixCredentialSignerOpts) HashFunc() crypto.Hash + func (o *IdemixCredentialSignerOpts) IssuerPublicKey() Key + type IdemixIIssuerPublicKeyImporterErrorType int + const IdemixIssuerPublicKeyImporterAttributeNameError + const IdemixIssuerPublicKeyImporterHashError + const IdemixIssuerPublicKeyImporterNumAttributesError + const IdemixIssuerPublicKeyImporterUnmarshallingError + const IdemixIssuerPublicKeyImporterValidationError + type IdemixIssuerKeyGenOpts struct + AttributeNames []string + Temporary bool + func (*IdemixIssuerKeyGenOpts) Algorithm() string + func (o *IdemixIssuerKeyGenOpts) Ephemeral() bool + type IdemixIssuerPublicKeyImportOpts struct + AttributeNames []string + Temporary bool + func (*IdemixIssuerPublicKeyImportOpts) Algorithm() string + func (o *IdemixIssuerPublicKeyImportOpts) Ephemeral() bool + type IdemixIssuerPublicKeyImporterError struct + Cause error + ErrorMsg string + Type IdemixIIssuerPublicKeyImporterErrorType + func (r *IdemixIssuerPublicKeyImporterError) Error() string + type IdemixNymKeyDerivationOpts struct + IssuerPK Key + Temporary bool + func (*IdemixNymKeyDerivationOpts) Algorithm() string + func (o *IdemixNymKeyDerivationOpts) Ephemeral() bool + func (o *IdemixNymKeyDerivationOpts) IssuerPublicKey() Key + type IdemixNymPublicKeyImportOpts struct + Temporary bool + func (*IdemixNymPublicKeyImportOpts) Algorithm() string + func (o *IdemixNymPublicKeyImportOpts) Ephemeral() bool + type IdemixNymSignerOpts struct + H crypto.Hash + IssuerPK Key + Nym Key + func (o *IdemixNymSignerOpts) HashFunc() crypto.Hash + type IdemixRevocationKeyGenOpts struct + Temporary bool + func (*IdemixRevocationKeyGenOpts) Algorithm() string + func (o *IdemixRevocationKeyGenOpts) Ephemeral() bool + type IdemixRevocationPublicKeyImportOpts struct + Temporary bool + func (*IdemixRevocationPublicKeyImportOpts) Algorithm() string + func (o *IdemixRevocationPublicKeyImportOpts) Ephemeral() bool + type IdemixSignerOpts struct + Attributes []IdemixAttribute + CRI []byte + Credential []byte + Epoch int + H crypto.Hash + IssuerPK Key + Nym Key + RevocationPublicKey Key + RhIndex int + func (o *IdemixSignerOpts) HashFunc() crypto.Hash + type IdemixUserSecretKeyGenOpts struct + Temporary bool + func (*IdemixUserSecretKeyGenOpts) Algorithm() string + func (o *IdemixUserSecretKeyGenOpts) Ephemeral() bool + type IdemixUserSecretKeyImportOpts struct + Temporary bool + func (*IdemixUserSecretKeyImportOpts) Algorithm() string + func (o *IdemixUserSecretKeyImportOpts) Ephemeral() bool + 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 RevocationAlgorithm int32 + const AlgNoRevocation + 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