added stuff

This commit is contained in:
2026-01-04 11:38:45 +03:00
parent 77adc0ea8a
commit 525b273a84
3 changed files with 197 additions and 1 deletions

View File

@@ -0,0 +1,20 @@
//
// Created by Vladislav on 04.01.2026.
//
#include "omath/linear_algebra/vector3.hpp"
#include <gtest/gtest.h>
#include <omath/containers/encrypted_variable.hpp>
TEST(Enc, Test)
{
OMATH_DEF_CRYPT_VAR(omath::Vector3<float>, 128) var{{1.f, 2.f, 3.f}};
OMATH_DEF_CRYPT_VAR(omath::Vector3<float>, 128) var2{{1.f, 2.f, 3.f}};
{
omath::Anchor _ = {var};
omath::Anchor __ = {var2};
std::println("Decrypted var1: {}", var.value());
std::println("Decrypted var2: {}", var2.value());
}
std::println("Encrypted var1: {}", var.value());
std::println("Encrypted var2: {}", var2.value());
}