13 lines
590 B
Zig
13 lines
590 B
Zig
const crypto = @import("crypto.zig");
|
|
|
|
// This function is used to initialize the library
|
|
// You can pass your own cryptographic functions to take advantage of your
|
|
// platform or use the library's software implementations for compatibility
|
|
// Use its return value to access the library modules
|
|
pub fn RnsZero(comptime crypto_provider: crypto.PartialEngine) type {
|
|
const crypto_engine = crypto.resolveEngine(crypto_provider);
|
|
return struct {
|
|
pub const packet = @import("packet.zig");
|
|
pub const identity = @import("identity.zig").Identity(crypto_engine);
|
|
};
|
|
}
|