Documentation ¶
Overview ¶
GOST R 34.11-2012 256-bit hash function. RFC 6986.
Index ¶
Constants ¶
View Source
const ( BlockSize = gost34112012.BlockSize Size = 32 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type TLSTree ¶
type TLSTree struct {
// contains filtered or unexported fields
}
func NewTLSTree ¶
func NewTLSTree(params TLSTreeParams, keyRoot []byte) *TLSTree
type TLSTreeParams ¶
type TLSTreeParams [3]uint64
var ( TLSGOSTR341112256WithMagmaCTROMAC TLSTreeParams = TLSTreeParams{ binary.BigEndian.Uint64([]byte{0xFF, 0xFF, 0xFF, 0xC0, 0x00, 0x00, 0x00, 0x00}), binary.BigEndian.Uint64([]byte{0xFF, 0xFF, 0xFF, 0xFF, 0xFE, 0x00, 0x00, 0x00}), binary.BigEndian.Uint64([]byte{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xF0, 0x00}), } TLSGOSTR341112256WithKuznyechikCTROMAC TLSTreeParams = TLSTreeParams{ binary.BigEndian.Uint64([]byte{0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00, 0x00, 0x00}), binary.BigEndian.Uint64([]byte{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xF8, 0x00, 0x00}), binary.BigEndian.Uint64([]byte{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xC0}), } TLSGOSTR341112256WithKuznyechikMGML TLSTreeParams = TLSTreeParams{ binary.BigEndian.Uint64([]byte{0xF8, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}), binary.BigEndian.Uint64([]byte{0xFF, 0xFF, 0xFF, 0xF0, 0x00, 0x00, 0x00, 0x00}), binary.BigEndian.Uint64([]byte{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xE0, 0x00}), } TLSGOSTR341112256WithMagmaMGML TLSTreeParams = TLSTreeParams{ binary.BigEndian.Uint64([]byte{0xFF, 0xE0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}), binary.BigEndian.Uint64([]byte{0xFF, 0xFF, 0xFF, 0xFF, 0xC0, 0x00, 0x00, 0x00}), binary.BigEndian.Uint64([]byte{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x80}), } TLSGOSTR341112256WithKuznyechikMGMS TLSTreeParams = TLSTreeParams{ binary.BigEndian.Uint64([]byte{0xFF, 0xFF, 0xFF, 0xFF, 0xE0, 0x00, 0x00, 0x00}), binary.BigEndian.Uint64([]byte{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0x00, 0x00}), binary.BigEndian.Uint64([]byte{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xF8}), } TLSGOSTR341112256WithMagmaMGMS TLSTreeParams = TLSTreeParams{ binary.BigEndian.Uint64([]byte{0xFF, 0xFF, 0xFF, 0xFF, 0xFC, 0x00, 0x00, 0x00}), binary.BigEndian.Uint64([]byte{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xE0, 0x00}), binary.BigEndian.Uint64([]byte{0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF}), } )
Click to show internal directories.
Click to hide internal directories.