Documentation ¶
Index ¶
- Variables
- func A(o []int64, a []int64, b []int64)
- func M(o []int64, a []int64, b []int64)
- func OpenMessage(publicKey []uint8, signedMsg []uint8) []uint8
- func OpenMessageStr(publicKey []uint8, signedMsg []uint8) string
- func S(o []int64, a []int64)
- func SharedKey(secretKey []uint8, publicKey []uint8) []uint8
- func Sign(secretKey []uint8, msg []uint8, opt_random []uint8) []uint8
- func SignMessage(secretKey []uint8, msg []uint8, opt_random []uint8) []uint8
- func Verify(publicKey []uint8, msg []uint8, signature []uint8) int
- func Z(o []int64, a []int64, b []int64)
- type Keys
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 OpenMessage ¶
func OpenMessageStr ¶
add by Miguel
Types ¶
Click to show internal directories.
Click to hide internal directories.