Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Crypto ¶
type Crypto interface {
// Encrypt will encrypt msg and aad using a matching AEAD primitive in kh key handle
// returns:
// cipherText in []byte
// nonce in []byte
// error in case of errors during encryption
Encrypt(msg, aad []byte, kh interface{}) ([]byte, []byte, error)
// Decrypt will decrypt cipher with aad and given nonce using a matching AEAD primitive in kh key handle
// returns:
// plainText in []byte
// error in case of errors
Decrypt(cipher, aad, nonce []byte, kh interface{}) ([]byte, error)
// Sign will sign msg using a matching signature primitive in kh key handle
// returns:
// signature in []byte
// error in case of errors
Sign(msg []byte, kh interface{}) ([]byte, error)
// Verify will verify a signature for the given msg using a matching signature primitive in kh key handle
// returns:
// error in case of errors or nil if signature verification was successful
Verify(signature, msg []byte, kh interface{}) error
}
Crypto interface provides all crypto operations needed in the Aries framework
Directories
¶
| Path | Synopsis |
|---|---|
|
Package tinkcrypto provides the default implementation of the common pkg/common/api/crypto.Crypto interface and the SPI pkg/framework/aries.crypto interface It uses github.com/tink/go crypto primitives
|
Package tinkcrypto provides the default implementation of the common pkg/common/api/crypto.Crypto interface and the SPI pkg/framework/aries.crypto interface It uses github.com/tink/go crypto primitives |
Click to show internal directories.
Click to hide internal directories.