64036523daad9f7a338811230421be62e346cc72
[mono.git] / mcs / class / referencesource / mscorlib / system / security / cryptography / sha384.cs
1 // ==++==
2 // 
3 //   Copyright (c) Microsoft Corporation.  All rights reserved.
4 // 
5 // ==--==
6 // <OWNER>Microsoft</OWNER>
7 // 
8
9 //
10 // SHA384.cs
11 //
12 // This abstract class represents the SHA-384 hash algorithm.
13 //
14
15 namespace System.Security.Cryptography {
16 [System.Runtime.InteropServices.ComVisible(true)]
17     public abstract class SHA384 : HashAlgorithm
18     {
19         //
20         // protected constructors
21         //
22
23         protected SHA384() {
24             HashSizeValue = 384;
25         }
26
27         //
28         // public methods
29         //
30
31         new static public SHA384 Create() {
32 #if FULL_AOT_RUNTIME
33             return new System.Security.Cryptography.SHA384Managed ();
34 #else
35             return Create("System.Security.Cryptography.SHA384");
36 #endif
37         }
38
39         new static public SHA384 Create(String hashName) {
40             return (SHA384) CryptoConfig.CreateFromName(hashName);
41         }
42     }
43 }
44