Lines Matching refs:rsa
310 #define EVP_PKEY_get0_RSA(_pkey) _pkey->pkey.rsa in ZEND_GET_MODULE()
3940 static bool php_openssl_pkey_init_legacy_rsa(RSA *rsa, zval *data) in php_openssl_pkey_init_legacy_rsa() argument
3947 if (!n || !d || !RSA_set0_key(rsa, n, e, d)) { in php_openssl_pkey_init_legacy_rsa()
3953 if ((p || q) && !RSA_set0_factors(rsa, p, q)) { in php_openssl_pkey_init_legacy_rsa()
3960 if ((dmp1 || dmq1 || iqmp) && !RSA_set0_crt_params(rsa, dmp1, dmq1, iqmp)) { in php_openssl_pkey_init_legacy_rsa()
4043 RSA *rsa = RSA_new(); in php_openssl_pkey_init_rsa()
4044 if (!rsa) { in php_openssl_pkey_init_rsa()
4050 if (!php_openssl_pkey_init_legacy_rsa(rsa, data) in php_openssl_pkey_init_rsa()
4051 || !EVP_PKEY_assign_RSA(pkey, rsa)) { in php_openssl_pkey_init_rsa()
4054 RSA_free(rsa); in php_openssl_pkey_init_rsa()
5267 RSA *rsa = EVP_PKEY_get0_RSA(pkey); in PHP_FUNCTION() local
5270 if (rsa != NULL) { in PHP_FUNCTION()
5274 RSA_get0_key(rsa, &n, &e, &d); in PHP_FUNCTION()
5275 RSA_get0_factors(rsa, &p, &q); in PHP_FUNCTION()
5276 RSA_get0_crt_params(rsa, &dmp1, &dmq1, &iqmp); in PHP_FUNCTION()