Documentation ¶
Index ¶
Constants ¶
View Source
const AES_CBC int = 1
View Source
const AES_CFB1 int = 2
View Source
const AES_CFB2 int = 3
View Source
const AES_CFB4 int = 5
View Source
const AES_CTR1 int = 30
View Source
const AES_CTR16 int = 45
View Source
const AES_CTR2 int = 31
View Source
const AES_CTR4 int = 33
View Source
const AES_CTR8 int = 37
View Source
const AES_ECB int = 0
View Source
const AES_OFB1 int = 14
View Source
const AES_OFB16 int = 29
View Source
const AES_OFB2 int = 15
View Source
const AES_OFB4 int = 17
View Source
const AES_OFB8 int = 21
View Source
const GCM_ACCEPTING_CIPHER int = 1
View Source
const GCM_ACCEPTING_HEADER int = 0
View Source
const GCM_DECRYPTING int = 1
View Source
const GCM_ENCRYPTING int = 0
View Source
const GCM_FINISHED int = 3
View Source
const GCM_NOT_ACCEPTING_MORE int = 2
View Source
const NHS_DEGREE int = (1 << NHS_LGN)
View Source
const NHS_LGN uint = 10 // Degree n=2^LGN
View Source
const NHS_ND uint32 = 0xF7002FFF // 1/(R-q) mod R
View Source
const NHS_ONE int32 = 0x2AC8 // R mod q
View Source
const NHS_PRIME int32 = 0x3001 // q in Hex
View Source
const NHS_R2MODP uint64 = 0x1620 // R^2 mod q
View Source
const NHS_WL uint = 32
View Source
const NHS_inv int32 = 0xeab
View Source
const NHS_invpr int32 = 0x2c2a
View Source
const SHA256 int = 32
View Source
const SHA384 int = 48
View Source
const SHA3_HASH224 int = 28
View Source
const SHA3_HASH256 int = 32
View Source
const SHA3_HASH384 int = 48
View Source
const SHA3_HASH512 int = 64
View Source
const SHA3_SHAKE128 int = 16
View Source
const SHA3_SHAKE256 int = 32
View Source
const SHA512 int = 64
Variables ¶
View Source
var NHS_iroots = [1024]int32{} /* 1024 elements not displayed */
View Source
var NHS_roots = [1024]int32{} /* 1024 elements not displayed */
Functions ¶
func NHS_SERVER_1 ¶
func NHS_SERVER_2 ¶
Types ¶
type AES ¶
type GCM ¶
type GCM struct { Y_0 [16]byte // contains filtered or unexported fields }
func (*GCM) Add_cipher ¶
Add Ciphertext - decrypts to plaintext
func (*GCM) Add_header ¶
Add Header data - included but not encrypted
type HASH256 ¶
type HASH256 struct {
// contains filtered or unexported fields
}
func NewHASH256 ¶
func NewHASH256() *HASH256
type HASH384 ¶
type HASH384 struct {
// contains filtered or unexported fields
}
func NewHASH384 ¶
func NewHASH384() *HASH384
type HASH512 ¶
type HASH512 struct {
// contains filtered or unexported fields
}
func NewHASH512 ¶
func NewHASH512() *HASH512
Source Files ¶
Click to show internal directories.
Click to hide internal directories.