Searched refs:modulus (Results 1 – 1 of 1) sorted by relevance
/device/google/contexthub/util/nanoapp_sign/ |
D | nanoapp_sign.c | 120 uint32_t modulus[RSA_LIMBS]; member 136 memcpy(rsa->modulus, sigPack + RSA_BYTES, RSA_BYTES); in validateSignature() 139 rsaResult = rsaPubOp(&rsa->state, rsa->num, rsa->modulus); in validateSignature() 232 memcpy(masterPubKey, rsa->modulus, RSA_BYTES); in handleVerify() 270 if (memcmp(masterPubKey, rsa->modulus, RSA_BYTES) == 0) { in handleVerify() 384 rsaResult = rsaPrivOp(&rsa->state, rsa->num, rsa->exponent, rsa->modulus); in handleSign() 395 ret = (fwrite(rsa->modulus, 1, RSA_BYTES, out) == RSA_BYTES) ? 0 : 2; in handleSign() 512 if (!readFile(rsa.modulus, sizeof(rsa.modulus), keyPubFile)) in main() 515 printHashRev(stderr, "RSA modulus", rsa.modulus, RSA_LIMBS); in main()
|