Lines Matching refs:salt_len
368 size_t salt_len; in php_sha512_crypt_r() local
403 salt_len = MIN(strcspn(salt, "$"), SALT_LEN_MAX); in php_sha512_crypt_r()
420 tmp_salt = (char *) do_alloca(salt_len + 1 + __alignof__(uint64_t), use_heap_salt); in php_sha512_crypt_r()
421 …py(tmp_salt + __alignof__(uint64_t) - (uintptr_t)tmp_salt % __alignof__(uint64_t), salt, salt_len); in php_sha512_crypt_r()
422 copied_salt[salt_len] = 0; in php_sha512_crypt_r()
434 sha512_process_bytes(salt, salt_len, &ctx); in php_sha512_crypt_r()
445 sha512_process_bytes(salt, salt_len, &alt_ctx); in php_sha512_crypt_r()
498 sha512_process_bytes(salt, salt_len, &alt_ctx); in php_sha512_crypt_r()
506 cp = s_bytes = do_alloca(salt_len, use_heap_s_bytes); in php_sha512_crypt_r()
507 for (cnt = salt_len; cnt >= 64; cnt -= 64) { in php_sha512_crypt_r()
527 sha512_process_bytes(s_bytes, salt_len, &ctx); in php_sha512_crypt_r()
561 cp = __php_stpncpy(cp, salt, MIN((size_t) MAX(0, buflen), salt_len)); in php_sha512_crypt_r()
562 buflen -= (int) MIN((size_t) MAX(0, buflen), salt_len); in php_sha512_crypt_r()
619 ZEND_SECURE_ZERO(s_bytes, salt_len); in php_sha512_crypt_r()
626 ZEND_SECURE_ZERO(copied_salt, salt_len); in php_sha512_crypt_r()