Lines Matching refs:rsa
570 #define EVP_PKEY_get0_RSA(_pkey) _pkey->pkey.rsa in ZEND_GET_MODULE()
4049 RSA *rsa = EVP_PKEY_get0_RSA(pkey); in php_openssl_is_private_key() local
4050 if (rsa != NULL) { in php_openssl_is_private_key()
4053 RSA_get0_factors(rsa, &p, &q); in php_openssl_is_private_key()
4143 static zend_bool php_openssl_pkey_init_and_assign_rsa(EVP_PKEY *pkey, RSA *rsa, zval *data) in php_openssl_pkey_init_and_assign_rsa() argument
4150 if (!n || !d || !RSA_set0_key(rsa, n, e, d)) { in php_openssl_pkey_init_and_assign_rsa()
4156 if ((p || q) && !RSA_set0_factors(rsa, p, q)) { in php_openssl_pkey_init_and_assign_rsa()
4163 if ((dmp1 || dmq1 || iqmp) && !RSA_set0_crt_params(rsa, dmp1, dmq1, iqmp)) { in php_openssl_pkey_init_and_assign_rsa()
4167 if (!EVP_PKEY_assign_RSA(pkey, rsa)) { in php_openssl_pkey_init_and_assign_rsa()
4309 RSA *rsa = RSA_new(); in PHP_FUNCTION() local
4310 if (rsa) { in PHP_FUNCTION()
4311 if (php_openssl_pkey_init_and_assign_rsa(pkey, rsa, data)) { in PHP_FUNCTION()
4314 RSA_free(rsa); in PHP_FUNCTION()
4770 RSA *rsa = EVP_PKEY_get0_RSA(pkey); in PHP_FUNCTION() local
4773 if (rsa != NULL) { in PHP_FUNCTION()
4777 RSA_get0_key(rsa, &n, &e, &d); in PHP_FUNCTION()
4778 RSA_get0_factors(rsa, &p, &q); in PHP_FUNCTION()
4779 RSA_get0_crt_params(rsa, &dmp1, &dmq1, &iqmp); in PHP_FUNCTION()