15 references to Instance
System.Security.Cryptography.Pkcs (15)
Internal\Cryptography\PkcsHelpers.cs (2)
171
PkcsPal.
Instance
.GetSubjectKeyIdentifier(recipient.Certificate);
265
byte[] candidateSki = PkcsPal.
Instance
.GetSubjectKeyIdentifier(cert);
System\Security\Cryptography\Pkcs\CmsSignature.cs (1)
163
PkcsPal.
Instance
.GetPrivateKeyForSigning<T>(certificate, silent) ?? getCertPublicKey(certificate);
System\Security\Cryptography\Pkcs\CmsSigner.cs (1)
366
newSignerInfo.Sid.SubjectKeyIdentifier = PkcsPal.
Instance
.GetSubjectKeyIdentifier(Certificate!);
System\Security\Cryptography\Pkcs\ContentInfo.cs (2)
39
return PkcsPal.
Instance
.GetEncodedMessageType(encodedMessage);
45
return PkcsPal.
Instance
.GetEncodedMessageType(encodedMessage);
System\Security\Cryptography\Pkcs\EnvelopedCms.cs (8)
68
throw PkcsPal.
Instance
.CreateRecipientInfosAfterEncryptException();
105
_encodedMessage = PkcsPal.
Instance
.Encrypt(recipients, ContentInfo, ContentEncryptionAlgorithm, Certificates, UnprotectedAttributes);
157
_decryptorPal = PkcsPal.
Instance
.Decode(encodedMessage, out version, out contentInfo, out contentEncryptionAlgorithm, out originatorCerts, out unprotectedAttributes);
245
PkcsPal.
Instance
.AddCertsFromStoreForDecryption(certs);
251
Exception? exception = PkcsPal.
Instance
.CreateRecipientsNotFoundException();
257
exception = PkcsPal.
Instance
.CreateRecipientsNotFoundException();
289
throw PkcsPal.
Instance
.CreateDecryptAfterEncryptException();
292
throw PkcsPal.
Instance
.CreateDecryptTwiceException();
System\Security\Cryptography\Pkcs\SubjectIdentifier.cs (1)
124
byte[] candidateSki = PkcsPal.
Instance
.GetSubjectKeyIdentifier(certificate);