package
Version:
v1.0.0
Opens a new window with list of versions in this module.
Published: Feb 11, 2020
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type MockHSM struct {
Key []byte
}
MockHSM is mock of HSM.
It's a fake HSM and using ChaCha20Poly1305 for encryption.
NewMockHSM creates new HSM.
Decrypt decrypts prefixed cipherByte.
Encrypt encrypts plainText and adds prefix.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.