crypto

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2021 License: Apache-2.0 Imports: 7 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cipher

type Cipher struct {
	// contains filtered or unexported fields
}

Cipher is type for our block AES cipher

func NewCipher

func NewCipher(k []byte) *Cipher

NewCipher creates a new cipher with key 32-byte data given

func (*Cipher) TryDecrypt

func (c *Cipher) TryDecrypt(in []byte) (out []byte)

func (*Cipher) TryEncrypt

func (c *Cipher) TryEncrypt(in []byte) (out []byte)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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