Lines Matching refs:num
245 int num; in test_rsa_simple() local
252 num = RSA_public_encrypt(plen, ptext_ex, ctext, key, en_pad_type); in test_rsa_simple()
253 if (!TEST_int_eq(num, clentmp)) in test_rsa_simple()
256 num = RSA_private_decrypt(num, ctext, ptext, key, de_pad_type); in test_rsa_simple()
258 if (!TEST_int_gt(num, 0) || !TEST_mem_eq(ptext, num, ptext_ex, plen)) in test_rsa_simple()
261 if (!TEST_int_lt(num, 0)) in test_rsa_simple()
290 int num; in test_rsa_oaep() local
300 num = RSA_private_decrypt(clen, ctext_ex, ptext, key, in test_rsa_oaep()
302 if (num <= 0 || !TEST_mem_eq(ptext, num, ptext_ex, plen)) in test_rsa_oaep()
308 num = RSA_private_decrypt(clen, ctext_ex, ptext, key, in test_rsa_oaep()
310 if (!TEST_int_le(num, 0)) in test_rsa_oaep()
317 num = RSA_private_decrypt(n, ctext_ex, ptext, key, in test_rsa_oaep()
319 if (!TEST_int_le(num, 0)) in test_rsa_oaep()
367 unsigned char num[2000]; in test_rsa_security_bit() local
369 if (!TEST_ptr(key) || !TEST_int_le(bytes, (int)sizeof(num))) in test_rsa_security_bit()
378 memset(num, vals[bits % 8], bytes); in test_rsa_security_bit()
385 if (TEST_true(RSA_set0_key(key, BN_bin2bn(num, bytes, NULL), in test_rsa_security_bit()
386 BN_bin2bn(num, bytes, NULL), NULL)) in test_rsa_security_bit()