Lines Matching refs:bn
1725 struct translation_ctx_st *ctx, const BIGNUM *bn) in get_payload_bn() argument
1727 if (bn == NULL) in get_payload_bn()
1731 ctx->p2 = (BIGNUM *)bn; in get_payload_bn()
1740 const BIGNUM *bn = NULL; in get_dh_dsa_payload_p() local
1746 bn = DH_get0_p(EVP_PKEY_get0_DH(pkey)); in get_dh_dsa_payload_p()
1751 bn = DSA_get0_p(EVP_PKEY_get0_DSA(pkey)); in get_dh_dsa_payload_p()
1758 return get_payload_bn(state, translation, ctx, bn); in get_dh_dsa_payload_p()
1765 const BIGNUM *bn = NULL; in get_dh_dsa_payload_q() local
1770 bn = DH_get0_q(EVP_PKEY_get0_DH(ctx->p2)); in get_dh_dsa_payload_q()
1775 bn = DSA_get0_q(EVP_PKEY_get0_DSA(ctx->p2)); in get_dh_dsa_payload_q()
1780 return get_payload_bn(state, translation, ctx, bn); in get_dh_dsa_payload_q()
1787 const BIGNUM *bn = NULL; in get_dh_dsa_payload_g() local
1792 bn = DH_get0_g(EVP_PKEY_get0_DH(ctx->p2)); in get_dh_dsa_payload_g()
1797 bn = DSA_get0_g(EVP_PKEY_get0_DSA(ctx->p2)); in get_dh_dsa_payload_g()
1802 return get_payload_bn(state, translation, ctx, bn); in get_dh_dsa_payload_g()
1847 const BIGNUM *bn = NULL; in get_rsa_payload_n() local
1852 bn = RSA_get0_n(EVP_PKEY_get0_RSA(ctx->p2)); in get_rsa_payload_n()
1854 return get_payload_bn(state, translation, ctx, bn); in get_rsa_payload_n()
1861 const BIGNUM *bn = NULL; in get_rsa_payload_e() local
1866 bn = RSA_get0_e(EVP_PKEY_get0_RSA(ctx->p2)); in get_rsa_payload_e()
1868 return get_payload_bn(state, translation, ctx, bn); in get_rsa_payload_e()
1875 const BIGNUM *bn = NULL; in get_rsa_payload_d() local
1880 bn = RSA_get0_d(EVP_PKEY_get0_RSA(ctx->p2)); in get_rsa_payload_d()
1882 return get_payload_bn(state, translation, ctx, bn); in get_rsa_payload_d()
1891 const BIGNUM *bn = NULL; in get_rsa_payload_factor() local
1895 bn = RSA_get0_p(r); in get_rsa_payload_factor()
1898 bn = RSA_get0_q(r); in get_rsa_payload_factor()
1907 bn = factors[factornum - 2]; in get_rsa_payload_factor()
1912 return get_payload_bn(state, translation, ctx, bn); in get_rsa_payload_factor()
1921 const BIGNUM *bn = NULL; in get_rsa_payload_exponent() local
1925 bn = RSA_get0_dmp1(r); in get_rsa_payload_exponent()
1928 bn = RSA_get0_dmq1(r); in get_rsa_payload_exponent()
1937 bn = exps[exponentnum - 2]; in get_rsa_payload_exponent()
1942 return get_payload_bn(state, translation, ctx, bn); in get_rsa_payload_exponent()
1951 const BIGNUM *bn = NULL; in get_rsa_payload_coefficient() local
1955 bn = RSA_get0_iqmp(r); in get_rsa_payload_coefficient()
1964 bn = coeffs[coefficientnum - 1]; in get_rsa_payload_coefficient()
1969 return get_payload_bn(state, translation, ctx, bn); in get_rsa_payload_coefficient()