security

package
v0.0.0-...-f65b48a Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2017 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cipher

type Cipher struct {
	Block cipher.Block `inject:""`
}

Cipher cipher

func (*Cipher) Decrypt

func (p *Cipher) Decrypt(buf []byte) ([]byte, error)

Decrypt decrypt

func (*Cipher) Encrypt

func (p *Cipher) Encrypt(buf []byte) ([]byte, error)

Encrypt encrypt

type Hmac

type Hmac struct {
	Key []byte `inject:"hmac.key"`
}

Hmac hmac

func (*Hmac) Chk

func (p *Hmac) Chk(plain, code []byte) bool

Chk chk hmac

func (*Hmac) Sum

func (p *Hmac) Sum(plain []byte) []byte

Sum sum hmac

Jump to

Keyboard shortcuts

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