summaryrefslogtreecommitdiff
path: root/lib/nes/app/crypto/aes256.hh
diff options
context:
space:
mode:
Diffstat (limited to 'lib/nes/app/crypto/aes256.hh')
-rw-r--r--lib/nes/app/crypto/aes256.hh12
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/nes/app/crypto/aes256.hh b/lib/nes/app/crypto/aes256.hh
new file mode 100644
index 0000000..1ce9d7a
--- /dev/null
+++ b/lib/nes/app/crypto/aes256.hh
@@ -0,0 +1,12 @@
+#pragma once
+
+#include "nes/common/containers/span.hh"
+#include "nes/common/types.hh"
+
+namespace nes::app::aes256
+{
+ using key = span<u8 const, 256 / 8>;
+
+ auto encrypt(span<u8>, key) -> void;
+ auto decrypt(span<u8>, key) -> void;
+} // namespace nes::app::aes256 \ No newline at end of file