Lines Matching refs:priv_key
614 rk_rsa_priv_key_pack priv_key; in test_rsa_pub_enc() local
642 test_init_privkey(&priv_key, nbits); in test_rsa_pub_enc()
658 ssl_padding, digest_md, &priv_key); in test_rsa_pub_enc()
673 ssl_padding, digest_md, &priv_key); in test_rsa_pub_enc()
680 res = rk_rsa_priv_decrypt(&priv_key, padding, enc_buf, out_len, dec_buf, &out_len); in test_rsa_pub_enc()
726 rk_rsa_priv_key_pack priv_key; in test_rsa_priv_enc() local
754 test_init_privkey(&priv_key, nbits); in test_rsa_priv_enc()
756 res = rk_rsa_priv_encrypt(&priv_key, padding, data, data_len, enc_buf, &out_len); in test_rsa_priv_enc()
810 rk_rsa_priv_key_pack priv_key; in test_rsa_sign_common() local
820 test_init_privkey(&priv_key, nbits); in test_rsa_sign_common()
822 res = rk_rsa_sign(&priv_key, padding, in, in_len, hash, sign, &sign_len); in test_rsa_sign_common()
845 res = openssl_verify(in, in_len, sign, sign_len, ssl_padding, digest_md, &priv_key); in test_rsa_sign_common()
852 ssl_padding, digest_md, &priv_key); in test_rsa_sign_common()