From 28d1ddb50cb1cfdd4b22fd487ceebc0741825cb0 Mon Sep 17 00:00:00 2001 From: Claudius 'keldu' Holeksa Date: Wed, 17 Jul 2024 18:12:24 +0200 Subject: Minor crypto additions --- modules/crypto/.nix/derivation.nix | 4 +++- modules/crypto/c++/hash.hpp | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 modules/crypto/c++/hash.hpp diff --git a/modules/crypto/.nix/derivation.nix b/modules/crypto/.nix/derivation.nix index dd7d36b..d470509 100644 --- a/modules/crypto/.nix/derivation.nix +++ b/modules/crypto/.nix/derivation.nix @@ -4,6 +4,7 @@ , clang-tools , version , forstio +, libargon2 }: let @@ -21,7 +22,8 @@ in stdenv.mkDerivation { ]; buildInputs = [ - forstio.core + forstio.core + libargon2 ]; doCheck = true; diff --git a/modules/crypto/c++/hash.hpp b/modules/crypto/c++/hash.hpp new file mode 100644 index 0000000..3d25b4e --- /dev/null +++ b/modules/crypto/c++/hash.hpp @@ -0,0 +1,19 @@ +#pragma once + +namespace saw { +namespace crypto { +struct Argon2i {}; +} + +template +class hash; + +template<> +class hash { +public: + + data apply(const data>& input){ + return {""}; + } +}; +} -- cgit v1.2.3