aescts

package module
Version: v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2017 License: Apache-2.0 Imports: 4 Imported by: 128

README

AES CBC Ciphertext Stealing

GoDoc Go Report Card

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"

Documentation

Overview

Package aescts provides AES CBC CipherText Stealing encryption and decryption methods

Index

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

Jump to

Keyboard shortcuts

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