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