Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DecryptAESCBC ¶
func DecryptAESCBC(reader io.ReadCloser, keyb16 string) (io.ReadCloser, error)
Decrypts a file encrypted with AES (key length depends on input) in CBC block chaining mode and PKCS#7 padding. The provided key must be encoded in base16, and the first block of the input is the IV. The output is a pipe reader that can be used to stream the decrypted file.
func DecryptAESCBCWithIV ¶
func DecryptAESCBCWithIV(reader io.ReadCloser, keyb16 string, iv []byte) (io.ReadCloser, error)
Just like DecryptAESCBC, but the IV is provided as an argument instead of read from the input stream.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.