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
// ComputeMAC computes message authentication code (MAC) for code data
// using a matching MAC primitive in kh key handle
ComputeMAC(data []byte, kh interface{}) ([]byte, error)
// VerifyMAC determines if mac is a correct authentication code (MAC) for data
// using a matching MAC primitive in kh key handle and returns nil if so, otherwise it returns an error.
VerifyMAC(mac, data []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 |
|
primitive/composite/ecdh1pu
Package ecdh1pu provides implementations of payload encryption using ECDH-1PU KW key wrapping with AEAD primitives.
|
Package ecdh1pu provides implementations of payload encryption using ECDH-1PU KW key wrapping with AEAD primitives. |
|
primitive/composite/ecdhes
Package ecdhes provides implementations of payload encryption using ECDH-ES KW key wrapping with AEAD primitives.
|
Package ecdhes provides implementations of payload encryption using ECDH-ES KW key wrapping with AEAD primitives. |
Click to show internal directories.
Click to hide internal directories.