desx

package
Version: v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2018 License: BSD-3-Clause Imports: 2 Imported by: 0

README

Documentation

Overview

Package desx implements DES-X symmetric key encryption.

For details, see http://en.wikipedia.org/wiki/DES-X.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decrypt

func Decrypt(ciphertext, key, iv []byte) ([]byte, error)

Decrypt decrypts ciphertext in CBC mode and returns plaintext. ciphertext's length must be a multiple of 8. key is a 24 byte des key. iv is an 8 byte initialization vector. If iv is nil, zeros will be used as the initialization vector.

func Encrypt

func Encrypt(plaintext, key, iv []byte) ([]byte, error)

Encrypt encrypts plaintext in CBC mode and returns ciphertext. plaintext's length must be a multiple of 8. key is a 24 byte des key. iv is an 8 byte initialization vector. If iv is nil, zeros will be used as the initialization vector.

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL