Documentation ¶
Index ¶
- Variables
- func AesDecrypt(ciphertext []byte, key []byte, iv []byte, mode string) ([]byte, error)
- func AesGcmDecrypt(key []byte, ciphertext []byte, nonce []byte) ([]byte, error)
- func AesUnwrapKey(key, cipherText []byte) []byte
- func DataDecrypt(cipherAlgo CryptoAlgo, hashName string, raw, encKey, iv []byte, rounds int) []byte
- func DerivePwdHash(pwdHash []byte, userSID string, digest string) []byte
- func InitCryptoAlgo() map[int]CryptoAlgo
- func ModuleDecrypt(ciphertext []byte, key []byte, module string, mode string, iv []byte) []byte
- type CryptoAlgo
Constants ¶
This section is empty.
Variables ¶
View Source
var CryptoData = make(map[int]CryptoAlgo)
Functions ¶
func AesDecrypt ¶ added in v1.0.0
func AesGcmDecrypt ¶ added in v1.0.0
func AesUnwrapKey ¶ added in v1.0.0
func DataDecrypt ¶
func DataDecrypt(cipherAlgo CryptoAlgo, hashName string, raw, encKey, iv []byte, rounds int) []byte
Internal use. Decrypts data stored in DPAPI structures.
func DerivePwdHash ¶
Internal use. Computes the encryption key from a user's password hash.
func InitCryptoAlgo ¶
func InitCryptoAlgo() map[int]CryptoAlgo
Types ¶
Click to show internal directories.
Click to hide internal directories.