-
Notifications
You must be signed in to change notification settings - Fork 83
Expand file tree
/
Copy pathRsaSha512.cs
More file actions
33 lines (29 loc) · 745 Bytes
/
RsaSha512.cs
File metadata and controls
33 lines (29 loc) · 745 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
using System;
using System.Collections.Generic;
using System.Text;
using System.Security.Cryptography;
namespace Waher.Security.PKCS
{
/// <summary>
/// RSA with SHA-512 signatures
/// </summary>
public class RsaSha512 : Rsa
{
/// <summary>
/// RSA with SHA-512 signatures
/// </summary>
/// <param name="RSA">RSA cryptogaphic service provider.</param>
public RsaSha512(RSA RSA)
: base(RSA)
{
}
/// <summary>
/// Object Identity for the Hash algorithm.
/// </summary>
public override string HashAlgorithmOID => "1.2.840.113549.1.1.13";
/// <summary>
/// Name of hash algorithm to use for signatues.
/// </summary>
public override HashAlgorithmName HashAlgorithmName => HashAlgorithmName.SHA512;
}
}