feat(security): add SecureBuffer, VSEC envelopes, authorization, and SecurityAsync Authenticator

This commit is contained in:
faumaray committed 2026-11-25 20:44:31 +03:00
1 parent eb42228604
commit 713d2dc656
20 files changed
+4070 -43

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
#include <Void/Async/Executor.hpp>
#include <Void/Security/Authenticator.hpp>
#include <memory>
int main()
{
auto store = std::make_shared<Void::SecurityAsync::InMemoryAccountSessionStore>();
Void::Async::ManualExecutor exec;
Void::SecurityAsync::AuthenticatorOptions opts{};
opts.dummy_hash_strength = Void::Security::PasswordHashStrength::Interactive;
auto auth = Void::SecurityAsync::Authenticator::create(store, exec, opts);
if (!auth.has_value()) {
return 1;
}
if ((*auth)->stats().active_password_jobs != 0) {
return 2;
}
(void)(*auth)->close_and_join();
return 0;
}