aescts

package module
v0.0.0-...-f0107f0 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

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