Refactored (again) the packet module, added the identity and destination modules
This commit is contained in:
parent
0eae5818a0
commit
1216dc2282
5 changed files with 178 additions and 100 deletions
|
|
@ -4,10 +4,10 @@ const crypto = @import("crypto.zig");
|
|||
// 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 cryptoProvider: crypto.PartialEngine) type {
|
||||
const cryptoEngine = crypto.resolveEngine(cryptoProvider);
|
||||
_ = cryptoEngine;
|
||||
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);
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue