forked from PeterWaher/IoTGateway
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSHAKE128.cs
More file actions
25 lines (24 loc) · 754 Bytes
/
SHAKE128.cs
File metadata and controls
25 lines (24 loc) · 754 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
using System;
using System.Collections.Generic;
using System.Text;
namespace Waher.Security.SHA3
{
/// <summary>
/// Implements the SHA3 SHAKE128 extendable-output functions, as defined in
/// section 6.2 in the NIST FIPS 202:
/// https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.202.pdf
/// </summary>
public class SHAKE128 : Keccak1600
{
/// <summary>
/// Implements the SHA3 SHAKE128 extendable-output functions, as defined in
/// section 6.2 in the NIST FIPS 202:
/// https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.202.pdf
/// </summary>
/// <param name="DigestSize">Digest size, in bits.</param>
public SHAKE128(int DigestSize)
: base(256, 0b1111, DigestSize)
{
}
}
}