| ... | ... | @@ -29,9 +29,10 @@ pub const HmacSha1 = hmac.HmacSha1; |
| 29 | 29 | pub const HmacSha256 = hmac.HmacSha256; |
| 30 | 30 | pub const HmacBlake2s256 = hmac.HmacBlake2s256; |
| 31 | 31 | |
| 32 | | const import_chaCha20 = @import("crypto/chacha20.zig"); |
| 33 | | pub const chaCha20IETF = import_chaCha20.chaCha20IETF; |
| 34 | | pub const chaCha20With64BitNonce = import_chaCha20.chaCha20With64BitNonce; |
| 32 | pub const chacha20 = @import("crypto/chacha20.zig"); |
| 33 | pub const chaCha20IETF = chacha20.chaCha20IETF; |
| 34 | pub const chaCha20With64BitNonce = chacha20.chaCha20With64BitNonce; |
| 35 | pub const xChaCha20IETF = chacha20.xChaCha20IETF; |
| 35 | 36 | |
| 36 | 37 | pub const Poly1305 = @import("crypto/poly1305.zig").Poly1305; |
| 37 | 38 | |
| ... | ... | @@ -45,6 +46,12 @@ pub const Edwards25519 = @import("crypto/25519/edwards25519.zig").Edwards25519; |
| 45 | 46 | pub const X25519 = @import("crypto/25519/x25519.zig").X25519; |
| 46 | 47 | pub const Ristretto255 = @import("crypto/25519/ristretto255.zig").Ristretto255; |
| 47 | 48 | |
| 49 | pub const aead = struct { |
| 50 | pub const Gimli = gimli.Aead; |
| 51 | pub const ChaCha20Poly1305 = chacha20.Chacha20Poly1305; |
| 52 | pub const XChaCha20Poly1305 = chacha20.XChacha20Poly1305; |
| 53 | }; |
| 54 | |
| 48 | 55 | const std = @import("std.zig"); |
| 49 | 56 | pub const randomBytes = std.os.getrandom; |
| 50 | 57 | |