This repository has been archived by the owner on Sep 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 424
/
Copy pathcrypto.cs
198 lines (197 loc) · 11 KB
/
crypto.cs
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
/*
APIs removed/broken by this factoring:
// Below APIs don't exist in Xamarin so removing from netstandard
public partial class CryptoConfig
{
//CRYPTO public static void AddAlgorithm(System.Type algorithm, params string[] names) { }
//CRYPTO public static void AddOID(string oid, params string[] names) { }
}
public sealed partial class RC2CryptoServiceProvider : System.Security.Cryptography.RC2
{
//CRYPTO public bool UseSalt { get { throw null; } set { } }
}
public partial class Rfc2898DeriveBytes : System.Security.Cryptography.DeriveBytes
{
//CRYPTO public byte[] CryptDeriveKey(string algname, string alghashname, int keySize, byte[] rgbIV) { throw null; }
}
public sealed partial class RNGCryptoServiceProvider : System.Security.Cryptography.RandomNumberGenerator
{
//CRYPTO public RNGCryptoServiceProvider(byte[] rgb) { }
//CRYPTO public RNGCryptoServiceProvider(System.Security.Cryptography.CspParameters cspParams) { }
//CRYPTO public RNGCryptoServiceProvider(string str) { }
}
*/
namespace System.Security.Cryptography
{
public abstract partial class ECDiffieHellman : System.Security.Cryptography.AsymmetricAlgorithm
{
protected ECDiffieHellman() { }
public override string KeyExchangeAlgorithm { get { throw null; } }
public abstract System.Security.Cryptography.ECDiffieHellmanPublicKey PublicKey { get; }
public override string SignatureAlgorithm { get { throw null; } }
public static new System.Security.Cryptography.ECDiffieHellman Create() { throw null; }
public static new System.Security.Cryptography.ECDiffieHellman Create(string algorithm) { throw null; }
public abstract byte[] DeriveKeyMaterial(System.Security.Cryptography.ECDiffieHellmanPublicKey otherPartyPublicKey);
}
public sealed partial class ECDiffieHellmanCng : System.Security.Cryptography.ECDiffieHellman
{
public ECDiffieHellmanCng() { }
public ECDiffieHellmanCng(int keySize) { }
public ECDiffieHellmanCng(System.Security.Cryptography.CngKey key) { }
public System.Security.Cryptography.CngAlgorithm HashAlgorithm { get { throw null; } set { } }
public byte[] HmacKey { get { throw null; } set { } }
public System.Security.Cryptography.CngKey Key { get { throw null; } }
public System.Security.Cryptography.ECDiffieHellmanKeyDerivationFunction KeyDerivationFunction { get { throw null; } set { } }
public byte[] Label { get { throw null; } set { } }
public override System.Security.Cryptography.ECDiffieHellmanPublicKey PublicKey { get { throw null; } }
public byte[] SecretAppend { get { throw null; } set { } }
public byte[] SecretPrepend { get { throw null; } set { } }
public byte[] Seed { get { throw null; } set { } }
public bool UseSecretAgreementAsHmacKey { get { throw null; } }
public byte[] DeriveKeyMaterial(System.Security.Cryptography.CngKey otherPartyPublicKey) { throw null; }
public override byte[] DeriveKeyMaterial(System.Security.Cryptography.ECDiffieHellmanPublicKey otherPartyPublicKey) { throw null; }
public Microsoft.Win32.SafeHandles.SafeNCryptSecretHandle DeriveSecretAgreementHandle(System.Security.Cryptography.CngKey otherPartyPublicKey) { throw null; }
public Microsoft.Win32.SafeHandles.SafeNCryptSecretHandle DeriveSecretAgreementHandle(System.Security.Cryptography.ECDiffieHellmanPublicKey otherPartyPublicKey) { throw null; }
protected override void Dispose(bool disposing) { }
public override void FromXmlString(string xmlString) { }
public void FromXmlString(string xml, System.Security.Cryptography.ECKeyXmlFormat format) { }
public override string ToXmlString(bool includePrivateParameters) { throw null; }
public string ToXmlString(System.Security.Cryptography.ECKeyXmlFormat format) { throw null; }
}
public sealed partial class ECDiffieHellmanCngPublicKey : System.Security.Cryptography.ECDiffieHellmanPublicKey
{
internal ECDiffieHellmanCngPublicKey() : base (default(byte[])) { }
public System.Security.Cryptography.CngKeyBlobFormat BlobFormat { get { throw null; } }
protected override void Dispose(bool disposing) { }
public static System.Security.Cryptography.ECDiffieHellmanPublicKey FromByteArray(byte[] publicKeyBlob, System.Security.Cryptography.CngKeyBlobFormat format) { throw null; }
public static System.Security.Cryptography.ECDiffieHellmanCngPublicKey FromXmlString(string xml) { throw null; }
public System.Security.Cryptography.CngKey Import() { throw null; }
public override string ToXmlString() { throw null; }
}
public enum ECDiffieHellmanKeyDerivationFunction
{
Hash = 0,
Hmac = 1,
Tls = 2,
}
public sealed partial class ECDsaCng : System.Security.Cryptography.ECDsa
{
public ECDsaCng() { }
public ECDsaCng(int keySize) { }
public ECDsaCng(System.Security.Cryptography.CngKey key) { }
public System.Security.Cryptography.CngAlgorithm HashAlgorithm { get { throw null; } set { } }
public System.Security.Cryptography.CngKey Key { get { throw null; } }
protected override void Dispose(bool disposing) { }
public override void FromXmlString(string xmlString) { }
public void FromXmlString(string xml, System.Security.Cryptography.ECKeyXmlFormat format) { }
protected override byte[] HashData(byte[] data, int offset, int count, System.Security.Cryptography.HashAlgorithmName hashAlgorithm) { throw null; }
protected override byte[] HashData(System.IO.Stream data, System.Security.Cryptography.HashAlgorithmName hashAlgorithm) { throw null; }
public byte[] SignData(byte[] data) { throw null; }
public byte[] SignData(byte[] data, int offset, int count) { throw null; }
public byte[] SignData(System.IO.Stream data) { throw null; }
public override byte[] SignHash(byte[] hash) { throw null; }
public override string ToXmlString(bool includePrivateParameters) { throw null; }
public string ToXmlString(System.Security.Cryptography.ECKeyXmlFormat format) { throw null; }
public bool VerifyData(byte[] data, byte[] signature) { throw null; }
public bool VerifyData(byte[] data, int offset, int count, byte[] signature) { throw null; }
public bool VerifyData(System.IO.Stream data, byte[] signature) { throw null; }
public override bool VerifyHash(byte[] hash, byte[] signature) { throw null; }
}
public enum ECKeyXmlFormat
{
Rfc4050 = 0,
}
public partial class HMACRIPEMD160 : System.Security.Cryptography.HMAC
{
public HMACRIPEMD160() { }
public HMACRIPEMD160(byte[] key) { }
}
public partial class MACTripleDES : System.Security.Cryptography.KeyedHashAlgorithm
{
public MACTripleDES() { }
public MACTripleDES(byte[] rgbKey) { }
public MACTripleDES(string strTripleDES, byte[] rgbKey) { }
public System.Security.Cryptography.PaddingMode Padding { get { throw null; } set { } }
protected override void Dispose(bool disposing) { }
protected override void HashCore(byte[] rgbData, int ibStart, int cbSize) { }
protected override byte[] HashFinal() { throw null; }
public override void Initialize() { }
}
public sealed partial class MD5Cng : System.Security.Cryptography.MD5
{
public MD5Cng() { }
protected override void Dispose(bool disposing) { }
protected override void HashCore(byte[] array, int ibStart, int cbSize) { }
protected override byte[] HashFinal() { throw null; }
public override void Initialize() { }
}
public abstract partial class RIPEMD160 : System.Security.Cryptography.HashAlgorithm
{
protected RIPEMD160() { }
public static new System.Security.Cryptography.RIPEMD160 Create() { throw null; }
public static new System.Security.Cryptography.RIPEMD160 Create(string hashName) { throw null; }
}
public partial class RIPEMD160Managed : System.Security.Cryptography.RIPEMD160
{
public RIPEMD160Managed() { }
protected override void HashCore(byte[] rgb, int ibStart, int cbSize) { }
protected override byte[] HashFinal() { throw null; }
public override void Initialize() { }
}
public sealed partial class SHA1Cng : System.Security.Cryptography.SHA1
{
public SHA1Cng() { }
protected override void Dispose(bool disposing) { }
protected override void HashCore(byte[] array, int ibStart, int cbSize) { }
protected override byte[] HashFinal() { throw null; }
public override void Initialize() { }
}
public sealed partial class SHA256Cng : System.Security.Cryptography.SHA256
{
public SHA256Cng() { }
protected override void Dispose(bool disposing) { }
protected override void HashCore(byte[] array, int ibStart, int cbSize) { }
protected override byte[] HashFinal() { throw null; }
public override void Initialize() { }
}
public sealed partial class SHA256CryptoServiceProvider : System.Security.Cryptography.SHA256
{
public SHA256CryptoServiceProvider() { }
protected override void Dispose(bool disposing) { }
protected override void HashCore(byte[] array, int ibStart, int cbSize) { }
protected override byte[] HashFinal() { throw null; }
public override void Initialize() { }
}
public sealed partial class SHA384Cng : System.Security.Cryptography.SHA384
{
public SHA384Cng() { }
protected override void Dispose(bool disposing) { }
protected override void HashCore(byte[] array, int ibStart, int cbSize) { }
protected override byte[] HashFinal() { throw null; }
public override void Initialize() { }
}
public sealed partial class SHA384CryptoServiceProvider : System.Security.Cryptography.SHA384
{
public SHA384CryptoServiceProvider() { }
protected override void Dispose(bool disposing) { }
protected override void HashCore(byte[] array, int ibStart, int cbSize) { }
protected override byte[] HashFinal() { throw null; }
public override void Initialize() { }
}
public sealed partial class SHA512Cng : System.Security.Cryptography.SHA512
{
public SHA512Cng() { }
protected override void Dispose(bool disposing) { }
protected override void HashCore(byte[] array, int ibStart, int cbSize) { }
protected override byte[] HashFinal() { throw null; }
public override void Initialize() { }
}
public sealed partial class SHA512CryptoServiceProvider : System.Security.Cryptography.SHA512
{
public SHA512CryptoServiceProvider() { }
protected override void Dispose(bool disposing) { }
protected override void HashCore(byte[] array, int ibStart, int cbSize) { }
protected override byte[] HashFinal() { throw null; }
public override void Initialize() { }
}
}