std.crypto: add constant-time codecs (#23420)

std.crypto: add constant-time codecs

Add constant-time hex/base64 codecs designed to process cryptographic
secrets, adapted from libsodium's implementations.

Introduce a `crypto.codecs` namespace for crypto-related encoders and
decoders. Move ASN.1 codecs to this namespace.

This will also naturally accommodate the proposed PEM codecs.
This commit is contained in:
Frank Denis
2025-04-12 20:13:45 +02:00
committed by GitHub
parent 9352f379e8
commit a7122b7323
13 changed files with 471 additions and 2 deletions

1
.gitattributes vendored
View File

@@ -5,6 +5,7 @@ langref.html.in text eol=lf
lib/std/compress/testdata/** binary
lib/std/compress/deflate/testdata/** binary
lib/std/compress/flate/testdata/** binary
lib/std/crypto/codecs/asn1/der/testdata/** binary
lib/include/** linguist-vendored
lib/libc/** linguist-vendored