Documentation
¶
Overview ¶
Package blobcrypto performs whole-blob crypto operations.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Crypter ¶
type Crypter interface {
HashFunc() hashing.HashFunc
Encryptor() encryption.Encryptor
}
Crypter ecapsulates hashing and encryption.
type StaticCrypter ¶ added in v0.16.0
type StaticCrypter struct {
Hash hashing.HashFunc
Encryption encryption.Encryptor
}
StaticCrypter implements Crypter interface with static hash and encryption functions.
func (StaticCrypter) Encryptor ¶ added in v0.16.0
func (p StaticCrypter) Encryptor() encryption.Encryptor
Encryptor returns the encryption algorithm.
func (StaticCrypter) HashFunc ¶ added in v0.16.0
func (p StaticCrypter) HashFunc() hashing.HashFunc
HashFunc returns the hashing algorithm.
Click to show internal directories.
Click to hide internal directories.