Lines Matching refs:dsa
572 #define EVP_PKEY_get0_DSA(_pkey) _pkey->pkey.dsa in ZEND_GET_MODULE()
4066 DSA *dsa = EVP_PKEY_get0_DSA(pkey); in php_openssl_is_private_key() local
4067 if (dsa != NULL) { in php_openssl_is_private_key()
4070 DSA_get0_pqg(dsa, &p, &q, &g); in php_openssl_is_private_key()
4075 DSA_get0_key(dsa, &pub_key, &priv_key); in php_openssl_is_private_key()
4176 static zend_bool php_openssl_pkey_init_dsa(DSA *dsa, zval *data) in php_openssl_pkey_init_dsa() argument
4184 if (!p || !q || !g || !DSA_set0_pqg(dsa, p, q, g)) { in php_openssl_pkey_init_dsa()
4191 return DSA_set0_key(dsa, pub_key, priv_key); in php_openssl_pkey_init_dsa()
4196 if (!DSA_generate_key(dsa)) { in php_openssl_pkey_init_dsa()
4203 DSA_get0_key(dsa, &pub_key_const, &priv_key_const); in php_openssl_pkey_init_dsa()
4327 DSA *dsa = DSA_new(); in PHP_FUNCTION() local
4328 if (dsa) { in PHP_FUNCTION()
4329 if (php_openssl_pkey_init_dsa(dsa, data)) { in PHP_FUNCTION()
4330 if (EVP_PKEY_assign_DSA(pkey, dsa)) { in PHP_FUNCTION()
4336 DSA_free(dsa); in PHP_FUNCTION()
4799 DSA *dsa = EVP_PKEY_get0_DSA(pkey); in PHP_FUNCTION() local
4802 if (dsa != NULL) { in PHP_FUNCTION()
4806 DSA_get0_pqg(dsa, &p, &q, &g); in PHP_FUNCTION()
4807 DSA_get0_key(dsa, &pub_key, &priv_key); in PHP_FUNCTION()