Searched refs:salt_len (Results 1 - 3 of 3) sorted by relevance

/PHP_5_4/ext/standard/
H A Dcrypt_sha256.c359 size_t salt_len; local
389 salt_len = MIN(strcspn(salt, "$"), SALT_LEN_MAX);
398 char *tmp = (char *) alloca(salt_len + 1 + __alignof__(uint32_t));
400 memcpy(tmp + __alignof__(uint32_t) - (tmp - (char *) 0) % __alignof__ (uint32_t), salt, salt_len);
401 copied_salt[salt_len] = 0;
413 sha256_process_bytes(salt, salt_len, &ctx);
424 sha256_process_bytes(salt, salt_len, &alt_ctx);
475 sha256_process_bytes(salt, salt_len, &alt_ctx);
482 cp = s_bytes = alloca(salt_len);
483 for (cnt = salt_len; cn
[all...]
H A Dcrypt_sha512.c392 size_t salt_len; local
423 salt_len = MIN(strcspn(salt, "$"), SALT_LEN_MAX);
433 char *tmp = (char *) alloca(salt_len + 1 + __alignof__(uint64_t));
434 salt = copied_salt = memcpy(tmp + __alignof__(uint64_t) - (tmp - (char *) 0) % __alignof__(uint64_t), salt, salt_len);
435 copied_salt[salt_len] = 0;
447 sha512_process_bytes(salt, salt_len, &ctx);
458 sha512_process_bytes(salt, salt_len, &alt_ctx);
510 sha512_process_bytes(salt, salt_len, &alt_ctx);
517 cp = s_bytes = alloca(salt_len);
518 for (cnt = salt_len; cn
[all...]
/PHP_5_4/ext/hash/
H A Dhash.c755 int password_len, salt_len; local
758 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "lssl", &algorithm, &password, &password_len, &salt, &salt_len, &l_bytes) == FAILURE) {
768 salt_len = MIN(salt_len, SALT_SIZE);
770 memcpy(padded_salt, salt, salt_len);
771 if (salt_len < SALT_SIZE) {
772 memset(padded_salt + salt_len, 0, SALT_SIZE - salt_len);
774 salt_len = SALT_SIZE;
802 ops->hash_update(context, (unsigned char *)padded_salt, salt_len);
[all...]

Completed in 18 milliseconds