Versions in this module Expand all Collapse all v1 v1.4.6 Feb 25, 2020 Changes in this version + type Decryptor struct + func (*Decryptor) Decrypt(k bccsp.Key, ciphertext []byte, opts bccsp.DecrypterOpts) (plaintext []byte, err error) + type Encryptor struct + EncErr error + EncValue []byte + KeyArg bccsp.Key + OptsArg bccsp.EncrypterOpts + PlaintextArg []byte + func (e *Encryptor) Encrypt(k bccsp.Key, plaintext []byte, opts bccsp.EncrypterOpts) (ciphertext []byte, err error) + type Hasher struct + Err error + MsgArg []byte + OptsArg bccsp.HashOpts + Value []byte + ValueHash hash.Hash + func (h *Hasher) GetHash(opts bccsp.HashOpts) (hash.Hash, error) + func (h *Hasher) Hash(msg []byte, opts bccsp.HashOpts) (hash []byte, err error) + type KeyDeriver struct + Err error + KeyArg bccsp.Key + OptsArg bccsp.KeyDerivOpts + Value bccsp.Key + func (kd *KeyDeriver) KeyDeriv(k bccsp.Key, opts bccsp.KeyDerivOpts) (dk bccsp.Key, err error) + type KeyGenerator struct + Err error + OptsArg bccsp.KeyGenOpts + Value bccsp.Key + func (kg *KeyGenerator) KeyGen(opts bccsp.KeyGenOpts) (k bccsp.Key, err error) + type KeyImporter struct + Err error + OptsArg bccsp.KeyImportOpts + RawArg []byte + Value bccsp.Key + func (ki *KeyImporter) KeyImport(raw interface{}, opts bccsp.KeyImportOpts) (k bccsp.Key, err error) + type Signer struct + DigestArg []byte + Err error + KeyArg bccsp.Key + OptsArg bccsp.SignerOpts + Value []byte + func (s *Signer) Sign(k bccsp.Key, digest []byte, opts bccsp.SignerOpts) (signature []byte, err error) + type Verifier struct + DigestArg []byte + Err error + KeyArg bccsp.Key + OptsArg bccsp.SignerOpts + SignatureArg []byte + Value bool + func (s *Verifier) Verify(k bccsp.Key, signature, digest []byte, opts bccsp.SignerOpts) (valid bool, err error)