zig/lib/std
Frank Denis 26793453a7 std/crypto/blake2b: allow the initial output length to be set
BLAKE2 includes the expected output length in the initial state.

This length is actually distinct from the actual output length
used at finalization.

BLAKE2b-256/128 is thus not the same as BLAKE2b-128.

This behavior can be a little bit surprising, and has been "fixed"
in BLAKE3.

In order to support this, we may want to provide an option to set the
length used for domain separation.

In Zig, there is another reason to allow this: we assume that the
output length is defined at comptime.

But BLAKE2 doesn't have a fixed output length. For an output length that
is not known at comptime, we can't take the full block size and
truncate it due to the reason above.

What we can do now is set that length as an option to get the correct
initial state, and truncate the output if necessary.
2020-10-29 15:18:37 -04:00
..
atomic add license header to all std lib files 2020-08-20 16:07:04 -04:00
build std: move std.meta.refAllDecls to std.testing 2020-10-15 20:34:22 -04:00
c Clean up exporting of symbols on Darwin 2020-10-28 10:36:19 +01:00
compress std: Add a gzip decoder 2020-09-11 20:02:41 -04:00
crypto std/crypto/blake2b: allow the initial output length to be set 2020-10-29 15:18:37 -04:00
debug Make std.meta.Int accept a signedness parameter 2020-10-17 14:09:59 +02:00
event std/event: fix zig fmt regression 2020-10-27 21:40:22 +01:00
fmt Make std.meta.Int accept a signedness parameter 2020-10-17 14:09:59 +02:00
fs Merge branch 'master' into openbsd-minimal 2020-10-17 17:38:23 +02:00
hash Make std.meta.Int accept a signedness parameter 2020-10-17 14:09:59 +02:00
heap Make std.meta.Int accept a signedness parameter 2020-10-17 14:09:59 +02:00
io std/*: add missing MIT license headers 2020-10-26 17:41:29 +01:00
json add license header to all std lib files 2020-08-20 16:07:04 -04:00
math Make std.meta.Int accept a signedness parameter 2020-10-17 14:09:59 +02:00
mem use Allocator.allocSentinel now that the stage1 bug is fixed 2020-09-29 12:06:35 -07:00
meta Make std.meta.Int accept a signedness parameter 2020-10-17 14:09:59 +02:00
net More fixups for Windows targets 2020-10-28 10:03:23 +01:00
os std.os.linux.accept/accept4: allow null for addr and len 2020-10-27 21:52:47 +01:00
rand add license header to all std lib files 2020-08-20 16:07:04 -04:00
special Merge pull request #6678 from s-ol/doc-type-aware 2020-10-29 15:19:02 +02:00
target Merge remote-tracking branch 'origin/master' into llvm11 2020-08-21 14:50:37 -07:00
testing add license header to all std lib files 2020-08-20 16:07:04 -04:00
time add license header to all std lib files 2020-08-20 16:07:04 -04:00
unicode add license header to all std lib files 2020-08-20 16:07:04 -04:00
valgrind add license header to all std lib files 2020-08-20 16:07:04 -04:00
zig std: Implement featureSetHasAny/featureSetHasAll 2020-10-20 23:23:43 +03:00
array_hash_map.zig std.ArrayHashMap: count and iterator are not deprecated 2020-09-25 20:50:40 -07:00
array_list.zig Fix std.ArrayListUnmanaged + improve test coverage 2020-09-29 19:49:13 +02:00
array_list_sentineled.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
ascii.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
atomic.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
auto_reset_event.zig Add more comments & cleanup AutoResetEvent 2020-10-11 19:16:07 -05:00
base64.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
buf_map.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
buf_set.zig hash_map: rename to ArrayHashMap and add new HashMap implementation 2020-09-02 00:17:50 +02:00
build.zig make addBuildOption append type (#6801) 2020-10-29 15:16:47 -04:00
builtin.zig Merge pull request #6421 from tadeokondrak/opaque-syntax 2020-10-07 16:58:50 -04:00
c.zig Merge pull request #6838 from LemonBoy/netstuff 2020-10-29 15:10:29 -04:00
child_process.zig Make std.meta.Int accept a signedness parameter 2020-10-17 14:09:59 +02:00
coff.zig Completed basic PE linker for stage2 2020-09-04 05:15:03 +03:00
compress.zig std: Add a gzip decoder 2020-09-11 20:02:41 -04:00
comptime_string_map.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
crypto.zig PascalCase *box names, remove unneeded comptime & parenthesis 2020-10-28 21:43:15 +02:00
cstr.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
debug.zig std: Minor changes to startup code 2020-10-19 15:15:43 +02:00
dwarf.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
dwarf_bits.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
dynamic_library.zig Merge branch 'master' into openbsd-minimal 2020-10-17 17:38:23 +02:00
elf.zig openbsd: make dl_phdr_info cross arches 2020-10-25 20:46:28 -04:00
event.zig add WaitGroup to std.event 2020-10-07 04:34:09 -04:00
fifo.zig Make LinearFifo not crash when discarding from empty buffer 2020-09-27 05:46:39 -04:00
fmt.zig Format null type in std.fmt 2020-10-26 15:40:48 -04:00
fs.zig readd original code from #6638. realpathZ() is expected to take a [*:0]const u8 2020-10-25 10:02:10 +01:00
hash.zig Promote hash/siphash to crypto/siphash 2020-08-22 02:47:50 -04:00
hash_map.zig Switch type of HashMap's count from usize to u32 (#6262) 2020-09-09 00:33:14 -04:00
heap.zig Make std.meta.Int accept a signedness parameter 2020-10-17 14:09:59 +02:00
io.zig zig fmt: Remove dynamic stack from auto-indenting-stream 2020-08-31 23:39:50 +10:00
json.zig Add missing std in dump function json.zig 2020-10-20 13:39:38 +03:00
linked_list.zig std: remove init functions from linked list nodes 2020-08-22 02:47:39 -04:00
log.zig fix another round of regressions in this branch 2020-09-26 21:03:38 -07:00
macho.zig Write out LC_DYSYMTAB together with dyld_stub_binder undef symbol 2020-10-04 15:31:47 +02:00
math.zig std/math: add support for vectors to rotl()/rotr() 2020-10-29 14:17:46 -04:00
mem.zig Set page size to 16KB for aarch64 macos 2020-10-29 14:21:43 -04:00
meta.zig Fixes std.meta.Tuple and std.meta.ArgsTuple for zero-sized types (like void). 2020-10-17 21:10:01 -04:00
mutex.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
net.zig More fixups for Windows targets 2020-10-28 10:03:23 +01:00
once.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
os.zig More fixups for Windows targets 2020-10-28 10:03:23 +01:00
packed_int_array.zig Merge branch 'openbsd-minimal' of https://github.com/semarie/zig into semarie-openbsd-minimal 2020-10-17 17:34:43 -07:00
pdb.zig update rest of tests 2020-09-04 22:49:14 +03:00
priority_queue.zig removing redundant assert 2020-09-22 05:12:21 -07:00
process.zig Make argsAlloc/ArgIterator return zero-sentinel strings (#6720) 2020-10-22 17:52:48 -04:00
progress.zig Introduces a space after the ellipsis for test and progress. 2020-09-03 18:07:30 -04:00
rand.zig Make std.meta.Int accept a signedness parameter 2020-10-17 14:09:59 +02:00
reset_event.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
segmented_list.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
sort.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
spinlock.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
start.zig Fix Compiler Error When Using wWinMain Entry-Point 2020-10-22 19:50:06 -04:00
start_windows_tls.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
std.zig std: move std.meta.refAllDecls to std.testing 2020-10-15 20:34:22 -04:00
target.zig Merge pull request #6743 from LemonBoy/someppc64stuff 2020-10-22 17:39:26 -04:00
testing.zig std: Better handling of type values in expectEqual 2020-10-29 15:13:44 +02:00
thread.zig update uses of deprecated type field access 2020-09-03 18:10:40 +03:00
time.zig Merge pull request #6655 from kprotty/timers 2020-10-14 21:49:45 -04:00
unicode.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
valgrind.zig add license header to all std lib files 2020-08-20 16:07:04 -04:00
zig.zig std: remove renderStringLiteral in favor of std.fmt specifier 2020-10-17 23:20:38 +03:00