Home
last modified time | relevance | path

Searched refs:bnNm1 (Results 1 – 2 of 2) sorted by relevance

/external/tpm2/
DCpriECC.c681 BIGNUM *bnNm1; // Order of the curve minus one in _cpri__GenerateKeyEcc() local
698 bnNm1 = BN_CTX_get(context); in _cpri__GenerateKeyEcc()
704 || BN_bin2bn(curveData->n->buffer, curveData->n->size, bnNm1) == NULL in _cpri__GenerateKeyEcc()
705 || (keySizeInBytes = (INT16) BN_num_bytes(bnNm1)) > MAX_ECC_KEY_BYTES) in _cpri__GenerateKeyEcc()
708 totalBits = BN_num_bits(bnNm1) + 64; in _cpri__GenerateKeyEcc()
710 BN_sub_word(bnNm1, 1); in _cpri__GenerateKeyEcc()
727 || BN_mod(bnD, bnD, bnNm1, context) != 1) in _cpri__GenerateKeyEcc()
Dpart4.txt33853 576 BIGNUM *bnNm1; // Order of the curve minus one
33878 596 bnNm1 = BN_CTX_get(context);
33886 604 || BN_bin2bn(curveData->n->buffer, curveData->n->size, bnNm1) == NULL
33887 605 || (keySizeInBytes = (INT16) BN_num_bytes(bnNm1)) > MAX_ECC_KEY_BYTES)
33891 609 totalBits = BN_num_bits(bnNm1) + 64;
33893 611 // Reduce bnNm1 from 'n' to 'n' - 1
33894 612 BN_sub_word(bnNm1, 1);
33915 633 || BN_mod(bnD, bnD, bnNm1, context) != 1)