mirror of
https://github.com/esiur/esiur-dotnet.git
synced 2026-10-29 12:06:51 +00:00
cipher
This commit is contained in:
1 parent
81f9f92755
commit
8ab0e811bd
21 files changed
+255
-100
No files matched your search
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Text;
|
||||
|
||||
namespace Esiur.Security.Cryptography
|
||||
{
|
||||
public interface IKeyExchanger
|
||||
{
|
||||
public ushort Identifier { get; }
|
||||
public byte[] GetPublicKey();
|
||||
public byte[] ComputeSharedKey(byte[] key);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Esiur.Security.Cryptography
|
||||
{
|
||||
public interface ISymetricCipher
|
||||
{
|
||||
public ushort Identifier { get; }
|
||||
public byte[] Encrypt(byte[] data);
|
||||
public byte[] Decrypt(byte[] data);
|
||||
public byte[] SetKey(byte[] key);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user