Versions in this module Expand all Collapse all v1 v1.4.7 May 14, 2020 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 IDEMIX + const RSA + const RSA1024 + const RSA2048 + const RSA3072 + const RSA4096 + 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 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 RSA1024KeyGenOpts struct + Temporary bool + func (opts *RSA1024KeyGenOpts) Algorithm() string + func (opts *RSA1024KeyGenOpts) Ephemeral() bool + type RSA2048KeyGenOpts struct + Temporary bool + func (opts *RSA2048KeyGenOpts) Algorithm() string + func (opts *RSA2048KeyGenOpts) Ephemeral() bool + type RSA3072KeyGenOpts struct + Temporary bool + func (opts *RSA3072KeyGenOpts) Algorithm() string + func (opts *RSA3072KeyGenOpts) Ephemeral() bool + type RSA4096KeyGenOpts struct + Temporary bool + func (opts *RSA4096KeyGenOpts) Algorithm() string + func (opts *RSA4096KeyGenOpts) Ephemeral() bool + type RSAGoPublicKeyImportOpts struct + Temporary bool + func (opts *RSAGoPublicKeyImportOpts) Algorithm() string + func (opts *RSAGoPublicKeyImportOpts) Ephemeral() bool + type RSAKeyGenOpts struct + Temporary bool + func (opts *RSAKeyGenOpts) Algorithm() string + func (opts *RSAKeyGenOpts) Ephemeral() bool + 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 v1.4.6-rofab.4 Jun 18, 2020 v1.4.6-rofab.3 Jun 18, 2020 v1.4.6-rofab.2 Jun 18, 2020 v1.4.6-rofab.1 Jun 18, 2020 v1.4.6-rofab.0 Jun 18, 2020 v1.4.6-rofab Jun 18, 2020 Incompatible versions in this module v2.1.1+incompatible Jun 1, 2020