Documentation ¶
Index ¶
- func Decrypt(ciphertext, passphrase []byte) ([]byte, error)
- func Encrypt(data []byte, encrAlg EncrAlg, name string, passphrase []byte, kdfAlg KDFAlg) ([]byte, error)
- type EncrAlg
- type EncryptedKey
- type KDFAlg
- type Key
- type KeyData
- type KeyInfo
- type KeyType
- type PrivateKey
- type PublicKey
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type EncryptedKey ¶
type Key ¶
type PrivateKey ¶
func GetNull ¶
func GetNull() (PrivateKey, error)
func UnmarshalPrivateKey ¶
func UnmarshalPrivateKey(data []byte) (PrivateKey, error)
func UnmarshalRSAPrivateKey ¶
func UnmarshalRSAPrivateKey(data *KeyData) (PrivateKey, error)
Click to show internal directories.
Click to hide internal directories.