2003-11-09 Sebastien Pouliot <spouliot@videotron.ca>
[mono.git] / mcs / class / corlib / System.Security.Cryptography / HMACSHA256.cs
1 //
2 // HMACSHA256.cs: HMAC implementation using SHA256
3 //
4 // Author:
5 //      Sebastien Pouliot (spouliot@motus.com)
6 //
7 // (C) 2003 Motus Technologies Inc. (http://www.motus.com)
8 //
9
10 #if NET_1_2
11
12 using System;
13
14 using Mono.Security.Cryptography;
15
16 namespace System.Security.Cryptography {
17
18         public class HMACSHA256 : HMAC {
19
20                 public HMACSHA256 () : this (KeyBuilder.Key (8)) {}
21
22                 public HMACSHA256 (byte[] rgbKey) : base () 
23                 {
24                         HashName = "SHA256";
25                         HashSizeValue = 256;
26                         Key = rgbKey;
27                 }
28
29                 ~HMACSHA256 () 
30                 {
31                         Dispose (false);
32                 }
33         }
34 }
35
36 #endif