diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2020-08-16 22:35:39 -0700 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2020-08-16 22:35:39 -0700 |
| commit | addeff889a1017beeef8c710dfdd55dbda2449e3 (patch) | |
| tree | 36beac5edb4683d4b14bd395addcf55f846e315d /lib/std/crypto.zig | |
| parent | f46e375bbe0ac0893717bd477eab78f51863e277 (diff) | |
| parent | 7f9a227abfbce0e67746cc57dd9b6a4bf0a8d94a (diff) | |
| download | zig-addeff889a1017beeef8c710dfdd55dbda2449e3.tar.gz zig-addeff889a1017beeef8c710dfdd55dbda2449e3.zip | |
Merge branch 'jedisct1-25519'
closes #6050
Diffstat (limited to 'lib/std/crypto.zig')
| -rw-r--r-- | lib/std/crypto.zig | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/lib/std/crypto.zig b/lib/std/crypto.zig index d0ec3277e8..9fbe70f815 100644 --- a/lib/std/crypto.zig +++ b/lib/std/crypto.zig @@ -34,12 +34,17 @@ pub const chaCha20IETF = import_chaCha20.chaCha20IETF; pub const chaCha20With64BitNonce = import_chaCha20.chaCha20With64BitNonce; pub const Poly1305 = @import("crypto/poly1305.zig").Poly1305; -pub const X25519 = @import("crypto/x25519.zig").X25519; const import_aes = @import("crypto/aes.zig"); pub const AES128 = import_aes.AES128; pub const AES256 = import_aes.AES256; +pub const Curve25519 = @import("crypto/25519/curve25519.zig").Curve25519; +pub const Ed25519 = @import("crypto/25519/ed25519.zig").Ed25519; +pub const Edwards25519 = @import("crypto/25519/edwards25519.zig").Edwards25519; +pub const X25519 = @import("crypto/25519/x25519.zig").X25519; +pub const Ristretto255 = @import("crypto/25519/ristretto255.zig").Ristretto255; + const std = @import("std.zig"); pub const randomBytes = std.os.getrandom; @@ -55,7 +60,13 @@ test "crypto" { _ = @import("crypto/sha1.zig"); _ = @import("crypto/sha2.zig"); _ = @import("crypto/sha3.zig"); - _ = @import("crypto/x25519.zig"); + _ = @import("crypto/25519/curve25519.zig"); + _ = @import("crypto/25519/ed25519.zig"); + _ = @import("crypto/25519/edwards25519.zig"); + _ = @import("crypto/25519/field.zig"); + _ = @import("crypto/25519/scalar.zig"); + _ = @import("crypto/25519/x25519.zig"); + _ = @import("crypto/25519/ristretto255.zig"); } test "issue #4532: no index out of bounds" { |
