Home
last modified time | relevance | path

Searched refs:p_bit_len (Results 1 – 25 of 35) sorted by relevance

12

/freebsd/crypto/libecc/include/libecc/sig/
H A Dbip0340.h23 #define BIP0340_R_LEN(p_bit_len) (BYTECEIL(p_bit_len)) argument
25 #define BIP0340_SIGLEN(p_bit_len, q_bit_len) (BIP0340_R_LEN(p_bit_len) + \ argument
44 ATTRIBUTE_WARN_UNUSED_RET int bip0340_siglen(u16 p_bit_len, u16 q_bit_len, u8 hsize, u8 blocksize,
H A Decfsdsa.h28 #define ECFSDSA_R_LEN(p_bit_len) (2 * (BYTECEIL(p_bit_len))) argument
30 #define ECFSDSA_SIGLEN(p_bit_len, q_bit_len) (ECFSDSA_R_LEN(p_bit_len) + \ argument
59 ATTRIBUTE_WARN_UNUSED_RET int ecfsdsa_siglen(u16 p_bit_len, u16 q_bit_len, u8 hsize, u8 blocksize,
H A Dbign.h22 ATTRIBUTE_WARN_UNUSED_RET int bign_siglen(u16 p_bit_len, u16 q_bit_len, u8 hsize, u8 blocksize, u8 …
H A Ddbign.h22 ATTRIBUTE_WARN_UNUSED_RET int dbign_siglen(u16 p_bit_len, u16 q_bit_len, u8 hsize, u8 blocksize, u8…
H A Decsdsa_common.h34 ATTRIBUTE_WARN_UNUSED_RET int __ecsdsa_siglen(u16 p_bit_len, u16 q_bit_len, u8 hsize, u8 blocksize,
H A Ddecdsa.h27 ATTRIBUTE_WARN_UNUSED_RET int decdsa_siglen(u16 p_bit_len, u16 q_bit_len, u8 hsize, u8 blocksize, u…
H A Decdsa.h27 ATTRIBUTE_WARN_UNUSED_RET int ecdsa_siglen(u16 p_bit_len, u16 q_bit_len, u8 hsize, u8 blocksize, u8…
H A Decosdsa.h50 ATTRIBUTE_WARN_UNUSED_RET int ecosdsa_siglen(u16 p_bit_len, u16 q_bit_len, u8 hsize, u8 blocksize,
H A Decrdsa.h50 ATTRIBUTE_WARN_UNUSED_RET int ecrdsa_siglen(u16 p_bit_len, u16 q_bit_len, u8 hsize, u8 blocksize,
H A Decgdsa.h50 ATTRIBUTE_WARN_UNUSED_RET int ecgdsa_siglen(u16 p_bit_len, u16 q_bit_len, u8 hsize, u8 blocksize,
/freebsd/crypto/libecc/src/sig/
H A Decfsdsa.c61 int ecfsdsa_siglen(u16 p_bit_len, u16 q_bit_len, u8 hsize, u8 blocksize, u8 *siglen) in ecfsdsa_siglen() argument
66 MUST_HAVE((p_bit_len <= CURVES_MAX_P_BIT_LEN) && in ecfsdsa_siglen()
69 (*siglen) = (u8)ECFSDSA_SIGLEN(p_bit_len, q_bit_len); in ecfsdsa_siglen()
128 bitcnt_t p_bit_len; in _ecfsdsa_sign_init() local
150 p_bit_len = priv_key->params->ec_fp.p_bitlen; in _ecfsdsa_sign_init()
151 MUST_HAVE(((u32)BYTECEIL(p_bit_len) <= NN_MAX_BYTE_LEN), ret, err); in _ecfsdsa_sign_init()
152 p_len = (u8)BYTECEIL(p_bit_len); in _ecfsdsa_sign_init()
153 r_len = (u8)ECFSDSA_R_LEN(p_bit_len); in _ecfsdsa_sign_init()
260 bitcnt_t p_bit_len, q_bit_len; in _ecfsdsa_sign_finalize() local
286 p_bit_len = ctx->key_pair->priv_key.params->ec_fp.p_bitlen; in _ecfsdsa_sign_finalize()
[all …]
H A Dbip0340.c135 int bip0340_siglen(u16 p_bit_len, u16 q_bit_len, u8 hsize, u8 blocksize, in bip0340_siglen() argument
141 MUST_HAVE(((p_bit_len <= CURVES_MAX_P_BIT_LEN) && in bip0340_siglen()
146 (*siglen) = (u8)BIP0340_SIGLEN(p_bit_len, q_bit_len); in bip0340_siglen()
173 bitcnt_t p_bit_len, q_bit_len; in _bip0340_sign() local
208 p_bit_len = priv_key->params->ec_fp.p_bitlen; in _bip0340_sign()
211 p_len = (u8)BYTECEIL(p_bit_len); in _bip0340_sign()
225 MUST_HAVE((siglen == BIP0340_SIGLEN(p_bit_len, q_bit_len)), ret, err); in _bip0340_sign()
226 MUST_HAVE((p_len == BIP0340_R_LEN(p_bit_len)), ret, err); in _bip0340_sign()
386 bitcnt_t p_bit_len, q_bit_len; in _bip0340_verify_init() local
409 p_bit_len = ctx->pub_key->params->ec_fp.p_bitlen; in _bip0340_verify_init()
[all …]
H A Decosdsa.c43 int ecosdsa_siglen(u16 p_bit_len, u16 q_bit_len, u8 hsize, u8 blocksize, in ecosdsa_siglen() argument
46 return __ecsdsa_siglen(p_bit_len, q_bit_len, hsize, blocksize, siglen); in ecosdsa_siglen()
H A Decsdsa.c43 int ecsdsa_siglen(u16 p_bit_len, u16 q_bit_len, u8 hsize, u8 blocksize, in ecsdsa_siglen() argument
46 return __ecsdsa_siglen(p_bit_len, q_bit_len, hsize, blocksize, siglen); in ecsdsa_siglen()
H A Dbign.c36 int bign_siglen(u16 p_bit_len, u16 q_bit_len, u8 hsize, u8 blocksize, u8 *siglen) in bign_siglen() argument
38 return __bign_siglen(p_bit_len, q_bit_len, hsize, blocksize, siglen); in bign_siglen()
H A Decdsa.c36 int ecdsa_siglen(u16 p_bit_len, u16 q_bit_len, u8 hsize, u8 blocksize, u8 *siglen) in ecdsa_siglen() argument
38 return __ecdsa_siglen(p_bit_len, q_bit_len, hsize, blocksize, siglen); in ecdsa_siglen()
H A Ddbign.c41 int dbign_siglen(u16 p_bit_len, u16 q_bit_len, u8 hsize, u8 blocksize, u8 *siglen) in dbign_siglen() argument
43 return __bign_siglen(p_bit_len, q_bit_len, hsize, blocksize, siglen); in dbign_siglen()
H A Ddecdsa.c41 int decdsa_siglen(u16 p_bit_len, u16 q_bit_len, u8 hsize, u8 blocksize, u8 *siglen) in decdsa_siglen() argument
43 return __ecdsa_siglen(p_bit_len, q_bit_len, hsize, blocksize, siglen); in decdsa_siglen()
H A Decsdsa_common.c71 int __ecsdsa_siglen(u16 p_bit_len, u16 q_bit_len, u8 hsize, u8 blocksize, in __ecsdsa_siglen() argument
77 MUST_HAVE(((p_bit_len <= CURVES_MAX_P_BIT_LEN) && in __ecsdsa_siglen()
148 bitcnt_t p_bit_len; in __ecsdsa_sign_init() local
171 p_bit_len = priv_key->params->ec_fp.p_bitlen; in __ecsdsa_sign_init()
172 p_len = (u8)BYTECEIL(p_bit_len); in __ecsdsa_sign_init()
234 VAR_ZEROIFY(p_bit_len); in __ecsdsa_sign_init()
H A Decrdsa.c101 int ecrdsa_siglen(u16 p_bit_len, u16 q_bit_len, u8 hsize, u8 blocksize, u8 *siglen) in ecrdsa_siglen() argument
106 MUST_HAVE((p_bit_len <= CURVES_MAX_P_BIT_LEN) && in ecrdsa_siglen()
198 bitcnt_t q_bit_len, p_bit_len; in _ecrdsa_sign_finalize() local
232 p_bit_len = priv_key->params->ec_fp.p_bitlen; in _ecrdsa_sign_finalize()
244 …MUST_HAVE((cmp < 0) && (p_bit_len <= NN_MAX_BIT_LEN) && (siglen == ECRDSA_SIGLEN(q_bit_len)), ret,… in _ecrdsa_sign_finalize()
375 VAR_ZEROIFY(p_bit_len); in _ecrdsa_sign_finalize()
H A Decgdsa.c69 int ecgdsa_siglen(u16 p_bit_len, u16 q_bit_len, u8 hsize, u8 blocksize, u8 *siglen) in ecgdsa_siglen() argument
74 MUST_HAVE((p_bit_len <= CURVES_MAX_P_BIT_LEN) && in ecgdsa_siglen()
188 bitcnt_t q_bit_len, p_bit_len, rshift; in _ecgdsa_sign_finalize() local
220 p_bit_len = priv_key->params->ec_fp.p_bitlen; in _ecgdsa_sign_finalize()
221 MUST_HAVE(((u32)BYTECEIL(p_bit_len) <= NN_MAX_BYTE_LEN), ret, err); in _ecgdsa_sign_finalize()
371 VAR_ZEROIFY(p_bit_len); in _ecgdsa_sign_finalize()
H A Dbign_common.c376 int __bign_siglen(u16 p_bit_len, u16 q_bit_len, u8 hsize, u8 blocksize, u8 *siglen) in __bign_siglen() argument
381 MUST_HAVE((p_bit_len <= CURVES_MAX_P_BIT_LEN) && in __bign_siglen()
477 bitcnt_t q_bit_len, p_bit_len; in __bign_sign_finalize() local
514 p_bit_len = priv_key->params->ec_fp.p_bitlen; in __bign_sign_finalize()
516 p_len = (u8)BYTECEIL(p_bit_len); in __bign_sign_finalize()
852 bitcnt_t p_bit_len, q_bit_len; in __bign_verify_finalize() local
892 p_bit_len = ctx->pub_key->params->ec_fp.p_bitlen; in __bign_verify_finalize()
894 p_len = (u8)BYTECEIL(p_bit_len); in __bign_verify_finalize()
981 VAR_ZEROIFY(p_bit_len); in __bign_verify_finalize()
H A Dfuzzing_ecgdsa.c49 bitcnt_t q_bit_len, p_bit_len, rshift; in ecgdsa_sign_raw() local
80 p_bit_len = priv_key->params->ec_fp.p_bitlen; in ecgdsa_sign_raw()
81 MUST_HAVE(((u32)BYTECEIL(p_bit_len) <= NN_MAX_BYTE_LEN), ret, err); in ecgdsa_sign_raw()
232 VAR_ZEROIFY(p_bit_len); in ecgdsa_sign_raw()
H A Dfuzzing_ecrdsa.c84 bitcnt_t q_bit_len, p_bit_len; in ecrdsa_sign_raw() local
119 p_bit_len = priv_key->params->ec_fp.p_bitlen; in ecrdsa_sign_raw()
126 MUST_HAVE((NN_MAX_BIT_LEN >= p_bit_len), ret, err); in ecrdsa_sign_raw()
268 VAR_ZEROIFY(p_bit_len); in ecrdsa_sign_raw()
H A Deckcdsa.c82 int eckcdsa_siglen(u16 p_bit_len, u16 q_bit_len, u8 hsize, u8 blocksize, in eckcdsa_siglen() argument
88 MUST_HAVE((p_bit_len <= CURVES_MAX_P_BIT_LEN) && in eckcdsa_siglen()
695 bitcnt_t q_bit_len, p_bit_len; in _eckcdsa_verify_finalize() local
735 p_bit_len = pub_key->params->ec_fp.p_bitlen; in _eckcdsa_verify_finalize()
737 p_len = (u8)BYTECEIL(p_bit_len); in _eckcdsa_verify_finalize()
826 VAR_ZEROIFY(p_bit_len); in _eckcdsa_verify_finalize()

12