Lines Matching refs:p_bit_len
61 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()
289 r_len = (u8)ECFSDSA_R_LEN(p_bit_len); in _ecfsdsa_sign_finalize()
301 MUST_HAVE((siglen == ECFSDSA_SIGLEN(p_bit_len, q_bit_len)), ret, err); in _ecfsdsa_sign_finalize()
380 VAR_ZEROIFY(p_bit_len); in _ecfsdsa_sign_finalize()
419 bitcnt_t p_bit_len, q_bit_len; in _ecfsdsa_verify_init() local
440 p_bit_len = ctx->pub_key->params->ec_fp.p_bitlen; in _ecfsdsa_verify_init()
442 p_len = (u8)BYTECEIL(p_bit_len); in _ecfsdsa_verify_init()
443 r_len = (u8)ECFSDSA_R_LEN(p_bit_len); in _ecfsdsa_verify_init()
447 MUST_HAVE((siglen == ECFSDSA_SIGLEN(p_bit_len, q_bit_len)), ret, err); in _ecfsdsa_verify_init()
503 VAR_ZEROIFY(p_bit_len); in _ecfsdsa_verify_init()
543 bitcnt_t p_bit_len, r_len; in _ecfsdsa_verify_finalize() local
575 p_bit_len = ctx->pub_key->params->ec_fp.p_bitlen; in _ecfsdsa_verify_finalize()
576 p_len = (u8)BYTECEIL(p_bit_len); in _ecfsdsa_verify_finalize()
577 r_len = (u8)ECFSDSA_R_LEN(p_bit_len); in _ecfsdsa_verify_finalize()
674 bitcnt_t p_bit_len, q_bit_len; in _ecfsdsa_verify_batch_no_memory() local
718 p_bit_len = pub_key->params->ec_fp.p_bitlen; in _ecfsdsa_verify_batch_no_memory()
720 p_len = (u8)BYTECEIL(p_bit_len); in _ecfsdsa_verify_batch_no_memory()
726 MUST_HAVE((siglen == ECFSDSA_SIGLEN(p_bit_len, q_bit_len)), ret, err); in _ecfsdsa_verify_batch_no_memory()
727 MUST_HAVE((siglen == (ECFSDSA_R_LEN(p_bit_len) + ECFSDSA_S_LEN(q_bit_len))), ret, err); in _ecfsdsa_verify_batch_no_memory()
857 bitcnt_t p_bit_len, q_bit_len = 0; in _ecfsdsa_verify_batch() local
938 p_bit_len = pub_key->params->ec_fp.p_bitlen; in _ecfsdsa_verify_batch()
940 p_len = (u8)BYTECEIL(p_bit_len); in _ecfsdsa_verify_batch()
946 MUST_HAVE((siglen == ECFSDSA_SIGLEN(p_bit_len, q_bit_len)), ret, err); in _ecfsdsa_verify_batch()
947 MUST_HAVE((siglen == (ECFSDSA_R_LEN(p_bit_len) + ECFSDSA_S_LEN(q_bit_len))), ret, err); in _ecfsdsa_verify_batch()