Lines Matching refs:salt_len
337 size_t salt_len; in php_sha256_crypt_r() local
367 salt_len = MIN(strcspn(salt, "$"), SALT_LEN_MAX); in php_sha256_crypt_r()
376 char *tmp = (char *) alloca(salt_len + 1 + __alignof__(uint32_t)); in php_sha256_crypt_r()
378 memcpy(tmp + __alignof__(uint32_t) - (tmp - (char *) 0) % __alignof__ (uint32_t), salt, salt_len); in php_sha256_crypt_r()
379 copied_salt[salt_len] = 0; 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()
460 cp = s_bytes = alloca(salt_len); in php_sha256_crypt_r()
461 for (cnt = salt_len; cnt >= 32; cnt -= 32) { in php_sha256_crypt_r()
481 sha256_process_bytes(s_bytes, salt_len, &ctx); in php_sha256_crypt_r()
515 cp = __php_stpncpy(cp, salt, MIN ((size_t) MAX (0, buflen), salt_len)); in php_sha256_crypt_r()
516 buflen -= MIN(MAX (0, buflen), (int)salt_len); in php_sha256_crypt_r()
560 ZEND_SECURE_ZERO(s_bytes, salt_len); in php_sha256_crypt_r()
568 ZEND_SECURE_ZERO(copied_salt, salt_len); in php_sha256_crypt_r()