Home
last modified time | relevance | path

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

12345678910>>...20

/PHP-7.3/ext/hash/
H A Dhash_tiger.c141 context->buffer[context->length++] = 0x1; in TigerFinalize()
143 memset(&context->buffer[context->length], 0, 8-context->length%8); in TigerFinalize()
144 context->length += 8-context->length%8; in TigerFinalize()
148 memset(&context->buffer[context->length], 0, 64 - context->length); in TigerFinalize()
149 tiger_compress(context->passes, ((uint64_t *) context->buffer), context->state); in TigerFinalize()
152 memset(&context->buffer[context->length], 0, 56 - context->length); in TigerFinalize()
167 tiger_compress(context->passes, ((uint64_t *) context->buffer), context->state); in TigerFinalize()
181 memset(context, 0, sizeof(*context)); in PHP_3TIGERInit()
189 memset(context, 0, sizeof(*context)); in PHP_4TIGERInit()
227 ZEND_SECURE_ZERO(context, sizeof(*context)); in PHP_TIGER128Final()
[all …]
H A Dhash_crc32.c24 PHP_HASH_API void PHP_CRC32Init(PHP_CRC32_CTX *context) in PHP_CRC32Init() argument
26 context->state = ~0; in PHP_CRC32Init()
34 context->state = (context->state << 8) ^ crc32_table[(context->state >> 24) ^ (input[i] & 0xff)]; in PHP_CRC32Update()
43 context->state = (context->state >> 8) ^ crc32b_table[(context->state ^ input[i]) & 0xff]; in PHP_CRC32BUpdate()
49 context->state=~context->state; in PHP_CRC32Final()
52 digest[1] = (unsigned char) ((context->state >> 8) & 0xff); in PHP_CRC32Final()
53 digest[0] = (unsigned char) (context->state & 0xff); in PHP_CRC32Final()
54 context->state = 0; in PHP_CRC32Final()
59 context->state=~context->state; in PHP_CRC32BFinal()
63 digest[3] = (unsigned char) (context->state & 0xff); in PHP_CRC32BFinal()
[all …]
H A Dhash_haval.c258 { int i; context->count[0] = context->count[1] = 0; \
260 context->passes = p; context->output = b; \
301 context->Transform(context->state, context->buffer); in PHP_HAVALUpdate()
304 context->Transform(context->state, &input[i]); in PHP_HAVALUpdate()
345 context->state[3] += (context->state[7] & 0xFF000000) | in PHP_HAVAL128Final()
399 context->state[4] += ((context->state[7] & 0xFE000000) | in PHP_HAVAL160Final()
453 context->state[5] += ((context->state[7] & 0xFC000000) | (context->state[6] & 0x03E00000)) >> 21; in PHP_HAVAL192Final()
454 context->state[4] += ((context->state[7] & 0x03E00000) | (context->state[6] & 0x001F0000)) >> 16; in PHP_HAVAL192Final()
455 context->state[3] += ((context->state[7] & 0x001F0000) | (context->state[6] & 0x0000FC00)) >> 10; in PHP_HAVAL192Final()
456 context->state[2] += ((context->state[7] & 0x0000FC00) | (context->state[6] & 0x000003E0)) >> 5; in PHP_HAVAL192Final()
[all …]
H A Dhash_sha.c204 context->count[0] = context->count[1] = 0; in PHP_SHA1Init()
350 SHA1Transform(context->state, context->buffer); in PHP_SHA1Update()
461 context->count[0] = context->count[1] = 0; in PHP_SHA256Init()
521 context->count[0] = context->count[1] = 0; in PHP_SHA224Init()
559 SHA256Transform(context->state, context->buffer); in PHP_SHA224Update()
636 SHA256Transform(context->state, context->buffer); in PHP_SHA256Update()
770 context->count[0] = context->count[1] = 0; in PHP_SHA384Init()
850 SHA512Transform(context->state, context->buffer); in PHP_SHA384Update()
927 context->count[0] = context->count[1] = 0; in PHP_SHA512Init()
946 context->count[0] = context->count[1] = 0; in PHP_SHA512_256Init()
[all …]
H A Dhash_snefru.c135 memset(context, 0, sizeof(*context)); in PHP_SNEFRUInit()
143 context->count[0]++; in PHP_SNEFRUUpdate()
144 context->count[1] = MAX32 - context->count[1]; in PHP_SNEFRUUpdate()
145 context->count[1] = (len * 8) - context->count[1]; in PHP_SNEFRUUpdate()
151 memcpy(&context->buffer[context->length], input, len); in PHP_SNEFRUUpdate()
158 memcpy(&context->buffer[context->length], input, i); in PHP_SNEFRUUpdate()
159 SnefruTransform(context, context->buffer); in PHP_SNEFRUUpdate()
177 SnefruTransform(context, context->buffer); in PHP_SNEFRUFinal()
180 context->state[14] = context->count[0]; in PHP_SNEFRUFinal()
181 context->state[15] = context->count[1]; in PHP_SNEFRUFinal()
[all …]
H A Dhash_fnv.c72 PHP_HASH_API void PHP_FNV132Init(PHP_FNV132_CTX *context) in PHP_FNV132Init() argument
74 context->state = PHP_FNV1_32_INIT; in PHP_FNV132Init()
81 context->state = fnv_32_buf((void *)input, inputLen, context->state, 0); in PHP_FNV132Update()
87 context->state = fnv_32_buf((void *)input, inputLen, context->state, 1); in PHP_FNV1a32Update()
93 memcpy(digest, &context->state, 4); in PHP_FNV132Final()
96 unsigned char *c = (unsigned char *) &context->state; in PHP_FNV132Final()
109 context->state = PHP_FNV1_64_INIT; in PHP_FNV164Init()
116 context->state = fnv_64_buf((void *)input, inputLen, context->state, 0); in PHP_FNV164Update()
122 context->state = fnv_64_buf((void *)input, inputLen, context->state, 1); in PHP_FNV1a64Update()
128 memcpy(digest, &context->state, 8); in PHP_FNV164Final()
[all …]
H A Dhash_ripemd.c75 context->count[0] = context->count[1] = 0; in PHP_RIPEMD128Init()
90 context->count[0] = context->count[1] = 0; in PHP_RIPEMD256Init()
109 context->count[0] = context->count[1] = 0; in PHP_RIPEMD160Init()
125 context->count[0] = context->count[1] = 0; in PHP_RIPEMD320Init()
277 RIPEMD128Transform(context->state, context->buffer); in PHP_RIPEMD128Update()
375 RIPEMD256Transform(context->state, context->buffer); in PHP_RIPEMD256Update()
474 RIPEMD160Transform(context->state, context->buffer); in PHP_RIPEMD160Update()
582 RIPEMD320Transform(context->state, context->buffer); in PHP_RIPEMD320Update()
655 ZEND_SECURE_ZERO((unsigned char*) context, sizeof(*context)); in PHP_RIPEMD128Final()
692 ZEND_SECURE_ZERO((unsigned char*) context, sizeof(*context)); in PHP_RIPEMD256Final()
[all …]
H A Dhash_adler32.c23 PHP_HASH_API void PHP_ADLER32Init(PHP_ADLER32_CTX *context) in PHP_ADLER32Init() argument
25 context->state = 1; in PHP_ADLER32Init()
32 s[0] = context->state & 0xffff; in PHP_ADLER32Update()
33 s[1] = (context->state >> 16) & 0xffff; in PHP_ADLER32Update()
45 context->state = s[0] + (s[1] << 16); in PHP_ADLER32Update()
48 PHP_HASH_API void PHP_ADLER32Final(unsigned char digest[4], PHP_ADLER32_CTX *context) in PHP_ADLER32Final() argument
50 digest[0] = (unsigned char) ((context->state >> 24) & 0xff); in PHP_ADLER32Final()
51 digest[1] = (unsigned char) ((context->state >> 16) & 0xff); in PHP_ADLER32Final()
52 digest[2] = (unsigned char) ((context->state >> 8) & 0xff); in PHP_ADLER32Final()
53 digest[3] = (unsigned char) (context->state & 0xff); in PHP_ADLER32Final()
[all …]
H A Dhash_whirlpool.c270 memset(context, 0, sizeof(*context)); in PHP_WHIRLPOOLInit()
283 int bufferPos = context->buffer.pos; in PHP_WHIRLPOOLUpdate()
316 WhirlpoolTransform(context); in PHP_WHIRLPOOLUpdate()
362 WhirlpoolTransform(context); in PHP_WHIRLPOOLUpdate()
371 context->buffer.bits = bufferBits; in PHP_WHIRLPOOLUpdate()
372 context->buffer.pos = bufferPos; in PHP_WHIRLPOOLUpdate()
380 int bufferBits = context->buffer.bits; in PHP_WHIRLPOOLFinal()
381 int bufferPos = context->buffer.pos; in PHP_WHIRLPOOLFinal()
398 WhirlpoolTransform(context); in PHP_WHIRLPOOLFinal()
415 WhirlpoolTransform(context); in PHP_WHIRLPOOLFinal()
[all …]
H A Dhash_md.c267 context->count[0] = context->count[1] = 0; in PHP_MD5Init()
303 MD5Transform(context->state, context->buffer); in PHP_MD5Update()
527 context->count[0] = context->count[1] = 0; in PHP_MD4Init()
561 MD4Transform(context->state, context->buffer); in PHP_MD4Update()
638 context->state[32+i] = (context->state[16+i] ^ context->state[i]); in MD2_Transform()
643 t = context->state[j] = context->state[j] ^ MD2_S[t]; in MD2_Transform()
667 memcpy(context->buffer + context->in_buffer, p, 16 - context->in_buffer); in PHP_MD2Update()
668 MD2_Transform(context, context->buffer); in PHP_MD2Update()
688 memset(context->buffer + context->in_buffer, 16 - context->in_buffer, 16 - context->in_buffer); in PHP_MD2Final()
689 MD2_Transform(context, context->buffer); in PHP_MD2Final()
[all …]
H A Dhash_gost.c242 memset(context, 0, sizeof(*context)); in PHP_GOSTInit()
258 context->count[0] = MAX32 - context->count[0]; in PHP_GOSTUpdate()
259 context->count[0] = (len * 8) - context->count[0]; in PHP_GOSTUpdate()
265 memcpy(&context->buffer[context->length], input, len); in PHP_GOSTUpdate()
272 memcpy(&context->buffer[context->length], input, i); in PHP_GOSTUpdate()
273 GostTransform(context, context->buffer); in PHP_GOSTUpdate()
291 GostTransform(context, context->buffer); in PHP_GOSTFinal()
294 memcpy(l, context->count, sizeof(context->count)); in PHP_GOSTFinal()
295 Gost(context, l); in PHP_GOSTFinal()
297 Gost(context, l); in PHP_GOSTFinal()
[all …]
H A Dhash_joaat.c37 PHP_HASH_API void PHP_JOAATInit(PHP_JOAAT_CTX *context) in PHP_JOAATInit() argument
39 context->state = 0; in PHP_JOAATInit()
42 PHP_HASH_API void PHP_JOAATUpdate(PHP_JOAAT_CTX *context, const unsigned char *input, unsigned int … in PHP_JOAATUpdate() argument
44 context->state = joaat_buf((void *)input, inputLen, context->state); in PHP_JOAATUpdate()
47 PHP_HASH_API void PHP_JOAATFinal(unsigned char digest[4], PHP_JOAAT_CTX * context) in PHP_JOAATFinal() argument
50 memcpy(digest, &context->state, 4); in PHP_JOAATFinal()
53 unsigned char *c = (unsigned char *) &context->state; in PHP_JOAATFinal()
59 context->state = 0; in PHP_JOAATFinal()
H A Dphp_hash_fnv.h55 PHP_HASH_API void PHP_FNV132Init(PHP_FNV132_CTX *context);
56 PHP_HASH_API void PHP_FNV132Update(PHP_FNV132_CTX *context, const unsigned char *input, unsigned in…
57 PHP_HASH_API void PHP_FNV1a32Update(PHP_FNV132_CTX *context, const unsigned char *input, unsigned i…
58 PHP_HASH_API void PHP_FNV132Final(unsigned char digest[16], PHP_FNV132_CTX * context);
60 PHP_HASH_API void PHP_FNV164Init(PHP_FNV164_CTX *context);
61 PHP_HASH_API void PHP_FNV164Update(PHP_FNV164_CTX *context, const unsigned char *input, unsigned in…
62 PHP_HASH_API void PHP_FNV1a64Update(PHP_FNV164_CTX *context, const unsigned char *input, unsigned i…
63 PHP_HASH_API void PHP_FNV164Final(unsigned char digest[16], PHP_FNV164_CTX * context);
H A Dphp_hash_tiger.h31 PHP_HASH_API void PHP_3TIGERInit(PHP_TIGER_CTX *context);
32 PHP_HASH_API void PHP_4TIGERInit(PHP_TIGER_CTX *context);
33 PHP_HASH_API void PHP_TIGERUpdate(PHP_TIGER_CTX *context, const unsigned char *input, size_t len);
34 PHP_HASH_API void PHP_TIGER128Final(unsigned char digest[16], PHP_TIGER_CTX *context);
35 PHP_HASH_API void PHP_TIGER160Final(unsigned char digest[20], PHP_TIGER_CTX *context);
36 PHP_HASH_API void PHP_TIGER192Final(unsigned char digest[24], PHP_TIGER_CTX *context);
H A Dhash.c122 void *context; in php_hash_do_hash() local
163 efree(context); in php_hash_do_hash()
240 void *context; in php_hash_do_hash_hmac() local
298 efree(context); in php_hash_do_hash_hmac()
336 void *context; in php_hashcontext_ctor() local
370 hash->context = context; in php_hashcontext_ctor()
625 void *context; in PHP_FUNCTION() local
706 efree(context); in PHP_FUNCTION()
725 void *context; in PHP_FUNCTION() local
826 efree(context); in PHP_FUNCTION()
[all …]
H A Dphp_hash_crc32.h28 PHP_HASH_API void PHP_CRC32Init(PHP_CRC32_CTX *context);
29 PHP_HASH_API void PHP_CRC32Update(PHP_CRC32_CTX *context, const unsigned char *input, size_t len);
30 PHP_HASH_API void PHP_CRC32BUpdate(PHP_CRC32_CTX *context, const unsigned char *input, size_t len);
31 PHP_HASH_API void PHP_CRC32Final(unsigned char digest[4], PHP_CRC32_CTX *context);
/PHP-7.3/main/streams/
H A Dphp_stream_context.h39 #define php_stream_context_to_zval(context, zval) { ZVAL_RES(zval, (context)->res); GC_ADDREF((cont… argument
91 #define php_stream_notify_info(context, code, xmsg, xcode) do { if ((context) && (context)->notifie… argument
95 #define php_stream_notify_progress(context, bsofar, bmax) do { if ((context) && (context)->notifier… argument
99 #define php_stream_notify_progress_init(context, sofar, bmax) do { if ((context) && (context)->noti… argument
100 (context)->notifier->progress = (sofar); \
101 (context)->notifier->progress_max = (bmax); \
105 … php_stream_notify_progress_increment(context, dsofar, dmax) do { if ((context) && (context)->noti… argument
106 (context)->notifier->progress += (dsofar); \
108 …php_stream_notify_progress((context), (context)->notifier->progress, (context)->notifier->progress…
110 #define php_stream_notify_file_size(context, file_size, xmsg, xcode) do { if ((context) && (context argument
[all …]
/PHP-7.3/main/
H A Doutput.c274 if (context.out.data && context.out.used) { in php_output_flush()
812 if (context->in.free && context->in.data) { in php_output_context_feed()
829 context->in.data = context->out.data; in php_output_context_swap()
830 context->in.used = context->out.used; in php_output_context_swap()
831 context->in.free = context->out.free; in php_output_context_swap()
832 context->in.size = context->out.size; in php_output_context_swap()
844 context->out.data = context->in.data; in php_output_context_pass()
845 context->out.used = context->in.used; in php_output_context_pass()
846 context->out.size = context->in.size; in php_output_context_pass()
847 context->out.free = context->in.free; in php_output_context_pass()
[all …]
/PHP-7.3/ext/mysqlnd/
H A Dmysqlnd_commands.c35 } context; member
46 } context; member
153 } context; member
282 } context; member
348 } context; member
420 } context; member
480 } context; member
539 } context; member
590 } context; member
647 } context; member
[all …]
/PHP-7.3/ext/phar/tests/
H A Dfgc_edgecases.phpt27 $context = stream_context_create();
28 file_get_contents("./hi", 0, $context, 0, -1);
32 echo file_get_contents("./hi", 0, $context);
53 $context = stream_context_create();
54 file_get_contents("./hi", 0, $context, 0, -1);
58 echo file_get_contents("./hi", 0, $context);
70 $context = stream_context_create();
71 file_get_contents("./hi", 0, $context, 0, -1);
75 echo file_get_contents("./hi", 0, $context);
87 $context = stream_context_create();
[all …]
/PHP-7.3/ext/standard/
H A Dsha1.c37 PHP_SHA1_CTX context; in PHP_FUNCTION() local
46 PHP_SHA1Init(&context); in PHP_FUNCTION()
48 PHP_SHA1Final(digest, &context); in PHP_FUNCTION()
70 PHP_SHA1_CTX context; in PHP_FUNCTION() local
85 PHP_SHA1Init(&context); in PHP_FUNCTION()
91 PHP_SHA1Final(digest, &context); in PHP_FUNCTION()
161 context->count[0] = context->count[1] = 0; in PHP_SHA1Init()
164 context->state[0] = 0x67452301; in PHP_SHA1Init()
188 context->count[1]++; in PHP_SHA1Update()
198 SHA1Transform(context->state, context->buffer); in PHP_SHA1Update()
[all …]
H A Dhttp_fopen_wrapper.c167 if (!context || in php_stream_url_wrap_http_ex()
197 if (context && in php_stream_url_wrap_http_ex()
247 if (!context || (tmpzval = php_stream_context_get_option(context, "ssl", "peer_name")) == NULL) { in php_stream_url_wrap_http_ex()
260 if (context && (tmpzval = php_stream_context_get_option(context, "http", "header")) != NULL) { in php_stream_url_wrap_http_ex()
370 if (context && (tmpzval = php_stream_context_get_option(context, "http", "method")) != NULL) { in php_stream_url_wrap_http_ex()
390 if (!request_fulluri && context && in php_stream_url_wrap_http_ex()
416 …if (context && (tmpzval = php_stream_context_get_option(context, "http", "protocol_version")) != N… in php_stream_url_wrap_http_ex()
428 if (context && (tmpzval = php_stream_context_get_option(context, "http", "header")) != NULL) { in php_stream_url_wrap_http_ex()
583 if (context && in php_stream_url_wrap_http_ex()
617 context && in php_stream_url_wrap_http_ex()
[all …]
H A Dstreamsfuncs.c208 if (context) { in PHP_FUNCTION()
209 GC_ADDREF(context->res); in PHP_FUNCTION()
932 if (context->notifier) { in parse_context_params()
961 if (context == NULL) { in decode_context_param()
968 if (context == NULL) { in decode_context_param()
979 return context; in decode_context_param()
995 if (!context) { in PHP_FUNCTION()
1062 if (!context) { in PHP_FUNCTION()
1083 if (!context) { in PHP_FUNCTION()
1089 …if (context->notifier && Z_TYPE(context->notifier->ptr) != IS_UNDEF && context->notifier->func == … in PHP_FUNCTION()
[all …]
/PHP-7.3/ext/sodium/tests/
H A Dcrypto_kdf.phpt9 $subkey = sodium_crypto_kdf_derive_from_key(10, 0, "context!", $key);
14 $subkey = sodium_crypto_kdf_derive_from_key(100, 0, "context!", $key);
19 $subkey = sodium_crypto_kdf_derive_from_key(SODIUM_CRYPTO_KDF_BYTES_MAX, 0, "context", $key);
24 $subkey = sodium_crypto_kdf_derive_from_key(SODIUM_CRYPTO_KDF_BYTES_MAX, -1, "context!", $key);
29 …$subkey = sodium_crypto_kdf_derive_from_key(SODIUM_CRYPTO_KDF_BYTES_MAX, 0, "context!", "short key…
34 $subkey1 = sodium_crypto_kdf_derive_from_key(SODIUM_CRYPTO_KDF_BYTES_MIN, 0, "context!", $key);
35 $subkey2 = sodium_crypto_kdf_derive_from_key(SODIUM_CRYPTO_KDF_BYTES_MIN, 1, "context!", $key);
37 $subkey4 = sodium_crypto_kdf_derive_from_key(SODIUM_CRYPTO_KDF_BYTES_MIN, 0, "context!", $key);
/PHP-7.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']);

Completed in 89 milliseconds

12345678910>>...20