24 references to PkcsHelpers
System.Security.Cryptography (24)
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Builder.cs (1)
263writer.WriteObjectIdentifierForCrypto(PkcsHelpers.GetOidFromHashAlgorithm(hashAlgorithm));
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12CertBag.cs (2)
62PkcsHelpers.EncodeOctetString(cert.RawData)), 87return X509CertificateLoader.LoadCertificate(PkcsHelpers.DecodeOctetString(_decoded.CertValue));
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12Info.cs (2)
57int firstValueLength = PkcsHelpers.FirstBerValueLength(encodedBytes.Span); 74authSafeBytes = PkcsHelpers.DecodeOctetStringAsMemory(pfx.AuthSafe.Content);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeBag.cs (2)
48PkcsHelpers.EnsureSingleBerValue(encodedBagValue.Span); 86List<AttributeAsn> attrs = PkcsHelpers.BuildAttributes(_attributes);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs12SafeContents.cs (3)
56_bags = ReadBags(PkcsHelpers.DecodeOctetStringAsMemory(contentInfoAsn.Content)); 175PkcsHelpers.EnsureSingleBerValue(secretValue.Span); 346bag.Attributes = PkcsHelpers.MakeAttributeCollection(serializedBags[i].BagAttributes);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs8PrivateKeyInfo.cs (4)
36PkcsHelpers.EnsureSingleBerValue(algorithmParameters.Value.Span); 87PkcsHelpers.MakeAttributeCollection(privateKeyInfo.Attributes)); 253info.Attributes = PkcsHelpers.NormalizeAttributeSet(PkcsHelpers.BuildAttributes(Attributes).ToArray());
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9ContentType.cs (1)
61string contentTypeValue = PkcsHelpers.DecodeOid(rawData);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9DocumentDescription.cs (2)
72byte[] octets = PkcsHelpers.DecodeOctetString(rawData); 81return PkcsHelpers.EncodeOctetString(octets);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9DocumentName.cs (2)
72byte[] octets = PkcsHelpers.DecodeOctetString(rawData); 81return PkcsHelpers.EncodeOctetString(octets);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9LocalKeyId.cs (1)
56return PkcsHelpers.DecodeOctetString(rawData);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9MessageDigest.cs (1)
60return PkcsHelpers.DecodeOctetString(rawData);
src\libraries\Common\src\System\Security\Cryptography\Pkcs\Pkcs9SigningTime.cs (2)
77return PkcsHelpers.DecodeUtcTime(rawData); 82return PkcsHelpers.EncodeUtcTime(signingTime);
System\Security\Cryptography\X509Certificates\UnixExportProvider.cs (1)
149Pkcs12CertBag certBag = new(s_Pkcs12X509CertBagTypeOid, PkcsHelpers.EncodeOctetString(certificatePal.RawData));