Lines Matching refs:p_bit_len

135 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()
411 p_len = (u8)BYTECEIL(p_bit_len); in _bip0340_verify_init()
416 MUST_HAVE((siglen == BIP0340_SIGLEN(p_bit_len, q_bit_len)), ret, err); in _bip0340_verify_init()
417 MUST_HAVE((p_len == BIP0340_R_LEN(p_bit_len)), ret, err); in _bip0340_verify_init()
827 bitcnt_t p_bit_len, q_bit_len; in _bip0340_verify_batch_no_memory() local
878 p_bit_len = pub_key->params->ec_fp.p_bitlen; in _bip0340_verify_batch_no_memory()
880 p_len = (u8)BYTECEIL(p_bit_len); in _bip0340_verify_batch_no_memory()
886 MUST_HAVE((siglen == BIP0340_SIGLEN(p_bit_len, q_bit_len)), ret, err); in _bip0340_verify_batch_no_memory()
887 MUST_HAVE((siglen == (BIP0340_R_LEN(p_bit_len) + BIP0340_S_LEN(q_bit_len))), ret, err); in _bip0340_verify_batch_no_memory()
1047 bitcnt_t p_bit_len, q_bit_len = 0; in _bip0340_verify_batch() local
1135 p_bit_len = pub_key->params->ec_fp.p_bitlen; in _bip0340_verify_batch()
1137 p_len = (u8)BYTECEIL(p_bit_len); in _bip0340_verify_batch()
1143 MUST_HAVE((siglen == BIP0340_SIGLEN(p_bit_len, q_bit_len)), ret, err); in _bip0340_verify_batch()
1144 MUST_HAVE((siglen == (BIP0340_R_LEN(p_bit_len) + BIP0340_S_LEN(q_bit_len))), ret, err); in _bip0340_verify_batch()