Versions in this module Expand all Collapse all v0 v0.6.3 Dec 26, 2024 v0.6.2 Nov 26, 2024 Changes in this version + const TRSIZE v0.6.1 Jan 13, 2024 v0.6.0 Aug 9, 2023 v0.5.2 May 29, 2023 Changes in this version + const AES_CBC + const AES_CFB1 + const AES_CFB2 + const AES_CFB4 + const AES_CTR1 + const AES_CTR16 + const AES_CTR2 + const AES_CTR4 + const AES_CTR8 + const AES_ECB + const AES_OFB1 + const AES_OFB16 + const AES_OFB2 + const AES_OFB4 + const AES_OFB8 + const DL_COMBO + const DL_D + const DL_DEGREE + const DL_LGN + const DL_MAXK + const DL_MAXL + const DL_MAXLG + const DL_ND + const DL_ONE + const DL_PK_SIZE_2 + const DL_PK_SIZE_3 + const DL_PK_SIZE_5 + const DL_PRIME + const DL_R2MODP + const DL_SIG_SIZE_2 + const DL_SIG_SIZE_3 + const DL_SIG_SIZE_5 + const DL_SK_SIZE_2 + const DL_SK_SIZE_3 + const DL_SK_SIZE_5 + const DL_TD + const DL_YBYTES + const GCM_ACCEPTING_CIPHER + const GCM_ACCEPTING_HEADER + const GCM_DECRYPTING + const GCM_ENCRYPTING + const GCM_FINISHED + const GCM_NOT_ACCEPTING_MORE + const KYBER_CIPHERTEXT_SIZE_1024 + const KYBER_CIPHERTEXT_SIZE_512 + const KYBER_CIPHERTEXT_SIZE_768 + const KYBER_PUBLIC_SIZE_1024 + const KYBER_PUBLIC_SIZE_512 + const KYBER_PUBLIC_SIZE_768 + const KYBER_SECRET_CCA_SIZE_1024 + const KYBER_SECRET_CCA_SIZE_512 + const KYBER_SECRET_CCA_SIZE_768 + const KYBER_SECRET_CPA_SIZE_1024 + const KYBER_SECRET_CPA_SIZE_512 + const KYBER_SECRET_CPA_SIZE_768 + const KYBER_SHARED_SECRET_1024 + const KYBER_SHARED_SECRET_512 + const KYBER_SHARED_SECRET_768 + const KY_DEGREE + const KY_LGN + const KY_MAXK + const KY_ONE + const KY_PRIME + const KY_QINV + const MC_SHA2 + const MC_SHA3 + const NTTL + const SHA256 + const SHA384 + const SHA3_HASH224 + const SHA3_HASH256 + const SHA3_HASH384 + const SHA3_HASH512 + const SHA3_SHAKE128 + const SHA3_SHAKE256 + const SHA512 + const Version + var DL_PARAMS_2 = []int + var DL_PARAMS_3 = []int + var DL_PARAMS_5 = []int + var DL_iroots = []int32 + var DL_roots = []int32 + var PARAMS_1024 = [6]int + var PARAMS_512 = [6]int + var PARAMS_768 = [6]int + var SHA256ID = [...]byte + var SHA256IDb = [...]byte + var SHA384ID = [...]byte + var SHA384IDb = [...]byte + var SHA512ID = [...]byte + var SHA512IDb = [...]byte + var ZETAS = [256]int16 + func AES_CBC_IV0_DECRYPT(K []byte, C []byte) []byte + func AES_CBC_IV0_ENCRYPT(K []byte, M []byte) []byte + func DL_CRH1(params []int, H []byte, rho []byte, t1 [][DL_DEGREE]int16) + func DL_CRH2(H []byte, tr []byte, mess []byte, mlen int) + func DL_CRH3(H []byte, bK []byte, mu []byte) + func DL_ExpandAij(rho []byte, Aij []int32, i int, j int) + func DL_H4(params []int, CT []byte, mu []byte, w1 [][DL_DEGREE]int8) + func DL_MakePartialHint(params []int, h []byte, hptr int, z []int32, r []int32) int + func DL_Power2Round(t []int32, t0 []int16, t1 []int16) + func DL_SampleInBall(params []int, ct []byte, c []int32) + func DL_UsePartialHint(params []int, r []int8, h []byte, hptr int, i int, w []int32) int + func DL_decompose_hi(params []int, a int32) int8 + func DL_decompose_lo(params []int, a int32) int32 + func DL_hibits(params []int, r1 []int8, r []int32) + func DL_infinity_norm(w []int32) int32 + func DL_intt(x []int32) + func DL_keypair(params []int, tau []byte, sk []byte, pk []byte) + func DL_keypair_2(tau []byte, sk []byte, pk []byte) + func DL_keypair_3(tau []byte, sk []byte, pk []byte) + func DL_keypair_5(tau []byte, sk []byte, pk []byte) + func DL_lobits(params []int, r0 []int32, r []int32) + func DL_modmul(a uint32, b uint32) int32 + func DL_nabs(x int32) int32 + func DL_nextbyte16(ab int, max int, t []int16, position []int) byte + func DL_nextbyte32(ab int, max int, t []int32, position []int) byte + func DL_nextbyte8(ab int, max int, t []int8, position []int) byte + func DL_nextword(ab int, max int, t []byte, position []int) int32 + func DL_nres(x uint32) int32 + func DL_nres_it(p []int32) + func DL_ntt(x []int32) + func DL_pack_pk(params []int, pk []byte, rho []byte, t1 [][DL_DEGREE]int16) int + func DL_pack_sig(params []int, sig []byte, z [][DL_DEGREE]int32, ct []byte, h []byte) int + func DL_pack_sk(params []int, sk []byte, rho []byte, bK []byte, tr []byte, ...) int + func DL_poly_add(p1 []int32, p2 []int32, p3 []int32) + func DL_poly_copy(p1 []int32, p2 []int32) + func DL_poly_hard_reduce(poly []int32) + func DL_poly_mcopy(p1 []int32, p2 []int16) + func DL_poly_mul(p1 []int32, p2 []int32, p3 []int32) + func DL_poly_negate(p1 []int32, p2 []int32) + func DL_poly_pos(p []int32) + func DL_poly_scopy(p1 []int32, p2 []int8) + func DL_poly_soft_reduce(poly []int32) + func DL_poly_sub(p1 []int32, p2 []int32, p3 []int32) + func DL_poly_zero(p1 []int32) + func DL_redc(T uint64) int32 + func DL_redc_it(p []int32) + func DL_round(a int32, b int32) int32 + func DL_sample_Sn(params []int, rhod []byte, s []int8, n int) + func DL_sample_Y(params []int, k int, rhod []byte, y [][DL_DEGREE]int32) + func DL_signature(params []int, sk []byte, M []byte, sig []byte) int + func DL_signature_2(sk []byte, M []byte, sig []byte) int + func DL_signature_3(sk []byte, M []byte, sig []byte) int + func DL_signature_5(sk []byte, M []byte, sig []byte) int + func DL_unpack_pk(params []int, rho []byte, t1 [][DL_DEGREE]int16, pk []byte) + func DL_unpack_sig(params []int, z [][DL_DEGREE]int32, ct []byte, h []byte, sig []byte) + func DL_unpack_sk(params []int, rho []byte, bK []byte, tr []byte, s1 [][DL_DEGREE]int8, ...) + func DL_verify(params []int, pk []byte, M []byte, sig []byte) bool + func DL_verify_2(pk []byte, M []byte, sig []byte) bool + func DL_verify_3(pk []byte, M []byte, sig []byte) bool + func DL_verify_5(pk []byte, M []byte, sig []byte) bool + func GCM_DECRYPT(K []byte, IV []byte, H []byte, C []byte) ([]byte, []byte) + func GCM_ENCRYPT(K []byte, IV []byte, H []byte, P []byte) ([]byte, []byte) + func GPhashit(hash int, hlen int, olen int, zpad int, A []byte, n int32, B []byte) []byte + func HKDF_Expand(hash int, hlen int, olen int, PRK []byte, INFO []byte) []byte + func HKDF_Extract(hash int, hlen int, SALT []byte, IKM []byte) []byte + func HMAC(hash int, sha int, tag []byte, olen int, K []byte, M []byte) int + func InttoBytes(n int, len int) []byte + func KDF2(hash int, sha int, Z []byte, P []byte, olen int) []byte + func KYBER_decrypt1024(SK []byte, CT []byte, SS []byte) + func KYBER_decrypt512(SK []byte, CT []byte, SS []byte) + func KYBER_decrypt768(SK []byte, CT []byte, SS []byte) + func KYBER_encrypt1024(r32 []byte, PK []byte, SS []byte, CT []byte) + func KYBER_encrypt512(r32 []byte, PK []byte, SS []byte, CT []byte) + func KYBER_encrypt768(r32 []byte, PK []byte, SS []byte, CT []byte) + func KYBER_keypair1024(r64 []byte, SK []byte, PK []byte) + func KYBER_keypair512(r64 []byte, SK []byte, PK []byte) + func KYBER_keypair768(r64 []byte, SK []byte, PK []byte) + func MGF1(sha int, Z []byte, olen int, K []byte) + func MGF1XOR(sha int, Z []byte, olen int, K []byte) + func PBKDF2(hash int, sha int, Pass []byte, Salt []byte, rep int, olen int) []byte + func RSA_OAEP_DECODE(sha int, p []byte, f []byte, RFS int) []byte + func RSA_OAEP_ENCODE(sha int, m []byte, rng *RAND, p []byte, RFS int) []byte + func RSA_PKCS15(sha int, m []byte, w []byte, RFS int) bool + func RSA_PKCS15b(sha int, m []byte, w []byte, RFS int) bool + func RSA_PSS_ENCODE(sha int, m []byte, rng *RAND, RFS int) []byte + func RSA_PSS_VERIFY(sha int, m []byte, f []byte) bool + func Recover(S []*SHARE) []byte + func SPhashit(hash int, hlen int, A []byte) []byte + func XMD_Expand(hash int, hlen int, olen int, DST []byte, MSG []byte) []byte + func XOF_Expand(hlen int, olen int, DST []byte, MSG []byte) []byte + type AES struct + Nk int + Nr int + func NewAES() *AES + func (A *AES) Decrypt(buff []byte) uint32 + func (A *AES) Encrypt(buff []byte) uint32 + func (A *AES) End() + func (A *AES) Getreg() [16]byte + func (A *AES) Init(m int, nk int, key []byte, iv []byte) bool + func (A *AES) Reset(m int, iv []byte) + type GCM struct + Y_0 [16]byte + func (G *GCM) Add_cipher(cipher []byte, len int) []byte + func (G *GCM) Add_header(header []byte, len int) bool + func (G *GCM) Add_plain(plain []byte, len int) []byte + func (G *GCM) Finish(extract bool) []byte + func (G *GCM) Init(nk int, key []byte, niv int, iv []byte) + type HASH256 struct + func NewHASH256() *HASH256 + func NewHASH256copy(HC *HASH256) *HASH256 + func (H *HASH256) Continuing_Hash() []byte + func (H *HASH256) Hash() []byte + func (H *HASH256) Init() + func (H *HASH256) Process(byt byte) + func (H *HASH256) Process_array(b []byte) + func (H *HASH256) Process_num(n int32) + type HASH384 struct + func NewHASH384() *HASH384 + func NewHASH384copy(HC *HASH384) *HASH384 + func (H *HASH384) Continuing_Hash() []byte + func (H *HASH384) Hash() []byte + func (H *HASH384) Init() + func (H *HASH384) Process(byt byte) + func (H *HASH384) Process_array(b []byte) + func (H *HASH384) Process_num(n int32) + type HASH512 struct + func NewHASH512() *HASH512 + func NewHASH512copy(HC *HASH512) *HASH512 + func (H *HASH512) Continuing_Hash() []byte + func (H *HASH512) Hash() []byte + func (H *HASH512) Init() + func (H *HASH512) Process(byt byte) + func (H *HASH512) Process_array(b []byte) + func (H *HASH512) Process_num(n int32) + type RAND struct + func NewRAND() *RAND + func (R *RAND) Clean() + func (R *RAND) GetByte() byte + func (R *RAND) Seed(rawlen int, raw []byte) + type SHA3 struct + func NewSHA3(olen int) *SHA3 + func NewSHA3copy(HC *SHA3) *SHA3 + func (H *SHA3) Continuing_Hash() []byte + func (H *SHA3) Continuing_Shake(hash []byte, olen int) + func (H *SHA3) Hash() []byte + func (H *SHA3) Init(olen int) + func (H *SHA3) Process(byt byte) + func (H *SHA3) Process_array(b []byte) + func (H *SHA3) Process_num(n int32) + func (H *SHA3) Shake(hash []byte, olen int) + func (H *SHA3) Squeeze(buff []byte, olen int) + type SHARE struct + B []byte + ID byte + NSR byte + func NewSHARE(id int, nsr int, M []byte, R []byte) *SHARE v0.5.1 May 17, 2023 v0.5.0 Dec 30, 2022 v0.4.2 May 4, 2022 v0.4.1 Jan 12, 2022 v0.4.0 Aug 13, 2021 v0.3.2 Mar 12, 2021 v0.1.1 Apr 15, 2020