libCrypto2Go

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

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

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

README

libcrypto2go

Small gomobile library for Android

Documentation

Index

Constants

View Source
const (
	// Key length and salt length are 32 bytes (256 bits)
	KEYLENGTH int = 32

	// scrypt default parameters
	SCRYPT_CONST_N int = 16384
	SCRYPT_CONST_R int = 8
	SCRYPT_CONST_P int = 1
)

Variables

This section is empty.

Functions

func GenKey

func GenKey(password []byte, salt []byte) ([]byte, error)

func GenRandomBytes

func GenRandomBytes(n int) ([]byte, error)

func ShakeSum256

func ShakeSum256(password string) []byte

func Sum256

func Sum256(password string) string

func Sum384

func Sum384(password string) string

func Sum512

func Sum512(password string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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