axlsign

package
v0.0.0-...-564b467 Latest Latest
Warning

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

Go to latest
Published: Nov 7, 2017 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var D = gf([]int64{0x78a3, 0x1359, 0x4dca, 0x75eb,
	0xd8ab, 0x4141, 0x0a4d, 0x0070,
	0xe898, 0x7779, 0x4079, 0x8cc7,
	0xfe73, 0x2b6f, 0x6cee, 0x5203})
View Source
var D2 = gf([]int64{0xf159, 0x26b2, 0x9b94, 0xebd6,
	0xb156, 0x8283, 0x149a, 0x00e0,
	0xd130, 0xeef3, 0x80f2, 0x198e,
	0xfce7, 0x56df, 0xd9dc, 0x2406})
View Source
var I = gf([]int64{0xa0b0, 0x4a0e, 0x1b27, 0xc4ee,
	0xe478, 0xad2f, 0x1806, 0x2f43,
	0xd7a7, 0x3dfb, 0x0099, 0x2b4d,
	0xdf0b, 0x4fc1, 0x2480, 0x2b83})
View Source
var K = []int64{}/* 160 elements not displayed */

Constantes de cada ronda del SHA-512

View Source
var L = []int64{0xed, 0xd3, 0xf5, 0x5c, 0x1a, 0x63, 0x12, 0x58,
	0xd6, 0x9c, 0xf7, 0xa2, 0xde, 0xf9, 0xde, 0x14,
	0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0x10}
View Source
var X = gf([]int64{0xd51a, 0x8f25, 0x2d60, 0xc956,
	0xa7b2, 0x9525, 0xc760, 0x692c,
	0xdc5c, 0xfdd6, 0xe231, 0xc0a4,
	0x53fe, 0xcd6e, 0x36d3, 0x2169})
View Source
var Y = gf([]int64{0x6658, 0x6666, 0x6666, 0x6666,
	0x6666, 0x6666, 0x6666, 0x6666,
	0x6666, 0x6666, 0x6666, 0x6666,
	0x6666, 0x6666, 0x6666, 0x6666})

Functions

func A

func A(o []int64, a []int64, b []int64)

func M

func M(o []int64, a []int64, b []int64)

optimized by Miguel

func OpenMessage

func OpenMessage(publicKey []uint8, signedMsg []uint8) []uint8

func OpenMessageStr

func OpenMessageStr(publicKey []uint8, signedMsg []uint8) string

add by Miguel

func S

func S(o []int64, a []int64)

func SharedKey

func SharedKey(secretKey []uint8, publicKey []uint8) []uint8

func Sign

func Sign(secretKey []uint8, msg []uint8, opt_random []uint8) []uint8

func SignMessage

func SignMessage(secretKey []uint8, msg []uint8, opt_random []uint8) []uint8

func Verify

func Verify(publicKey []uint8, msg []uint8, signature []uint8) int

func Z

func Z(o []int64, a []int64, b []int64)

Types

type Keys

type Keys struct {
	PublicKey  []uint8
	PrivateKey []uint8
}

func GenerateKeyPair

func GenerateKeyPair(seed []uint8) Keys

Jump to

Keyboard shortcuts

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