Home
last modified time | relevance | path

Searched refs:ANDROID_PUBKEY_MODULUS_SIZE (Results 1 – 5 of 5) sorted by relevance

/system/core/libcrypto_utils/
Dandroid_pubkey.cpp26 #if (ANDROID_PUBKEY_MODULUS_SIZE % 4) != 0
31 #define ANDROID_PUBKEY_MODULUS_SIZE_WORDS (ANDROID_PUBKEY_MODULUS_SIZE / 4)
46 uint8_t modulus[ANDROID_PUBKEY_MODULUS_SIZE];
49 uint8_t rr[ANDROID_PUBKEY_MODULUS_SIZE];
74 n = BN_le2bn(key_struct->modulus, ANDROID_PUBKEY_MODULUS_SIZE, NULL); in android_pubkey_decode()
119 if (sizeof(RSAPublicKey) > size || RSA_size(key) != ANDROID_PUBKEY_MODULUS_SIZE) { in android_pubkey_encode()
134 if (!BN_bn2le_padded(key_struct->modulus, ANDROID_PUBKEY_MODULUS_SIZE, RSA_get0_n(key))) { in android_pubkey_encode()
139 if (!ctx || !rr || !BN_set_bit(rr, ANDROID_PUBKEY_MODULUS_SIZE * 8) || in android_pubkey_encode()
141 !BN_bn2le_padded(key_struct->rr, ANDROID_PUBKEY_MODULUS_SIZE, rr)) { in android_pubkey_encode()
/system/core/libcrypto_utils/include/crypto_utils/
Dandroid_pubkey.h31 #define ANDROID_PUBKEY_MODULUS_SIZE (2048 / 8) macro
35 (3 * sizeof(uint32_t) + 2 * ANDROID_PUBKEY_MODULUS_SIZE)
/system/core/libcrypto_utils/tests/
Dandroid_pubkey_test.cpp84 const uint8_t kSignature2048[ANDROID_PUBKEY_MODULUS_SIZE] = {
/system/extras/libfec/include/fec/
Dio.h74 uint8_t signature[ANDROID_PUBKEY_MODULUS_SIZE];
75 uint8_t ecc_signature[ANDROID_PUBKEY_MODULUS_SIZE];
/system/extras/libfec/
Dfec_private.h63 uint8_t signature[ANDROID_PUBKEY_MODULUS_SIZE];