Home
last modified time | relevance | path

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

/hardware/qcom/keymaster/
Dkeymaster_qcom.cpp106 struct qcom_km_key_blob * keyblob_ptr = (struct qcom_km_key_blob *)keyBlob; in qcom_km_get_keypair_public() local
124 if (keyblob_ptr->magic_num != KM_MAGIC_NUM) { in qcom_km_get_keypair_public()
129 if (keyblob_ptr->public_exponent_size == 0 ) { in qcom_km_get_keypair_public()
133 if (keyblob_ptr->modulus_size == 0 ) { in qcom_km_get_keypair_public()
144 rsa->n = BN_bin2bn(reinterpret_cast<const unsigned char*>(keyblob_ptr->modulus), in qcom_km_get_keypair_public()
145 keyblob_ptr->modulus_size, NULL); in qcom_km_get_keypair_public()
151 rsa->e = BN_bin2bn(reinterpret_cast<const unsigned char*>(&keyblob_ptr->public_exponent), in qcom_km_get_keypair_public()
152 keyblob_ptr->public_exponent_size, NULL); in qcom_km_get_keypair_public()