Home
last modified time | relevance | path

Searched refs:salt (Results 26 – 38 of 38) sorted by last modified time

12

/PHP-7.4/ext/standard/tests/crypt/
H A Ddes_fallback_invalid_salt.phpt11 Deprecated: crypt(): Supplied salt is not valid for DES. Possible bug in provided salt format. in %…
14 Deprecated: crypt(): Supplied salt is not valid for DES. Possible bug in provided salt format. in %…
/PHP-7.4/ext/standard/
H A Dcrypt_blowfish.c668 BF_word salt[4]; in BF_crypt() member
701 BF_swap(data.binary.salt, 4); in BF_crypt()
710 L ^= data.binary.salt[i & 2]; in BF_crypt()
711 R ^= data.binary.salt[(i & 2) + 1]; in BF_crypt()
720 L ^= data.binary.salt[(BF_N + 2) & 3]; in BF_crypt()
721 R ^= data.binary.salt[(BF_N + 3) & 3]; in BF_crypt()
726 L ^= data.binary.salt[(BF_N + 4) & 3]; in BF_crypt()
748 tmp1 = data.binary.salt[0]; in BF_crypt()
749 tmp2 = data.binary.salt[1]; in BF_crypt()
750 tmp3 = data.binary.salt[2]; in BF_crypt()
[all …]
H A Dcrypt_freesec.c351 setup_salt(uint32_t salt, struct php_crypt_extended_data *data) in setup_salt() argument
356 if (salt == data->old_salt) in setup_salt()
358 data->old_salt = salt; in setup_salt()
364 if (salt & saltbit) in setup_salt()
576 des_cipher(const char *in, char *out, uint32_t salt, int count, in des_cipher() argument
582 setup_salt(salt, data); in des_cipher()
614 uint32_t count, salt, l, r0, r1, keybuf[2]; in _crypt_extended_r() local
648 for (i = 5, salt = 0; i < 9; i++) { in _crypt_extended_r()
652 salt |= value << (i - 5) * 6; in _crypt_extended_r()
686 salt = (ascii_to_bin(setting[1]) << 6) in _crypt_extended_r()
[all …]
H A Dcrypt_sha256.c353 salt += sizeof(sha256_salt_prefix) - 1; in php_sha256_crypt_r()
361 salt = endp + 1; in php_sha256_crypt_r()
367 salt_len = MIN(strcspn(salt, "$"), SALT_LEN_MAX); in php_sha256_crypt_r()
375 if ((salt - (char *) 0) % __alignof__(uint32_t) != 0) { in php_sha256_crypt_r()
377 salt = copied_salt = in php_sha256_crypt_r()
391 sha256_process_bytes(salt, salt_len, &ctx); in php_sha256_crypt_r()
402 sha256_process_bytes(salt, salt_len, &alt_ctx); in php_sha256_crypt_r()
453 sha256_process_bytes(salt, salt_len, &alt_ctx); in php_sha256_crypt_r()
587 + (int)strlen(salt) + 1 + 43 + 1); in php_sha256_crypt()
599 return php_sha256_crypt_r(key, salt, buffer, buflen); in php_sha256_crypt()
[all …]
H A Dcrypt_sha512.c386 salt += sizeof(sha512_salt_prefix) - 1; in php_sha512_crypt_r()
395 salt = endp + 1; in php_sha512_crypt_r()
401 salt_len = MIN(strcspn(salt, "$"), SALT_LEN_MAX); in php_sha512_crypt_r()
412salt = copied_salt = memcpy(tmp + __alignof__(uint64_t) - (tmp - (char *) 0) % __alignof__(uint64_… in php_sha512_crypt_r()
425 sha512_process_bytes(salt, salt_len, &ctx); in php_sha512_crypt_r()
436 sha512_process_bytes(salt, salt_len, &alt_ctx); in php_sha512_crypt_r()
488 sha512_process_bytes(salt, salt_len, &alt_ctx); in php_sha512_crypt_r()
625 php_sha512_crypt(const char *key, const char *salt) { in php_sha512_crypt() argument
634 + strlen(salt) + 1 + 86 + 1); in php_sha512_crypt()
646 return php_sha512_crypt_r (key, salt, buffer, buflen); in php_sha512_crypt()
[all …]
/PHP-7.4/ext/sodium/tests/
H A Dpwhash_argon2i.phpt30 $salt = random_bytes(SODIUM_CRYPTO_PWHASH_SALTBYTES);
33 ($out_len, $passwd, $salt,
39 ($out_len, $passwd, $salt,
H A Dpwhash_scrypt.phpt22 $salt = random_bytes(SODIUM_CRYPTO_PWHASH_SCRYPTSALSA208SHA256_SALTBYTES);
25 ($out_len, $passwd, $salt,
/PHP-7.4/ext/openssl/tests/
H A Dopenssl_pbkdf2_basic.phpt8 var_dump(bin2hex(openssl_pbkdf2('password', 'salt', 20, 1)));
9 var_dump(bin2hex(openssl_pbkdf2('password', 'salt', 20, 2)));
10 var_dump(bin2hex(openssl_pbkdf2('password', 'salt', 20, 4096)));
14 var_dump(bin2hex(openssl_pbkdf2('password', 'salt', 20, 16777216)));
/PHP-7.4/ext/hash/tests/
H A Dmhash_003.phpt24 $salt = str_repeat($hash, 2);
25 $result = mhash_keygen_s2k(constant($hash), $passwd, $salt, 100);
H A Dbug64745.phpt5 $hash = hash_pbkdf2('sha1', 'password', 'salt', 1, 0);
6 $rawHash = hash_pbkdf2('sha1', 'password', 'salt', 1, 0, true);
H A Dhash_hkdf_basic.phpt6 …g hkdf ( string $algo , string $ikm [, int $length , string $info = '' , string $salt = '' ] )
/PHP-7.4/ext/fileinfo/tests/
H A Dmagic私はガラスを食べられます473 #>>>&1 string >\0 \b, PASSWORD salt: "%-128.128s"
474 #>>>&1 regex/1l .* \b, Password salt: %s
476 #>>>>&1 regex/1l .* \b, Master salt: %s
13840 >>>>>>&28 ubequad x \b, salt %llu
26576 # OpenSSL enc file (recognized by a magic string preceding the password's salt)
H A Dmagic473 #>>>&1 string >\0 \b, PASSWORD salt: "%-128.128s"
474 #>>>&1 regex/1l .* \b, Password salt: %s
476 #>>>>&1 regex/1l .* \b, Master salt: %s
13840 >>>>>>&28 ubequad x \b, salt %llu
26576 # OpenSSL enc file (recognized by a magic string preceding the password's salt)

Completed in 159 milliseconds

12