webcrypto

package
v0.9.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 24, 2023 License: MIT Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL