Crypto engine design enhancements and new library entry point

This commit is contained in:
Gu://em_ 2026-06-15 15:23:41 +02:00
parent cd83af4ef9
commit 693d7cfe51
9 changed files with 132 additions and 45 deletions

View file

@ -1,2 +1,13 @@
pub const packet = @import("packet.zig");
// pub const crypto = @import("crypto.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 cryptoProvider: crypto.PartialEngine) type {
const cryptoEngine = crypto.resolveEngine(cryptoProvider);
_ = cryptoEngine;
return struct {
pub const packet = @import("packet.zig");
};
}