README ¶ AES CBC Ciphertext Stealing Encrypt and decrypt data using AES CBC Ciphertext stealing mode. Reference: https://en.wikipedia.org/wiki/Ciphertext_stealing#CBC_ciphertext_stealing To get the package, execute: go get gopkg.in/jcmturner/aescts.v1 To import this package, add the following line to your code: import "gopkg.in/jcmturner/aescts.v1" Expand ▾ Collapse ▴ Documentation ¶ Overview ¶ Package aescts provides AES CBC CipherText Stealing encryption and decryption methods Index ¶ func Decrypt(key, iv, ciphertext []byte) ([]byte, error) func Encrypt(key, iv, plaintext []byte) ([]byte, []byte, error) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Decrypt ¶ func Decrypt(key, iv, ciphertext []byte) ([]byte, error) Decrypt the ciphertext with the key and the initial vector. func Encrypt ¶ func Encrypt(key, iv, plaintext []byte) ([]byte, []byte, error) Encrypt the message with the key and the initial vector. Returns: next iv, ciphertext bytes, error Types ¶ This section is empty. Source Files ¶ View all Source files aescts.go Click to show internal directories. Click to hide internal directories.