Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrDecrypt = errors.New("could not decrypt key with given password")
)
Functions ¶
func DecryptDataV3 ¶
func DecryptDataV3(cryptoJson CryptoJSON, auth string) ([]byte, error)
Types ¶
type CryptoJSON ¶
type CryptoJSON struct { Cipher string `json:"cipher"` CipherText string `json:"ciphertext"` CipherParams cipherparamsJSON `json:"cipherparams"` KDF string `json:"kdf"` KDFParams map[string]interface{} `json:"kdfparams"` MAC string `json:"mac"` }
func RawKeyToCryptoJSON ¶ added in v0.80.2
func RawKeyToCryptoJSON(rawKeyFile []byte) (cj CryptoJSON, e error)
Click to show internal directories.
Click to hide internal directories.