std/crypto: Add support for AES-GCM

Already pretty fast on platforms with AES-NI, even though GHASH
reduction hasn't been optimized yet, and we don't do stitching either.
This commit is contained in:
Frank Denis
2020-10-05 23:51:53 +02:00
parent d343b75e7f
commit 06c16f44e7
3 changed files with 165 additions and 0 deletions

View File

@@ -13,6 +13,8 @@ pub const aead = struct {
pub const XChaCha20Poly1305 = chacha20.XChacha20Poly1305;
pub const AEGIS128L = @import("crypto/aegis.zig").AEGIS128L;
pub const AEGIS256 = @import("crypto/aegis.zig").AEGIS256;
pub const AES128GCM = @import("crypto/aes_gcm.zig").AES128GCM;
pub const AES256GCM = @import("crypto/aes_gcm.zig").AES256GCM;
};
/// Authentication (MAC) functions.