2018-01-16 22:10:27 -08:00
|
|
|
pub const Md5 = @import("md5.zig").Md5;
|
|
|
|
pub const Sha1 = @import("sha1.zig").Sha1;
|
2018-01-13 01:23:12 -08:00
|
|
|
|
|
|
|
const sha2 = @import("sha2.zig");
|
|
|
|
pub const Sha224 = sha2.Sha224;
|
|
|
|
pub const Sha256 = sha2.Sha256;
|
|
|
|
pub const Sha384 = sha2.Sha384;
|
|
|
|
pub const Sha512 = sha2.Sha512;
|
2018-01-12 17:40:21 -08:00
|
|
|
|
2018-01-16 22:40:50 -08:00
|
|
|
const sha3 = @import("sha3.zig");
|
|
|
|
pub const Sha3_224 = sha3.Sha3_224;
|
|
|
|
pub const Sha3_256 = sha3.Sha3_256;
|
|
|
|
pub const Sha3_384 = sha3.Sha3_384;
|
|
|
|
pub const Sha3_512 = sha3.Sha3_512;
|
|
|
|
|
2018-01-16 00:35:31 -08:00
|
|
|
const blake2 = @import("blake2.zig");
|
|
|
|
pub const Blake2s224 = blake2.Blake2s224;
|
|
|
|
pub const Blake2s256 = blake2.Blake2s256;
|
|
|
|
pub const Blake2b384 = blake2.Blake2b384;
|
|
|
|
pub const Blake2b512 = blake2.Blake2b512;
|
2018-01-15 02:14:13 -08:00
|
|
|
|
2018-04-04 07:31:10 -07:00
|
|
|
const hmac = @import("hmac.zig");
|
|
|
|
pub const HmacMd5 = hmac.HmacMd5;
|
2018-08-30 23:40:09 -07:00
|
|
|
pub const HmacSha1 = hmac.HmacSha1;
|
|
|
|
pub const HmacSha256 = hmac.HmacSha256;
|
2018-11-03 01:05:57 -07:00
|
|
|
pub const HmacBlake2s256 = hmac.HmacBlake2s256;
|
2018-04-04 07:31:10 -07:00
|
|
|
|
2018-08-10 19:01:37 -07:00
|
|
|
const import_chaCha20 = @import("chacha20.zig");
|
|
|
|
pub const chaCha20IETF = import_chaCha20.chaCha20IETF;
|
|
|
|
pub const chaCha20With64BitNonce = import_chaCha20.chaCha20With64BitNonce;
|
|
|
|
|
2018-08-30 23:40:09 -07:00
|
|
|
pub const Poly1305 = @import("poly1305.zig").Poly1305;
|
|
|
|
pub const X25519 = @import("x25519.zig").X25519;
|
2018-08-29 23:02:19 -07:00
|
|
|
|
2018-01-12 17:40:21 -08:00
|
|
|
test "crypto" {
|
2018-09-04 01:16:12 -07:00
|
|
|
_ = @import("blake2.zig");
|
|
|
|
_ = @import("chacha20.zig");
|
|
|
|
_ = @import("hmac.zig");
|
2018-01-12 17:40:21 -08:00
|
|
|
_ = @import("md5.zig");
|
2018-09-04 01:16:12 -07:00
|
|
|
_ = @import("poly1305.zig");
|
2018-01-12 17:40:21 -08:00
|
|
|
_ = @import("sha1.zig");
|
2018-01-13 01:23:12 -08:00
|
|
|
_ = @import("sha2.zig");
|
2018-01-16 22:40:50 -08:00
|
|
|
_ = @import("sha3.zig");
|
2018-08-29 23:02:19 -07:00
|
|
|
_ = @import("x25519.zig");
|
2018-01-12 17:40:21 -08:00
|
|
|
}
|