Lines Matching defs:rsaResult
127 const uint32_t *rsaResult;
139 rsaResult = rsaPubOp(&rsa->state, rsa->num, rsa->modulus);
143 printHashRev(stderr, "RSA plaintext", rsaResult, RSA_LIMBS);
146 if ((rsaResult[RSA_LIMBS - 1] & 0xffff0000) != 0x00020000) {
152 if (!(rsaResult[RSA_LIMBS - 1] & 0xff00) || !(rsaResult[RSA_LIMBS - 1] & 0xff)) {
158 if (!(rsaResult[8] & 0xff000000) || !(rsaResult[8] & 0xff0000) || !(rsaResult[8] & 0xff00) || (rsaResult[8] & 0xff)) {
165 if (!(rsaResult[i] & 0xff000000) || !(rsaResult[i] & 0xff0000) || !(rsaResult[i] & 0xff00) || !(rsaResult[i] & 0xff)) {
171 printHash(stderr, "Recovered hash ", rsaResult, SHA2_HASH_WORDS);
177 if (memcmp(rsaResult, refHash, SHA2_HASH_SIZE)) {
184 memcpy(refHash, rsaResult, SHA2_HASH_SIZE);
322 const uint32_t *rsaResult;
384 rsaResult = rsaPrivOp(&rsa->state, rsa->num, rsa->exponent, rsa->modulus);
389 printHashRev(stderr, "RSA cyphertext", rsaResult, RSA_LIMBS);
394 fwrite(rsaResult, 1, sizeof(uint32_t[RSA_LIMBS]), out);