Home
last modified time | relevance | path

Searched refs:n0inv (Results 1 – 23 of 23) sorted by relevance

/external/avb/libavb/
Davb_rsa.c42 uint32_t n0inv; /* -1 / n[0] mod 2^32 */ member
85 key->n0inv = h.n0inv; in iavb_parse_key_data()
142 uint32_t d0 = (uint32_t)A * key->n0inv; in montMulAdd()
Davb_crypto.c369 dest->n0inv = avb_be32toh(dest->n0inv); in avb_rsa_public_key_header_validate_and_byteswap()
Davb_crypto.h160 uint32_t n0inv; member
/external/u-boot/lib/libavb/
Davb_rsa.c18 uint32_t n0inv; /* -1 / n[0] mod 2^32 */ member
61 key->n0inv = h.n0inv; in iavb_parse_key_data()
118 uint32_t d0 = (uint32_t)A * key->n0inv; in montMulAdd()
Davb_crypto.c350 dest->n0inv = avb_be32toh(dest->n0inv); in avb_rsa_public_key_header_validate_and_byteswap()
Davb_crypto.h141 uint32_t n0inv; member
/external/u-boot/lib/rsa/
Drsa-mod-exp.c88 d0 = (uint32_t)acc_a * key->n0inv; in montgomery_mul_add_step()
259 key.n0inv = prop->n0inv; in rsa_mod_exp_sw()
Drsa-verify.c168 prop.n0inv = fdtdec_get_int(blob, node, "rsa,n0-inverse", 0); in rsa_verify_with_keynode()
/external/vboot_reference/tests/
Dvb20_rsa_padding_tests.c33 k2->n0inv = key->n0inv; in vb2_public_key_to_vb2()
Dvb21_host_key_tests.c231 TEST_EQ(key->n0inv, k2.n0inv, " n0inv"); in public_key_tests()
Drsa_utility_tests.c100 TEST_EQ(key->n0inv, 0xF00D2345, "RSAPublicKeyFromBuf() n0inv"); in TestKeyFromBuffer()
/external/vboot_reference/firmware/lib/cryptolib/
Drsa_utility.c72 StatefulMemcpy(&st, &key->n0inv, sizeof(key->n0inv)); in RSAPublicKeyFromBuf()
Drsa.c45 uint32_t d0 = (uint32_t)A * key->n0inv; in montMulAdd()
/external/u-boot/include/u-boot/
Drsa-mod-exp.h24 uint32_t n0inv; /* -1 / modulus[0] mod 2^32 */ member
Drsa.h26 uint32_t n0inv; /* -1 / modulus[0] mod 2^32 */ member
/external/vboot_reference/firmware/2lib/include/
D2rsa.h17 uint32_t n0inv; /* -1 / n[0] mod 2^32 */ member
/external/vboot_reference/firmware/lib/cryptolib/include/
Drsa.h27 uint32_t n0inv; /* -1 / n[0] mod 2^32 */ member
/external/vboot_reference/firmware/lib20/
Dpacked_key.c70 key->n0inv = buf32[1]; in vb2_unpack_key()
/external/vboot_reference/firmware/lib21/
Dpacked_key.c36 key->n0inv = buf32[1]; in vb2_unpack_key_data()
/external/avb/test/
Davb_util_unittest.cc54 h.n0inv = htobe32(n32); in TEST_F()
64 EXPECT_EQ(n32, s.n0inv); in TEST_F()
/external/vboot_reference/firmware/2lib/
D2rsa.c56 uint32_t d0 = (uint32_t)A * key->n0inv; in montMulAdd()
/external/vboot_reference/host/lib21/
Dhost_key.c505 buf32[1] = pubk->n0inv; in vb2_public_key_pack()
/external/avb/
Davbtool411 n0inv = b - modinv(key.modulus, b)
415 ret.extend(struct.pack('!II', key.num_bits, n0inv))