We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2ba7604 commit e0b0c1fCopy full SHA for e0b0c1f
Rijndael256/AuthKeys.cs
@@ -10,6 +10,9 @@
10
11
namespace Rijndael256
12
{
13
+ /// <summary>
14
+ /// Used for Authenticated AES.
15
+ /// </summary>
16
public class AuthKeys
17
18
// The generated hash is 512-bit (128 chars)
@@ -19,6 +22,12 @@ public class AuthKeys
19
22
public string CipherKey { get; set; }
20
23
public byte[] MacKey { get; set; }
21
24
25
26
+ /// Generates a SHA-512 hash from the provided password, and derives two
27
+ /// 256-bit keys from the hash.
28
29
+ /// <param name="password">The password to hash.</param>
30
+ /// <returns>A pair of 256-bit keys.</returns>
31
public static AuthKeys Generate(string password)
32
33
// Generate 512-bit hash from password
0 commit comments