Lines Matching defs:rsa_private_key
71 RSAPrivateKey_t *rsa_private_key,
215 modulus_len = CRYPTO_BITS2BYTES(rsa_private_key->bkey.modulus_bits);
226 rv = fips_rsa_decrypt(rsa_private_key, plain_data, modulus_len,
237 rv = fips_rsa_encrypt(rsa_private_key, rsa_computed_signature,
497 RSAPrivateKey_t rsa_private_key;
507 rsa_private_key.bkey.modulus = rsa_modulus;
508 rsa_private_key.bkey.modulus_bits =
510 rsa_private_key.bkey.pubexpo = rsa_public_exponent;
511 rsa_private_key.bkey.pubexpo_bytes = FIPS_RSA_PUBLIC_EXPONENT_LENGTH;
512 rsa_private_key.bkey.rfunc = NULL;
515 rv = fips_rsa_encrypt(&rsa_private_key,
527 rsa_private_key.version = rsa_version;
528 rsa_private_key.version_len = FIPS_RSA_PRIVATE_VERSION_LENGTH;
529 rsa_private_key.bkey.modulus = rsa_modulus;
530 rsa_private_key.bkey.modulus_bits =
532 rsa_private_key.bkey.pubexpo = rsa_public_exponent;
533 rsa_private_key.bkey.pubexpo_bytes = FIPS_RSA_PUBLIC_EXPONENT_LENGTH;
534 rsa_private_key.bkey.privexpo = rsa_private_exponent;
535 rsa_private_key.bkey.privexpo_bytes = FIPS_RSA_PRIVATE_EXPONENT_LENGTH;
536 rsa_private_key.bkey.prime1 = rsa_prime0;
537 rsa_private_key.bkey.prime1_bytes = FIPS_RSA_PRIME0_LENGTH;
538 rsa_private_key.bkey.prime2 = rsa_prime1;
539 rsa_private_key.bkey.prime2_bytes = FIPS_RSA_PRIME1_LENGTH;
540 rsa_private_key.bkey.expo1 = rsa_exponent0;
541 rsa_private_key.bkey.expo1_bytes = FIPS_RSA_EXPONENT0_LENGTH;
542 rsa_private_key.bkey.expo2 = rsa_exponent1;
543 rsa_private_key.bkey.expo2_bytes = FIPS_RSA_EXPONENT1_LENGTH;
544 rsa_private_key.bkey.coeff = rsa_coefficient;
545 rsa_private_key.bkey.coeff_bytes = FIPS_RSA_COEFFICIENT_LENGTH;
548 rv = fips_rsa_decrypt(&rsa_private_key, rsa_known_ciphertext,
558 rv = fips_rsa_sign_verify_test(SHA1_TYPE, &rsa_private_key,
562 rv = fips_rsa_sign_verify_test(CKM_SHA_1, &rsa_private_key,
573 rv = fips_rsa_sign_verify_test(SHA1_TYPE, &rsa_private_key,
577 rv = fips_rsa_sign_verify_test(CKM_SHA_1, &rsa_private_key,
587 rv = fips_rsa_sign_verify_test(SHA256_TYPE, &rsa_private_key,
591 rv = fips_rsa_sign_verify_test(CKM_SHA256, &rsa_private_key,
602 rv = fips_rsa_sign_verify_test(SHA256_TYPE, &rsa_private_key,
606 rv = fips_rsa_sign_verify_test(CKM_SHA256, &rsa_private_key,
616 rv = fips_rsa_sign_verify_test(SHA384_TYPE, &rsa_private_key,
620 rv = fips_rsa_sign_verify_test(CKM_SHA384, &rsa_private_key,
631 rv = fips_rsa_sign_verify_test(SHA384_TYPE, &rsa_private_key,
635 rv = fips_rsa_sign_verify_test(CKM_SHA384, &rsa_private_key,
645 rv = fips_rsa_sign_verify_test(SHA512_TYPE, &rsa_private_key,
649 rv = fips_rsa_sign_verify_test(CKM_SHA512, &rsa_private_key,
660 rv = fips_rsa_sign_verify_test(SHA512_TYPE, &rsa_private_key,
664 rv = fips_rsa_sign_verify_test(CKM_SHA512, &rsa_private_key,