| ... | ... | @@ -6,18 +6,26 @@ |
| 6 | 6 | |
| 7 | 7 | /// Authenticated Encryption with Associated Data |
| 8 | 8 | pub const aead = struct { |
| 9 | | pub const Aegis128L = @import("crypto/aegis.zig").Aegis128L; |
| 10 | | pub const Aegis256 = @import("crypto/aegis.zig").Aegis256; |
| 9 | pub const aegis = struct { |
| 10 | pub const Aegis128L = @import("crypto/aegis.zig").Aegis128L; |
| 11 | pub const Aegis256 = @import("crypto/aegis.zig").Aegis256; |
| 12 | }; |
| 11 | 13 | |
| 12 | | pub const Aes128Gcm = @import("crypto/aes_gcm.zig").Aes128Gcm; |
| 13 | | pub const Aes256Gcm = @import("crypto/aes_gcm.zig").Aes256Gcm; |
| 14 | pub const aes_gcm = struct { |
| 15 | pub const Aes128Gcm = @import("crypto/aes_gcm.zig").Aes128Gcm; |
| 16 | pub const Aes256Gcm = @import("crypto/aes_gcm.zig").Aes256Gcm; |
| 17 | }; |
| 14 | 18 | |
| 15 | 19 | pub const Gimli = @import("crypto/gimli.zig").Aead; |
| 16 | 20 | |
| 17 | | pub const ChaCha20Poly1305 = @import("crypto/chacha20.zig").Chacha20Poly1305; |
| 18 | | pub const XChaCha20Poly1305 = @import("crypto/chacha20.zig").XChacha20Poly1305; |
| 21 | pub const chacha_poly = struct { |
| 22 | pub const ChaCha20Poly1305 = @import("crypto/chacha20.zig").Chacha20Poly1305; |
| 23 | pub const XChaCha20Poly1305 = @import("crypto/chacha20.zig").XChacha20Poly1305; |
| 24 | }; |
| 19 | 25 | |
| 20 | | pub const XSalsa20Poly1305 = @import("crypto/salsa20.zig").XSalsa20Poly1305; |
| 26 | pub const salsa_poly = struct { |
| 27 | pub const XSalsa20Poly1305 = @import("crypto/salsa20.zig").XSalsa20Poly1305; |
| 28 | }; |
| 21 | 29 | }; |
| 22 | 30 | |
| 23 | 31 | /// Authentication (MAC) functions. |
| ... | ... | @@ -102,12 +110,16 @@ pub const sign = struct { |
| 102 | 110 | /// Stream ciphers. These do not provide any kind of authentication. |
| 103 | 111 | /// Most applications should be using AEAD constructions instead of stream ciphers directly. |
| 104 | 112 | pub const stream = struct { |
| 105 | | pub const ChaCha20IETF = @import("crypto/chacha20.zig").ChaCha20IETF; |
| 106 | | pub const ChaCha20With64BitNonce = @import("crypto/chacha20.zig").ChaCha20With64BitNonce; |
| 107 | | pub const XChaCha20IETF = @import("crypto/chacha20.zig").XChaCha20IETF; |
| 113 | pub const chacha = struct { |
| 114 | pub const ChaCha20IETF = @import("crypto/chacha20.zig").ChaCha20IETF; |
| 115 | pub const ChaCha20With64BitNonce = @import("crypto/chacha20.zig").ChaCha20With64BitNonce; |
| 116 | pub const XChaCha20IETF = @import("crypto/chacha20.zig").XChaCha20IETF; |
| 117 | }; |
| 108 | 118 | |
| 109 | | pub const Salsa20 = @import("crypto/salsa20.zig").Salsa20; |
| 110 | | pub const XSalsa20 = @import("crypto/salsa20.zig").XSalsa20; |
| 119 | pub const salsa = struct { |
| 120 | pub const Salsa20 = @import("crypto/salsa20.zig").Salsa20; |
| 121 | pub const XSalsa20 = @import("crypto/salsa20.zig").XSalsa20; |
| 122 | }; |
| 111 | 123 | }; |
| 112 | 124 | |
| 113 | 125 | pub const nacl = struct { |