Home
last modified time | relevance | path

Searched refs:context (Results 1 – 25 of 391) sorted by relevance

12345678910>>...16

/PHP-5.3/ext/hash/
H A Dhash_tiger.c143 context->buffer[context->length++] = 0x1; in TigerFinalize()
145 memset(&context->buffer[context->length], 0, 8-context->length%8); in TigerFinalize()
146 context->length += 8-context->length%8; in TigerFinalize()
150 memset(&context->buffer[context->length], 0, 64 - context->length); in TigerFinalize()
154 memset(&context->buffer[context->length], 0, 56 - context->length); in TigerFinalize()
169 tiger_compress(context->passes, ((php_hash_uint64 *) context->buffer), context->state); in TigerFinalize()
174 memset(context, 0, sizeof(*context)); in PHP_3TIGERInit()
182 memset(context, 0, sizeof(*context)); in PHP_4TIGERInit()
237 memset(context, 0, sizeof(*context)); in PHP_TIGER128Final()
265 memset(context, 0, sizeof(*context)); in PHP_TIGER160Final()
[all …]
H A Dhash_haval.c260 { int i; context->count[0] = context->count[1] = 0; \
262 context->passes = p; context->output = b; \
303 context->Transform(context->state, context->buffer); in PHP_HAVALUpdate()
306 context->Transform(context->state, &input[i]); in PHP_HAVALUpdate()
371 memset((unsigned char*) context, 0, sizeof(*context)); in PHP_HAVAL128Final()
425 memset((unsigned char*) context, 0, sizeof(*context)); in PHP_HAVAL160Final()
455 context->state[5] += ((context->state[7] & 0xFC000000) | (context->state[6] & 0x03E00000)) >> 21; in PHP_HAVAL192Final()
456 context->state[4] += ((context->state[7] & 0x03E00000) | (context->state[6] & 0x001F0000)) >> 16; in PHP_HAVAL192Final()
459 context->state[1] += (context->state[7] & 0x000003E0) | (context->state[6] & 0x0000001F); in PHP_HAVAL192Final()
465 memset((unsigned char*) context, 0, sizeof(*context)); in PHP_HAVAL192Final()
[all …]
H A Dhash_crc32.c26 PHP_HASH_API void PHP_CRC32Init(PHP_CRC32_CTX *context) in PHP_CRC32Init() argument
28 context->state = ~0; in PHP_CRC32Init()
36 context->state = (context->state << 8) ^ crc32_table[(context->state >> 24) ^ (input[i] & 0xff)]; in PHP_CRC32Update()
45 context->state = (context->state >> 8) ^ crc32b_table[(context->state ^ input[i]) & 0xff]; in PHP_CRC32BUpdate()
51 context->state=~context->state; in PHP_CRC32Final()
54 digest[1] = (unsigned char) ((context->state >> 8) & 0xff); in PHP_CRC32Final()
55 digest[0] = (unsigned char) (context->state & 0xff); in PHP_CRC32Final()
56 context->state = 0; in PHP_CRC32Final()
61 context->state=~context->state; in PHP_CRC32BFinal()
65 digest[3] = (unsigned char) (context->state & 0xff); in PHP_CRC32BFinal()
[all …]
H A Dhash_sha.c208 context->count[0] = context->count[1] = 0; in PHP_SHA1Init()
354 SHA1Transform(context->state, context->buffer); in PHP_SHA1Update()
403 memset((unsigned char*) context, 0, sizeof(*context)); in PHP_SHA1Final()
463 context->count[0] = context->count[1] = 0; in PHP_SHA256Init()
523 context->count[0] = context->count[1] = 0; in PHP_SHA224Init()
561 SHA256Transform(context->state, context->buffer); in PHP_SHA224Update()
638 SHA256Transform(context->state, context->buffer); in PHP_SHA256Update()
772 context->count[0] = context->count[1] = 0; in PHP_SHA384Init()
852 SHA512Transform(context->state, context->buffer); in PHP_SHA384Update()
928 context->count[0] = context->count[1] = 0; in PHP_SHA512Init()
[all …]
H A Dhash_snefru.c137 memset(context, 0, sizeof(*context)); in PHP_SNEFRUInit()
145 context->count[0]++; in PHP_SNEFRUUpdate()
146 context->count[1] = MAX32 - context->count[1]; in PHP_SNEFRUUpdate()
147 context->count[1] = (len * 8) - context->count[1]; in PHP_SNEFRUUpdate()
153 memcpy(&context->buffer[context->length], input, len); in PHP_SNEFRUUpdate()
160 memcpy(&context->buffer[context->length], input, i); in PHP_SNEFRUUpdate()
161 SnefruTransform(context, context->buffer); in PHP_SNEFRUUpdate()
179 SnefruTransform(context, context->buffer); in PHP_SNEFRUFinal()
182 context->state[14] = context->count[0]; in PHP_SNEFRUFinal()
183 context->state[15] = context->count[1]; in PHP_SNEFRUFinal()
[all …]
H A Dhash_ripemd.c73 context->count[0] = context->count[1] = 0; in PHP_RIPEMD128Init()
88 context->count[0] = context->count[1] = 0; in PHP_RIPEMD256Init()
107 context->count[0] = context->count[1] = 0; in PHP_RIPEMD160Init()
123 context->count[0] = context->count[1] = 0; in PHP_RIPEMD320Init()
275 RIPEMD128Transform(context->state, context->buffer); in PHP_RIPEMD128Update()
373 RIPEMD256Transform(context->state, context->buffer); in PHP_RIPEMD256Update()
472 RIPEMD160Transform(context->state, context->buffer); in PHP_RIPEMD160Update()
580 RIPEMD320Transform(context->state, context->buffer); in PHP_RIPEMD320Update()
653 memset((unsigned char*) context, 0, sizeof(*context)); in PHP_RIPEMD128Final()
690 memset((unsigned char*) context, 0, sizeof(*context)); in PHP_RIPEMD256Final()
[all …]
H A Dhash_salsa.c134 if (!context->init) { in SalsaTransform()
136 context->init = 1; in SalsaTransform()
139 context->Transform(context->state, a); in SalsaTransform()
145 memset(context, 0, sizeof(*context)); in PHP_SALSA10Init()
151 memset(context, 0, sizeof(*context)); in PHP_SALSA20Init()
158 memcpy(&context->buffer[context->length], input, len); in PHP_SALSAUpdate()
165 memcpy(&context->buffer[context->length], input, i); in PHP_SALSAUpdate()
166 SalsaTransform(context, context->buffer); in PHP_SALSAUpdate()
175 context->length = r; in PHP_SALSAUpdate()
184 SalsaTransform(context, context->buffer); in PHP_SALSAFinal()
[all …]
H A Dhash_adler32.c25 PHP_HASH_API void PHP_ADLER32Init(PHP_ADLER32_CTX *context) in PHP_ADLER32Init() argument
27 context->state = 1; in PHP_ADLER32Init()
34 s[0] = context->state & 0xffff; in PHP_ADLER32Update()
35 s[1] = (context->state >> 16) & 0xffff; in PHP_ADLER32Update()
40 context->state = s[0] + (s[1] << 16); in PHP_ADLER32Update()
43 PHP_HASH_API void PHP_ADLER32Final(unsigned char digest[4], PHP_ADLER32_CTX *context) in PHP_ADLER32Final() argument
45 digest[0] = (unsigned char) ((context->state >> 24) & 0xff); in PHP_ADLER32Final()
46 digest[1] = (unsigned char) ((context->state >> 16) & 0xff); in PHP_ADLER32Final()
47 digest[2] = (unsigned char) ((context->state >> 8) & 0xff); in PHP_ADLER32Final()
48 digest[3] = (unsigned char) (context->state & 0xff); in PHP_ADLER32Final()
[all …]
H A Dhash_whirlpool.c272 memset(context, 0, sizeof(*context)); in PHP_WHIRLPOOLInit()
285 int bufferPos = context->buffer.pos; in PHP_WHIRLPOOLUpdate()
318 WhirlpoolTransform(context); in PHP_WHIRLPOOLUpdate()
364 WhirlpoolTransform(context); in PHP_WHIRLPOOLUpdate()
373 context->buffer.bits = bufferBits; in PHP_WHIRLPOOLUpdate()
374 context->buffer.pos = bufferPos; in PHP_WHIRLPOOLUpdate()
382 int bufferBits = context->buffer.bits; in PHP_WHIRLPOOLFinal()
383 int bufferPos = context->buffer.pos; in PHP_WHIRLPOOLFinal()
400 WhirlpoolTransform(context); in PHP_WHIRLPOOLFinal()
417 WhirlpoolTransform(context); in PHP_WHIRLPOOLFinal()
[all …]
H A Dhash_md.c269 context->count[0] = context->count[1] = 0; in PHP_MD5Init()
305 MD5Transform(context->state, context->buffer); in PHP_MD5Update()
347 memset((unsigned char*) context, 0, sizeof(*context)); in PHP_MD5Final()
529 context->count[0] = context->count[1] = 0; in PHP_MD4Init()
563 MD4Transform(context->state, context->buffer); in PHP_MD4Update()
640 context->state[32+i] = (context->state[16+i] ^ context->state[i]); in MD2_Transform()
669 memcpy(context->buffer + context->in_buffer, p, 16 - context->in_buffer); in PHP_MD2Update()
670 MD2_Transform(context, context->buffer); in PHP_MD2Update()
690 memset(context->buffer + context->in_buffer, 16 - context->in_buffer, 16 - context->in_buffer); in PHP_MD2Final()
691 MD2_Transform(context, context->buffer); in PHP_MD2Final()
[all …]
H A Dhash_gost.c245 memset(context, 0, sizeof(*context)); in PHP_GOSTInit()
253 context->count[1]++; in PHP_GOSTUpdate()
254 context->count[0] = MAX32 - context->count[0]; in PHP_GOSTUpdate()
255 context->count[0] = (len * 8) - context->count[0]; in PHP_GOSTUpdate()
261 memcpy(&context->buffer[context->length], input, len); in PHP_GOSTUpdate()
268 memcpy(&context->buffer[context->length], input, i); in PHP_GOSTUpdate()
269 GostTransform(context, context->buffer); in PHP_GOSTUpdate()
278 context->length = r; in PHP_GOSTUpdate()
287 GostTransform(context, context->buffer); in PHP_GOSTFinal()
290 memcpy(l, context->count, sizeof(context->count)); in PHP_GOSTFinal()
[all …]
H A Dhash.c126 void *context; in php_hash_do_hash() local
163 efree(context); in php_hash_do_hash()
203 void *context; in php_hash_do_hash_hmac() local
275 efree(context); in php_hash_do_hash_hmac()
317 void *context; in PHP_FUNCTION() local
343 hash->context = context; in PHP_FUNCTION()
536 void *context; in PHP_FUNCTION() local
549 res = hash->ops->hash_copy(hash->ops, hash->context, context); in PHP_FUNCTION()
551 efree(context); in PHP_FUNCTION()
557 copy_hash->context = context; in PHP_FUNCTION()
[all …]
H A Dphp_hash_tiger.h33 PHP_HASH_API void PHP_3TIGERInit(PHP_TIGER_CTX *context);
34 PHP_HASH_API void PHP_4TIGERInit(PHP_TIGER_CTX *context);
35 PHP_HASH_API void PHP_TIGERUpdate(PHP_TIGER_CTX *context, const unsigned char *input, size_t len);
36 PHP_HASH_API void PHP_TIGER128Final(unsigned char digest[16], PHP_TIGER_CTX *context);
37 PHP_HASH_API void PHP_TIGER160Final(unsigned char digest[20], PHP_TIGER_CTX *context);
38 PHP_HASH_API void PHP_TIGER192Final(unsigned char digest[24], PHP_TIGER_CTX *context);
H A Dphp_hash_crc32.h30 PHP_HASH_API void PHP_CRC32Init(PHP_CRC32_CTX *context);
31 PHP_HASH_API void PHP_CRC32Update(PHP_CRC32_CTX *context, const unsigned char *input, size_t len);
32 PHP_HASH_API void PHP_CRC32BUpdate(PHP_CRC32_CTX *context, const unsigned char *input, size_t len);
33 PHP_HASH_API void PHP_CRC32Final(unsigned char digest[4], PHP_CRC32_CTX *context);
/PHP-5.3/main/streams/
H A Dphp_stream_context.h41 #define php_stream_context_to_zval(context, zval) { ZVAL_RESOURCE(zval, (context)->rsrc_id); zend_l… argument
101 #define php_stream_notify_info(context, code, xmsg, xcode) do { if ((context) && (context)->notifie… argument
105 #define php_stream_notify_progress(context, bsofar, bmax) do { if ((context) && (context)->notifier… argument
109 #define php_stream_notify_progress_init(context, sofar, bmax) do { if ((context) && (context)->noti… argument
110 (context)->notifier->progress = (sofar); \
111 (context)->notifier->progress_max = (bmax); \
115 … php_stream_notify_progress_increment(context, dsofar, dmax) do { if ((context) && (context)->noti… argument
116 (context)->notifier->progress += (dsofar); \
118 …php_stream_notify_progress((context), (context)->notifier->progress, (context)->notifier->progress…
120 #define php_stream_notify_file_size(context, file_size, xmsg, xcode) do { if ((context) && (context argument
[all …]
/PHP-5.3/ext/openssl/tests/
H A Dsni_001.phpt23 function context() {
31 function get_CN($context) {
48 var_dump(get_CN($context));
57 var_dump(get_CN($context));
85 $context = context();
92 $context = context();
106 $context = context();
113 $context = context();
130 $context = context();
137 $context = context();
[all …]
/PHP-5.3/ext/sqlite/libsqlite/src/
H A Dfunc.c38 mask = (int)sqlite_user_data(context); in minmaxFunc()
78 sqlite_set_result_int(context, len); in lengthFunc()
90 sqlite_set_result_string(context, z, -1); in absFunc()
201 sqlite_set_result_int(context, r); in randomFunc()
209 sqlite *db = sqlite_user_data(context); in last_insert_rowid()
218 sqlite *db = sqlite_user_data(context); in change_count()
228 sqlite *db = sqlite_user_data(context); in last_statement_change_count()
243 sqlite_set_result_int(context, in likeFunc()
259 sqlite_set_result_int(context, in globFunc()
470 sqlite_set_result_double(context,
[all …]
/PHP-5.3/ext/phar/tests/
H A Dfgc_edgecases.phpt28 $context = stream_context_create();
29 file_get_contents("./hi", 0, $context, 0, -1);
33 echo file_get_contents("./hi", 0, $context);
55 $context = stream_context_create();
56 file_get_contents("./hi", 0, $context, 0, -1);
60 echo file_get_contents("./hi", 0, $context);
73 $context = stream_context_create();
74 file_get_contents("./hi", 0, $context, 0, -1);
78 echo file_get_contents("./hi", 0, $context);
91 $context = stream_context_create();
[all …]
/PHP-5.3/ext/sqlite/tests/
H A Dsqlite_closures_001.phpt24 function cat_step(&$context, $string)
26 $context .= $string;
29 function cat_fin(&$context)
31 return $context;
34 sqlite_create_aggregate($db, "cat", function (&$context, $string) {
35 $context .= $string;
36 }, function (&$context) {
37 return $context;
/PHP-5.3/ext/standard/
H A Dsha1.c41 PHP_SHA1_CTX context; in PHP_FUNCTION() local
49 PHP_SHA1Init(&context); in PHP_FUNCTION()
51 PHP_SHA1Final(digest, &context); in PHP_FUNCTION()
74 PHP_SHA1_CTX context; in PHP_FUNCTION() local
87 PHP_SHA1Init(&context); in PHP_FUNCTION()
93 PHP_SHA1Final(digest, &context); in PHP_FUNCTION()
167 context->count[0] = context->count[1] = 0; in PHP_SHA1Init()
170 context->state[0] = 0x67452301; in PHP_SHA1Init()
194 context->count[1]++; in PHP_SHA1Update()
204 SHA1Transform(context->state, context->buffer); in PHP_SHA1Update()
[all …]
H A Dhttp_fopen_wrapper.c130 if (!context || in php_stream_url_wrap_http_ex()
160 if (context && in php_stream_url_wrap_http_ex()
208 if (context && php_stream_context_get_option(context, "http", "header", &tmpzval) == SUCCESS) { in php_stream_url_wrap_http_ex()
322 if (context && php_stream_context_get_option(context, "http", "method", &tmpzval) == SUCCESS) { in php_stream_url_wrap_http_ex()
338 …if (context && php_stream_context_get_option(context, "http", "protocol_version", &tmpzval) == SUC… in php_stream_url_wrap_http_ex()
352 context && in php_stream_url_wrap_http_ex()
396 if (context && php_stream_context_get_option(context, "http", "header", &tmpzval) == SUCCESS) { in php_stream_url_wrap_http_ex()
567 if (context && in php_stream_url_wrap_http_ex()
604 context && in php_stream_url_wrap_http_ex()
620 if (header_init && context && in php_stream_url_wrap_http_ex()
[all …]
H A Dstreamsfuncs.c194 if (context) { in PHP_FUNCTION()
983 if (context == NULL) { in decode_context_param()
989 context = stream->context; in decode_context_param()
990 if (context == NULL) { in decode_context_param()
995 context = stream->context = php_stream_context_alloc(); in decode_context_param()
1000 return context; in decode_context_param()
1015 if (!context) { in PHP_FUNCTION()
1045 if (!context) { in PHP_FUNCTION()
1072 if (!context) { in PHP_FUNCTION()
1093 if (!context) { in PHP_FUNCTION()
[all …]
/PHP-5.3/ext/sqlite3/tests/
H A Dsqlite3_25_create_aggregate.phpt10 function sum_list_step($context, $rows, $string) {
11 if (empty($context))
13 $context = array('total' => 0, 'values' => array());
15 $context['total'] += intval($string);
16 $context['values'][] = $context['total'];
17 return $context;
20 function sum_list_finalize($context) {
21 return implode(',', $context['values']);
/PHP-5.3/ext/standard/tests/file/
H A Drename_variation9.phpt5 /* Prototype: bool rename ( string $oldname, string $newname [, resource $context] );
9 echo "\n*** Testing rename() by giving stream context as third argument ***\n";
12 $context = stream_context_create();
20 var_dump( rename($dir_name, $new_dir_name, $context) );
33 var_dump( rename($src_name, $dest_name, $context) );
45 *** Testing rename() by giving stream context as third argument ***
/PHP-5.3/ext/standard/tests/streams/
H A Dstream_context_set_option_basic.phpt8 $context = stream_context_create();
11 var_dump(stream_context_set_option($context, 'http', 'method', 'POST'));
20 var_dump(stream_context_set_option($context, $options));
22 var_dump(stream_context_get_options($context));

Completed in 94 milliseconds

12345678910>>...16