From 8d2a2cd5de40e2b94ef5007c32832ed9a063dc40 Mon Sep 17 00:00:00 2001
From: chai <215380520@qq.com>
Date: Thu, 12 Oct 2023 22:09:49 +0800
Subject: +hazel-networking
---
Tools/Hazel-Networking/Hazel/Crypto/IAes.cs | 27 +++++++++++++++++++++++++++
1 file changed, 27 insertions(+)
create mode 100644 Tools/Hazel-Networking/Hazel/Crypto/IAes.cs
(limited to 'Tools/Hazel-Networking/Hazel/Crypto/IAes.cs')
diff --git a/Tools/Hazel-Networking/Hazel/Crypto/IAes.cs b/Tools/Hazel-Networking/Hazel/Crypto/IAes.cs
new file mode 100644
index 0000000..6c494cd
--- /dev/null
+++ b/Tools/Hazel-Networking/Hazel/Crypto/IAes.cs
@@ -0,0 +1,27 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace Hazel.Crypto
+{
+ ///
+ /// AES encryption interface
+ ///
+ public interface IAes : IDisposable
+ {
+ ///
+ /// Encrypts the specified region of the input byte array and copies
+ /// the resulting transform to the specified region of the output
+ /// array.
+ ///
+ /// The input for which to encrypt
+ ///
+ /// The otput to which to write the encrypted data. This span can
+ /// overlap with `inputSpan`.
+ ///
+ /// The number of bytes written
+ int EncryptBlock(ByteSpan inputSpan, ByteSpan outputSpan);
+ }
+}
--
cgit v1.1-26-g67d0