goPskCrypto

package module
v0.0.0-...-81d412d Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2015 License: MIT Imports: 5 Imported by: 0

README

goPskCryto

Build Status GoDoc docs examples Total views GitHub issues GitHub stars GitHub forks MIT License

a golang pre shared secret crypto library

Implemented

  • It only support Aes-Cbc with PKCS7Padding right now.

Documentation

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrDecryptedDataTooSmall = fmt.Errorf("encrypted data too small")

Functions

func AesCbcPKCS7PaddingDecrypt

func AesCbcPKCS7PaddingDecrypt(in, key []byte) (out []byte, err error)

key must be 32 bytes, if it is not 32 byte,it will panic. only repeat error because of input data

func AesCbcPKCS7PaddingEncrypt

func AesCbcPKCS7PaddingEncrypt(in, key []byte) (out []byte)

key must be 32 bytes, if it is not 32 byte,it will panic

func PKCS7Padding

func PKCS7Padding(data []byte) []byte

func UnPKCS7Padding

func UnPKCS7Padding(data []byte) []byte

Types

This section is empty.

Jump to

Keyboard shortcuts

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