Home
last modified time | relevance | path

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

/system/core/libcrypto_utils/
Dandroid_pubkey.c65 const RSAPublicKey* key_struct = (RSAPublicKey*)key_buffer; in android_pubkey_decode() local
77 if (key_struct->modulus_size_words != ANDROID_PUBKEY_MODULUS_SIZE_WORDS) { in android_pubkey_decode()
82 memcpy(modulus_buffer, key_struct->modulus, sizeof(modulus_buffer)); in android_pubkey_decode()
91 if (!new_key->e || !BN_set_word(new_key->e, key_struct->exponent)) { in android_pubkey_decode()
123 RSAPublicKey* key_struct = (RSAPublicKey*)key_buffer; in android_pubkey_encode() local
136 key_struct->modulus_size_words = ANDROID_PUBKEY_MODULUS_SIZE_WORDS; in android_pubkey_encode()
144 key_struct->n0inv = (uint32_t)BN_get_word(n0inv); in android_pubkey_encode()
147 if (!android_pubkey_encode_bignum(key->n, key_struct->modulus)) { in android_pubkey_encode()
154 !android_pubkey_encode_bignum(rr, key_struct->rr)) { in android_pubkey_encode()
159 key_struct->exponent = (uint32_t)BN_get_word(key->e); in android_pubkey_encode()