Documentation
¶
Index ¶
- func Decrypt(alg asn1.ObjectIdentifier, paramBytes, key, cyphertext []byte) ([]byte, pkerr.Kerror)
- func Encrypt(gcm bool, content, iv, key []byte) ([]byte, *asn1.RawValue, pkerr.Kerror)
- func EncryptAESCBC(content, iv, key []byte) (encryptedText []byte, params *asn1.RawValue, perr pkerr.Kerror)
- func EncryptAESGCM(content []byte, key []byte) (ciphertext []byte, params *asn1.RawValue, perr pkerr.Kerror)
- func Pad(data []byte, blocklen int) ([]byte, pkerr.Kerror)
- func Unpad(data []byte, blocklen int) ([]byte, pkerr.Kerror)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EncryptAESCBC ¶
func EncryptAESGCM ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.