zig/lib/std
Frank Denis c45c6cd492 Add the POLYVAL universal hash function
POLYVAL is GHASH's little brother, required by the AES-GCM-SIV
construction. It's defined in RFC8452.

The irreducible polynomial is a mirror of GHASH's (which doesn't
change anything in our implementation that didn't reverse the raw
bits to start with).

But most importantly, POLYVAL encodes byte strings as little-endian
instead of big-endian, which makes it a little bit faster on the
vast majority of modern CPUs.

So, both share the same code, just with comptime magic to use the
correct endianness and only double the key for GHASH.
2022-11-20 18:13:19 -05:00
..
atomic tests: Enable PPC64LE as a test target 2022-10-13 12:53:20 -07:00
build std.build: fix typo 2022-11-15 23:23:27 +02:00
c run zig fmt on everything checked by CI 2022-11-18 19:22:42 +00:00
compress all: rename @maximum to @max and @minimum to @min 2022-10-18 14:15:16 +03:00
crypto Add the POLYVAL universal hash function 2022-11-20 18:13:19 -05:00
dwarf
event enable event loop for ios, tvos, and watchos 2022-10-13 13:33:45 +02:00
fmt stage2+stage1: remove type parameter from bit builtins 2022-08-22 11:19:20 +03:00
fs run zig fmt on everything checked by CI 2022-11-18 19:22:42 +00:00
hash std: re-enable auto hash test 2022-10-30 01:09:31 -07:00
heap Make invalidFmtError public and use in place of compileErrors for bad format strings (#13526) 2022-11-12 21:03:24 +02:00
http std.http: fix typo 2022-10-06 21:22:20 +03:00
io Sema: add error for non-comptime param in comptime func 2022-08-27 11:17:48 +03:00
json std.json: Fix parsing of large numbers 2022-07-23 13:52:16 +03:00
math std.math.big.int: implement popCount() for Const 2022-11-18 14:31:30 +02:00
mem std.mem.Allocator: do not return undefined pointers from create 2022-11-16 01:12:27 +02:00
meta
net
os os: windows: fix unhandled error 2022-11-19 22:48:32 +02:00
rand std.rand: make weightedIndex proportions param a const slice 2022-08-30 13:02:17 +03:00
target Revert "x86" CPU model (not arch) back to "i386" 2022-11-06 13:39:03 +01:00
testing
Thread Fix variable name in documentation sample (#13391) 2022-11-01 12:49:13 +01:00
time
tz
unicode
valgrind std.valgrind.callgrind: fix string type 2022-08-22 13:55:00 +03:00
x x/os/Reactor: implement remove function (#13330) 2022-11-13 17:43:29 +02:00
zig fix CPU model detection for neoverse_n1 on aarch64-linux 2022-11-20 15:34:39 -07:00
array_hash_map.zig std: fix memory leak in ArrayHashMap (#13001) 2022-10-03 22:57:53 -04:00
array_list.zig std.array_list: add a comment on every methods invalidating pointers. 2022-11-18 14:49:31 +02:00
ascii.zig Fix deprecation docs for isAlpha and isCntrl 2022-10-29 15:22:05 -04:00
atomic.zig all: rename i386 to x86 2022-11-04 00:09:27 +03:30
base64.zig std: Replace use of stage1 function pointers 2022-09-29 21:45:30 +03:00
bit_set.zig fix(text): hyphenate "runtime" adjectives 2022-10-05 21:33:42 +02:00
bounded_array.zig AstGen: detect declarations shadowing locals 2022-08-16 20:35:03 +03:00
buf_map.zig
buf_set.zig
build.zig Merge pull request #13411 from dweiller/custom-test-runner 2022-11-18 14:47:21 +02:00
builtin.zig Make invalidFmtError public and use in place of compileErrors for bad format strings (#13526) 2022-11-12 21:03:24 +02:00
c.zig pthread_sigmask 2022-11-13 17:36:56 +02:00
child_process.zig std.ChildProcess: correct fn getUserInfo pkg in setUserName 2022-10-03 12:59:47 +03:00
coff.zig run zig fmt on everything checked by CI 2022-11-18 19:22:42 +00:00
compress.zig
comptime_string_map.zig
crypto.zig Add the POLYVAL universal hash function 2022-11-20 18:13:19 -05:00
cstr.zig
debug.zig Make invalidFmtError public and use in place of compileErrors for bad format strings (#13526) 2022-11-12 21:03:24 +02:00
dwarf.zig std.debug: DWARFv5 fixes 2022-08-23 21:11:02 -07:00
dynamic_library.zig
elf.zig run zig fmt on everything checked by CI 2022-11-18 19:22:42 +00:00
enums.zig fix(text): hyphenate "comptime" adjectives 2022-10-05 21:19:30 +02:00
event.zig
fifo.zig
fmt.zig Make invalidFmtError public and use in place of compileErrors for bad format strings (#13526) 2022-11-12 21:03:24 +02:00
fs.zig fs: Some NAME_MAX/MAX_NAME_BYTES improvements 2022-10-29 14:30:46 -07:00
hash.zig
hash_map.zig std: remove deprecated API for the upcoming release 2022-09-16 14:46:53 -04:00
heap.zig Improve doc comments for two functions (#13456) 2022-11-05 22:55:50 +01:00
http.zig
io.zig coff: compile and link simple exit program on arm64 2022-11-05 10:15:01 +01:00
json.zig Sema: check pointer qualifiers before implicit cast 2022-09-20 00:50:13 +03:00
leb128.zig stage2+stage1: remove type parameter from bit builtins 2022-08-22 11:19:20 +03:00
linked_list.zig chore: Remove unused constants 2022-09-11 23:18:43 -04:00
log.zig std: remove deprecated API for the upcoming release 2022-09-16 14:46:53 -04:00
macho.zig run zig fmt on everything checked by CI 2022-11-18 19:22:42 +00:00
math.zig Implements std.math.sign for float vectors. 2022-11-12 15:41:55 +02:00
mem.zig Handle sentinel slices in std.mem.zeroes 2022-11-09 17:33:48 +02:00
meta.zig Merge pull request #13338 from Vexu/stage2-compile-errors 2022-11-04 16:04:31 +02:00
multi_array_list.zig std: avoid vector usage with the C backend 2022-11-01 20:38:37 -04:00
net.zig Make invalidFmtError public and use in place of compileErrors for bad format strings (#13526) 2022-11-12 21:03:24 +02:00
once.zig
os.zig std.os: take advantage of the freebsd's copy_file_range 2022-11-05 15:43:39 -04:00
packed_int_array.zig stage2+stage1: remove type parameter from bit builtins 2022-08-22 11:19:20 +03:00
pdb.zig pdb: make SuperBlock def public 2022-11-12 09:40:40 +01:00
priority_dequeue.zig std: remove deprecated API for the upcoming release 2022-09-16 14:46:53 -04:00
priority_queue.zig std: remove deprecated API for the upcoming release 2022-09-16 14:46:53 -04:00
process.zig process.zig: remove unused function getSelfExeSharedLibPaths 2022-11-16 18:51:11 -05:00
Progress.zig Revert recent std.Progress implementation changes 2022-10-18 18:53:44 -07:00
rand.zig rand: add enumValueWithIndex 2022-11-07 02:46:19 +01:00
segmented_list.zig std.SegmentedList: fix compilation error 2022-10-13 13:57:20 +02:00
SemanticVersion.zig Make invalidFmtError public and use in place of compileErrors for bad format strings (#13526) 2022-11-12 21:03:24 +02:00
simd.zig all: rename @maximum to @max and @minimum to @min 2022-10-18 14:15:16 +03:00
sort.zig
start.zig all: rename i386 to x86 2022-11-04 00:09:27 +03:30
start_windows_tls.zig Merge pull request #13101 from alichraghi/o4 2022-11-05 02:34:24 -04:00
std.zig
target.zig Make invalidFmtError public and use in place of compileErrors for bad format strings (#13526) 2022-11-12 21:03:24 +02:00
testing.zig Make invalidFmtError public and use in place of compileErrors for bad format strings (#13526) 2022-11-12 21:03:24 +02:00
Thread.zig all: rename i386 to x86 2022-11-04 00:09:27 +03:30
time.zig std.time: add microTimestamp() (#13327) 2022-11-02 23:20:19 +01:00
treap.zig
tz.zig
unicode.zig
valgrind.zig all: rename i386 to x86 2022-11-04 00:09:27 +03:30
wasm.zig Make invalidFmtError public and use in place of compileErrors for bad format strings (#13526) 2022-11-12 21:03:24 +02:00
x.zig
zig.zig fmt: canonicalize identifiers 2022-11-18 19:22:42 +00:00