blob: 2e17104b4c99321d6784aecacf5a8f956a87fee4 (
plain) (
blame)
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
|
using System;
using Org.BouncyCastle.Crypto;
namespace Org.BouncyCastle.Pqc.Crypto.Falcon
{
public sealed class FalconParameters
: ICipherParameters
{
public static readonly FalconParameters falcon_512 = new FalconParameters("falcon512", 9, 40);
public static readonly FalconParameters falcon_1024 = new FalconParameters("falcon1024", 10, 40);
private readonly string name;
private readonly uint logn;
private readonly uint nonce_length;
private FalconParameters(string name, uint logn, uint nonce_length)
{
this.name = name;
this.logn = logn;
this.nonce_length = nonce_length;
}
public int LogN => Convert.ToInt32(logn);
public int NonceLength => Convert.ToInt32(nonce_length);
public string Name => name;
}
}
|