Home
last modified time | relevance | path

Searched refs:exponent (Results 1 – 8 of 8) sorted by relevance

/system/extras/verity/
Dgenerate_verity_key.c126 BIGNUM* exponent = BN_new(); in generate_key() local
129 if (!pkey || !exponent || !rsa) { in generate_key()
134 BN_set_word(exponent, RSA_F4); in generate_key()
135 RSA_generate_key_ex(rsa, 2048, exponent, NULL); in generate_key()
161 BN_free(exponent); in generate_key()
/system/core/adb/crypto/
Drsa_2048_key.cpp72 bssl::UniquePtr<BIGNUM> exponent(BN_new()); in CreateRSA2048Key() local
74 if (!pkey || !exponent || !rsa) { in CreateRSA2048Key()
79 BN_set_word(exponent.get(), RSA_F4); in CreateRSA2048Key()
80 RSA_generate_key_ex(rsa.get(), 2048, exponent.get(), nullptr); in CreateRSA2048Key()
/system/media/audio_utils/
Dminifloat.c59 int exponent = (a >> MANTISSA_BITS) & EXPONENT_MAX; in float_from_gain() local
60 return ldexpf((exponent > 0 ? HIDDEN_BIT | mantissa : mantissa << 1) / ONE_FLOAT, in float_from_gain()
61 exponent - EXCESS); in float_from_gain()
Dsample.c79 int exponent = (a >> MANTISSA_BITS) & EXPONENT_MAX; in float_from_sample() local
80 float f = ldexpf((exponent > 0 ? HIDDEN_BIT | mantissa : mantissa << 1) / ONE_FLOAT, in float_from_sample()
81 exponent - EXCESS); in float_from_sample()
/system/keymaster/km_openssl/
Drsa_key_factory.cpp81 UniquePtr<BIGNUM, BIGNUM_Delete> exponent(BN_new()); in GenerateKey() local
84 if (exponent.get() == nullptr || rsa_key.get() == nullptr || pkey.get() == nullptr) in GenerateKey()
87 if (!BN_set_word(exponent.get(), public_exponent) || in GenerateKey()
88 !RSA_generate_key_ex(rsa_key.get(), key_size, exponent.get(), nullptr /* callback */)) in GenerateKey()
/system/core/libcrypto_utils/
Dandroid_pubkey.c52 uint32_t exponent; member
91 if (!new_key->e || !BN_set_word(new_key->e, key_struct->exponent)) { in android_pubkey_decode()
159 key_struct->exponent = (uint32_t)BN_get_word(key->e); in android_pubkey_encode()
/system/core/libpixelflinger/
Dfixed.cpp26 int32_t gglRecipQNormalized(int32_t x, int* exponent) in gglRecipQNormalized() argument
33 *exponent = 0; in gglRecipQNormalized()
55 *exponent = 30-lz-1; in gglRecipQNormalized()
/system/core/libpixelflinger/include/private/pixelflinger/
Dggl_fixed.h91 int32_t gglRecipQNormalized(int32_t x, int* exponent);