diff options
| author | Frank Denis <124872+jedisct1@users.noreply.github.com> | 2025-04-12 20:13:45 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-12 20:13:45 +0200 |
| commit | a7122b73231808a8a07b79c84e1eaac9cf4c28aa (patch) | |
| tree | edafeb2bbf26110b704a23167f9cb08008460b4b /lib/std/crypto/codecs.zig | |
| parent | 9352f379e8a08bcc5a3bfc851bfb6c6a662000af (diff) | |
| download | zig-a7122b73231808a8a07b79c84e1eaac9cf4c28aa.tar.gz zig-a7122b73231808a8a07b79c84e1eaac9cf4c28aa.zip | |
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.
Diffstat (limited to 'lib/std/crypto/codecs.zig')
| -rw-r--r-- | lib/std/crypto/codecs.zig | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/std/crypto/codecs.zig b/lib/std/crypto/codecs.zig new file mode 100644 index 0000000000..78a6da1284 --- /dev/null +++ b/lib/std/crypto/codecs.zig @@ -0,0 +1,3 @@ +pub const asn1 = @import("codecs/asn1.zig"); +pub const Base64 = @import("codecs/base64_hex_ct.zig").Base64; +pub const Hex = @import("codecs/base64_hex_ct.zig").Hex; |
