Home
last modified time | relevance | path

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

/device/asus/grouper/keymaster/
Dkeymaster_grouper.cpp444 Unique_ByteArray modulus(bignum_to_array(rsa->n)); in tee_import_keypair() local
445 if (modulus.get() == NULL) { in tee_import_keypair()
473 {CKA_MODULUS, modulus->get(), modulus->length()}, in tee_import_keypair()
547 set_attribute(&privateKeyTemplate[templateOffset++], CKA_MODULUS, modulus->get(), in tee_import_keypair()
548 modulus->length()); in tee_import_keypair()
644 ByteArray modulus(new CK_BYTE[attributes[0].ulValueLen], attributes[0].ulValueLen); in tee_get_keypair_public() local
647 attributes[0].pValue = modulus.get(); in tee_get_keypair_public()
658 modulus.length(), attributes[0].ulValueLen, in tee_get_keypair_public()
666 modulus.setLength(attributes[0].ulValueLen); in tee_get_keypair_public()
675 rsa->n = BN_bin2bn(reinterpret_cast<const unsigned char*>(modulus.get()), modulus.length(), in tee_get_keypair_public()
/device/asus/tilapia/self-extractors/nvidia/staging/keymaster/
Dkeymaster_grouper.cpp444 Unique_ByteArray modulus(bignum_to_array(rsa->n)); in tee_import_keypair() local
445 if (modulus.get() == NULL) { in tee_import_keypair()
473 {CKA_MODULUS, modulus->get(), modulus->length()}, in tee_import_keypair()
547 set_attribute(&privateKeyTemplate[templateOffset++], CKA_MODULUS, modulus->get(), in tee_import_keypair()
548 modulus->length()); in tee_import_keypair()
644 ByteArray modulus(new CK_BYTE[attributes[0].ulValueLen], attributes[0].ulValueLen); in tee_get_keypair_public() local
647 attributes[0].pValue = modulus.get(); in tee_get_keypair_public()
658 modulus.length(), attributes[0].ulValueLen, in tee_get_keypair_public()
666 modulus.setLength(attributes[0].ulValueLen); in tee_get_keypair_public()
675 rsa->n = BN_bin2bn(reinterpret_cast<const unsigned char*>(modulus.get()), modulus.length(), in tee_get_keypair_public()
/device/asus/grouper/self-extractors/nvidia/staging/keymaster/
Dkeymaster_grouper.cpp444 Unique_ByteArray modulus(bignum_to_array(rsa->n)); in tee_import_keypair() local
445 if (modulus.get() == NULL) { in tee_import_keypair()
473 {CKA_MODULUS, modulus->get(), modulus->length()}, in tee_import_keypair()
547 set_attribute(&privateKeyTemplate[templateOffset++], CKA_MODULUS, modulus->get(), in tee_import_keypair()
548 modulus->length()); in tee_import_keypair()
644 ByteArray modulus(new CK_BYTE[attributes[0].ulValueLen], attributes[0].ulValueLen); in tee_get_keypair_public() local
647 attributes[0].pValue = modulus.get(); in tee_get_keypair_public()
658 modulus.length(), attributes[0].ulValueLen, in tee_get_keypair_public()
666 modulus.setLength(attributes[0].ulValueLen); in tee_get_keypair_public()
675 rsa->n = BN_bin2bn(reinterpret_cast<const unsigned char*>(modulus.get()), modulus.length(), in tee_get_keypair_public()