Lines Matching refs:rsa
546 #define EVP_PKEY_get0_RSA(_pkey) _pkey->pkey.rsa in ZEND_GET_MODULE()
3775 RSA *rsa = EVP_PKEY_get0_RSA(pkey); in php_openssl_is_private_key() local
3776 if (rsa != NULL) { in php_openssl_is_private_key()
3779 RSA_get0_factors(rsa, &p, &q); in php_openssl_is_private_key()
3874 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
3881 if (!n || !d || !RSA_set0_key(rsa, n, e, d)) { in php_openssl_pkey_init_and_assign_rsa()
3887 if ((p || q) && !RSA_set0_factors(rsa, p, q)) { in php_openssl_pkey_init_and_assign_rsa()
3894 if ((dmp1 || dmq1 || iqmp) && !RSA_set0_crt_params(rsa, dmp1, dmq1, iqmp)) { in php_openssl_pkey_init_and_assign_rsa()
3898 if (!EVP_PKEY_assign_RSA(pkey, rsa)) { in php_openssl_pkey_init_and_assign_rsa()
4033 RSA *rsa = RSA_new(); in PHP_FUNCTION() local
4034 if (rsa) { in PHP_FUNCTION()
4035 if (php_openssl_pkey_init_and_assign_rsa(pkey, rsa, data)) { in PHP_FUNCTION()
4038 RSA_free(rsa); in PHP_FUNCTION()
4340 RSA *rsa = EVP_PKEY_get0_RSA(pkey); in PHP_FUNCTION() local
4343 if (rsa != NULL) { in PHP_FUNCTION()
4347 RSA_get0_key(rsa, &n, &e, &d); in PHP_FUNCTION()
4348 RSA_get0_factors(rsa, &p, &q); in PHP_FUNCTION()
4349 RSA_get0_crt_params(rsa, &dmp1, &dmq1, &iqmp); in PHP_FUNCTION()