Lines Matching refs:bn
3915 static void php_openssl_add_bn_to_array(zval *ary, const BIGNUM *bn, const char *name) { in php_openssl_add_bn_to_array() argument
3916 if (bn != NULL) { in php_openssl_add_bn_to_array()
3917 int len = BN_num_bytes(bn); in php_openssl_add_bn_to_array()
3919 BN_bn2bin(bn, (unsigned char *)ZSTR_VAL(str)); in php_openssl_add_bn_to_array()
3928 zval *bn; \
3929 if ((bn = zend_hash_str_find(Z_ARRVAL_P(_data), #_name, sizeof(#_name)-1)) != NULL && \
3930 Z_TYPE_P(bn) == IS_STRING) { \
3932 (unsigned char*)Z_STRVAL_P(bn), \
3933 (int)Z_STRLEN_P(bn), NULL); \
5085 BIGNUM *bn = NULL; in php_openssl_copy_bn_param() local
5086 if (EVP_PKEY_get_bn_param(pkey, param, &bn) > 0) { in php_openssl_copy_bn_param()
5087 php_openssl_add_bn_to_array(ary, bn, name); in php_openssl_copy_bn_param()
5088 BN_free(bn); in php_openssl_copy_bn_param()