-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathK_PKE_Keys.cs
More file actions
36 lines (33 loc) · 1023 Bytes
/
K_PKE_Keys.cs
File metadata and controls
36 lines (33 loc) · 1023 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
namespace Waher.Security.PQC
{
/// <summary>
/// K-PKE encryption and decryption keys, as defined in §5.1.
/// </summary>
public class K_PKE_Keys
{
/// <summary>
/// K-PKE encryption and decryption keys, as defined in §5.1.
/// </summary>
/// <param name="Â">Internal matrix used to generate encryption key.</param>
/// <param name="EncryptionKey">Public Encryption key.</param>
/// <param name="DecryptionKey">Private Decryption key.</param>
public K_PKE_Keys(ushort[,][] Â, byte[] EncryptionKey, byte[] DecryptionKey)
{
this. = Â;
this.EncryptionKey = EncryptionKey;
this.DecryptionKey = DecryptionKey;
}
/// <summary>
/// Matrix of encryption keys, as defined in §5.1.
/// </summary>
public ushort[,][] Â { get; }
/// <summary>
/// Encoded encryption key, as defined in §5.1.
/// </summary>
public byte[] EncryptionKey { get; }
/// <summary>
/// Encoded decryption key, as defined in §5.1.
/// </summary>
public byte[] DecryptionKey { get; }
}
}