3 writes to ContentInfo
System.Security.Cryptography.Pkcs (3)
System\Security\Cryptography\Pkcs\SignedCms.cs (3)
68
ContentInfo
= contentInfo;
200
ContentInfo
= new ContentInfo(new Oid(_contentType), contentValue.ToArray());
460
ContentInfo
= save;
13 references to ContentInfo
Microsoft.DotNet.SignCheckLibrary (5)
Verification\AuthentiCode.cs (4)
40
if (signedCms.
ContentInfo
.ContentType.Value != WinCrypt.SPC_INDIRECT_DATA_OBJID)
42
throw new CryptographicException($"Invalid content type: {signedCms.
ContentInfo
.ContentType.Value}");
160
if (String.Equals(rfc3161Message.
ContentInfo
.ContentType.Value, WinCrypt.szOID_TIMESTAMP_TOKEN, StringComparison.OrdinalIgnoreCase))
162
var timestampToken = NuGet.Packaging.Signing.TstInfo.Read(rfc3161Message.
ContentInfo
.Content);
Verification\Jar\JarSignatureFile.cs (1)
264
TstInfo timestampToken = TstInfo.Read(timestampCms.
ContentInfo
.Content);
System.Security.Cryptography.Pkcs (8)
System\Security\Cryptography\Pkcs\Rfc3161TimestampToken.cs (2)
332
if (cms.
ContentInfo
.ContentType.Value != Oids.TstInfo)
393
if (Rfc3161TimestampTokenInfo.TryDecode(cms.
ContentInfo
.Content, out Rfc3161TimestampTokenInfo? tokenInfo, out _))
System\Security\Cryptography\Pkcs\SignedCms.cs (6)
205
_heldContent =
ContentInfo
.Content.CloneByteArray();
296
if (
ContentInfo
.Content.Length == 0)
329
ReadOnlyMemory<byte> content = _heldContent ??
ContentInfo
.Content;
330
string contentType = _contentType ??
ContentInfo
.ContentType.Value ?? Oids.Pkcs7Data;
443
ContentInfo save =
ContentInfo
;
477
if ((_contentType ??
ContentInfo
.ContentType.Value) != Oids.Pkcs7Data)