26 public PKCS12(
byte[] data,
string password)
33 public PKCS12(
byte[] data,
byte[] password)
61 if (
asn2.elist !=
null)
175 if (safeBags !=
null)
210 if (this.
_rng ==
null)
299 if (enumerator !=
null)
313 bool flag =
algorithm ==
"1.2.840.113549.1.1.1";
340 if (attributes !=
null)
342 if (attributes !=
null)
346 if (attributes ==
null || attributes ==
null)
360 if (attributes !=
null)
362 if (attributes !=
null)
366 if (attributes ==
null || attributes ==
null)
380 if (attributes !=
null)
382 if (attributes !=
null)
386 if (attributes ==
null || attributes ==
null)
400 if (attributes !=
null)
402 if (attributes !=
null)
406 if (attributes ==
null || attributes ==
null)
530 if (
"UI.SpawnPoint" !=
null)
557 if (
"1.2.840.113549.1.7.1" !=
null)
659 if (
"1.2.840.113549.1.12.10.1.3" !=
null)
679 if (safeBags2 !=
null)
693 if (
asn3.elist !=
null)
723 if (safeBags2 !=
null)
737 if (safeBags2 !=
null)
756 if (safeBags2 !=
null)
770 if (safeBags2 !=
null)
789 if (safeBags2 !=
null)
803 if (safeBags2 !=
null)
816 if (safeBags !=
null)
822 if (
asn.elist !=
null)
832 if (
asn3.elist !=
null)
836 if (
asn3.elist !=
null)
840 if (attrs ==
null || attrs ==
null)
844 if (
asn3.elist !=
null)
848 if (
asn.elist !=
null)
882 if (
asn.elist !=
null)
892 if (
asn3.elist !=
null)
896 if (
asn3.elist !=
null)
905 if (
asn.elist !=
null)
922 if (
asn.elist !=
null)
932 if (
asn3.elist !=
null)
936 if (
asn3.elist !=
null)
944 if (
asn3.elist !=
null)
948 if (
asn.elist !=
null)
990 if (
asn2.elist !=
null)
999 if (
asn4.elist !=
null)
1014 if (safeBags !=
null)
1027 if (
asn3.elist !=
null)
1036 if (
asn5.elist !=
null)
1057 if (filename !=
null)
1198 public const string keyBag =
"1.2.840.113549.1.12.10.1.1";
1204 public const string certBag =
"1.2.840.113549.1.12.10.1.3";
1207 public const string crlBag =
"1.2.840.113549.1.12.10.1.4";
1210 public const string secretBag =
"1.2.840.113549.1.12.10.1.5";
1222 public const string x509Crl =
"1.2.840.113549.1.9.23.1";
1310 if (obj ==
null ||
obj !=
null)
1346 if (obj ==
null ||
obj !=
null)
1384 if (salt !=
null &&
salt !=
null)
1392 if (password !=
null && password !=
null)
1394 if (password !=
null)
1405 if (this._iterations != 0)
class f__AnonymousType0<< Count > j__TPar
static string ToOid(ASN1 asn1)
static int ToInt32(ASN1 asn1)
static ASN1 FromOid(string oid)
static HashAlgorithm CreateFromName(string name)
static RSA DecodeRSA(byte[] keypair)
byte[] Derive(byte[] diversifier, int n)
void Adjust(byte[] a, int aOff, byte[] b)
byte[] DeriveKey(int size)
static byte[] keyDiversifier
static byte[] macDiversifier
byte[] DeriveIV(int size)
byte[] DeriveMAC(int size)
static byte[] ivDiversifier
DSAParameters GetExistingParameters([Out] bool found)
ASN1 Pkcs8ShroudedKeyBagSafeBag(AsymmetricAlgorithm aa, IDictionary attributes)
void RemoveCertificate(X509Certificate cert)
void AddPkcs8ShroudedKeyBag(AsymmetricAlgorithm aa, IDictionary attributes)
byte[] MAC(byte[] password, byte[] salt, int iterations, byte[] data)
void RemoveCertificate(X509Certificate cert, IDictionary attrs)
ASN1 SecretBagSafeBag(byte[] secret, IDictionary attributes)
byte[] GetSecret(IDictionary attrs)
const string x509Certificate
void RemoveSecretBag(byte[] secret)
byte[] Encrypt(string algorithmOid, byte[] salt, int iterationCount, byte[] data)
void AddSecretBag(byte[] secret, IDictionary attributes)
void SaveToFile(string filename)
void ReadSafeBag(ASN1 safeBag)
byte[] Decrypt(string algorithmOid, byte[] salt, int iterationCount, byte[] encryptedData)
void AddCertificate(X509Certificate cert, IDictionary attributes)
const int CryptoApiPasswordLimit
ASN1 CertificateSafeBag(X509Certificate x509, IDictionary attributes)
IDictionary GetAttributes(AsymmetricAlgorithm aa)
AsymmetricAlgorithm GetAsymmetricAlgorithm(IDictionary attrs)
IDictionary GetAttributes(X509Certificate cert)
void AddKeyBag(AsymmetricAlgorithm aa)
PKCS12(byte[] data, string password)
RandomNumberGenerator _rng
void AddCertificate(X509Certificate cert)
const string pbeWithSHAAnd3KeyTripleDESCBC
SymmetricAlgorithm GetSymmetricAlgorithm(string algorithmOid, byte[] salt, int iterationCount)
const int recommendedIterationCount
void AddPrivateKey(PKCS8.PrivateKeyInfo pki)
bool CompareAsymmetricAlgorithm(AsymmetricAlgorithm a1, AsymmetricAlgorithm a2)
bool Compare(byte[] expected, byte[] actual)
const string pbeWithSHAAnd128BitRC2CBC
RandomNumberGenerator RNG
void AddKeyBag(AsymmetricAlgorithm aa, IDictionary attributes)
const string pbeWithSHAAnd128BitRC4
PKCS7.ContentInfo EncryptedContentInfo(ASN1 safeBags, string algorithmOid)
static int MaximumPasswordLength
const string safeContentsBag
void RemoveKeyBag(AsymmetricAlgorithm aa)
X509CertificateCollection Certificates
PKCS12(byte[] data, byte[] password)
void AddPkcs8ShroudedKeyBag(AsymmetricAlgorithm aa)
const string pbeWithSHAAnd40BitRC4
static PKCS12 LoadFromFile(string filename)
X509CertificateCollection _certs
const string pbeWithSHAAnd40BitRC2CBC
const string pbeWithSHAAnd2KeyTripleDESCBC
byte[] Decrypt(PKCS7.EncryptedData ed)
void RemovePkcs8ShroudedKeyBag(AsymmetricAlgorithm aa)
const string pkcs8ShroudedKeyBag
ASN1 KeyBagSafeBag(AsymmetricAlgorithm aa, IDictionary attributes)
const string sdsiCertificate
void AddSecretBag(byte[] secret)
static PKCS12 LoadFromFile(string filename, string password)
static int password_max_length
static byte[] LoadFile(string filename)
X509Certificate GetCertificate(IDictionary attrs)
bool IEnumerator. MoveNext()
new X509CertificateCollection.X509CertificateEnumerator GetEnumerator()
static ArrayList ReadOnly(ArrayList list)
static FileStream Create(string path)
int TransformBlock(byte[] inputBuffer, int inputOffset, int inputCount, byte[] outputBuffer, int outputOffset)
byte[] ComputeHash(byte[] buffer)
static RandomNumberGenerator Create()
static SymmetricAlgorithm Create()