Home
last modified time | relevance | path

Searched refs:NN_MAX_BYTE_LEN (Results 1 – 11 of 11) sorted by relevance

/freebsd/crypto/libecc/src/nn/
H A Dnn_rand.c35 MUST_HAVE((len <= NN_MAX_BYTE_LEN), ret, err); in nn_get_random_len()
61 MUST_HAVE((max_len <= NN_MAX_BYTE_LEN), ret, err); in nn_get_random_maxlen()
108 MUST_HAVE((q_len) && (q_len <= (NN_MAX_BYTE_LEN / 2)), ret, err); in nn_get_random_mod()
H A Dnn.c89 MUST_HAVE(((A != NULL) && (len <= NN_MAX_BYTE_LEN)), ret, err); in nn_init()
492 u8 tmp[NN_MAX_BYTE_LEN]; in nn_init_from_buf()
497 (buflen <= NN_MAX_BYTE_LEN)), ret, err); in nn_init_from_buf()
499 ret = local_memset(tmp, 0, (u32)(NN_MAX_BYTE_LEN - buflen)); EG(ret, err); in nn_init_from_buf()
500 ret = local_memcpy(tmp + NN_MAX_BYTE_LEN - buflen, buf, buflen); EG(ret, err); in nn_init_from_buf()
509 ret = local_memset(tmp, 0, NN_MAX_BYTE_LEN); in nn_init_from_buf()
H A Dnn_mul.c52 MUST_HAVE(((wlimit * WORD_BYTES) <= NN_MAX_BYTE_LEN), ret, err); in _nn_mul_low()
H A Dnn_mod_pow.c56 ret = nn_get_random_len(&mask, NN_MAX_BYTE_LEN); EG(ret, err); in _nn_exp_monty_ladder_ltr()
/freebsd/crypto/libecc/include/libecc/nn/
H A Dnn_config.h153 #define NN_MAX_BYTE_LEN (NN_MAX_BIT_LEN / 8) macro
154 #define NN_MAX_WORD_LEN (NN_MAX_BYTE_LEN / WORD_BYTES)
163 #if (NN_USABLE_MAX_BIT_LEN > NN_MAX_BIT_LEN) || (NN_USABLE_MAX_BYTE_LEN > NN_MAX_BYTE_LEN) || (NN_U…
/freebsd/crypto/libecc/src/examples/basic/
H A Dcurve_ecdh.c52 static u8 zero[2 * NN_MAX_BYTE_LEN] = { 0 };
66 static u8 Alice_to_Bob[2 * NN_MAX_BYTE_LEN] = { 0 };
75 static u8 Bob_to_Alice[2 * NN_MAX_BYTE_LEN] = { 0 };
/freebsd/crypto/libecc/include/libecc/sig/
H A Decfsdsa.h50 u8 r[2 * NN_MAX_BYTE_LEN];
70 u8 r[2 * NN_MAX_BYTE_LEN];
/freebsd/crypto/libecc/src/sig/
H A Dbip0340.c393 u8 Pubx[NN_MAX_BYTE_LEN]; in _bip0340_verify_init()
766 u8 Pubx[NN_MAX_BYTE_LEN]; in _bip0340_compute_batch_csprng_seed()
819 u8 Pubx[NN_MAX_BYTE_LEN]; in _bip0340_verify_batch_no_memory()
1039 u8 Pubx[NN_MAX_BYTE_LEN]; in _bip0340_verify_batch()
H A Dfuzzing_ecgdsa.c81 MUST_HAVE(((u32)BYTECEIL(p_bit_len) <= NN_MAX_BYTE_LEN), ret, err); in ecgdsa_sign_raw()
H A Decfsdsa.c151 MUST_HAVE(((u32)BYTECEIL(p_bit_len) <= NN_MAX_BYTE_LEN), ret, err); in _ecfsdsa_sign_init()
544 u8 r_prime[2 * NN_MAX_BYTE_LEN]; in _ecfsdsa_verify_finalize()
H A Decgdsa.c221 MUST_HAVE(((u32)BYTECEIL(p_bit_len) <= NN_MAX_BYTE_LEN), ret, err); in _ecgdsa_sign_finalize()