Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrAlreadyExists = errors.New("file already exists")
ErrAlreadyExists file already exists.
Functions ¶
func AesCBCEncrypt ¶ added in v0.5.0
AesCBCEncrypt aes encryption, filling the 16 bits of the key key, 24, 32 respectively corresponding to AES-128, AES-192, or AES-256.
func PKCS7Padding ¶ added in v0.5.0
PKCS7Padding add pkcs7 padding.
Types ¶
type Keys ¶
Keys are the keys used during consensus.
func NewFromFile ¶ added in v0.5.0
NewFromFile reads keys from a file and tries to decrypt them.
Click to show internal directories.
Click to hide internal directories.