Anton Vladimirov

Results 3 issues of Anton Vladimirov

``` var p7b = File.ReadAllBytes(path); var cmsSignedData = new Org.BouncyCastle.Cms.CmsSignedData(p7b); ``` System.InvalidCastException: Unable to cast object of type 'Org.BouncyCastle.Asn1.DerSequence' to type 'Org.BouncyCastle.Asn1.Asn1OctetString'. at Org.BouncyCastle.Cms.CmsSignedData..ctor(ContentInfo sigData) in /crypto/src/cms/CMSSignedData.cs:line 138 at Org.BouncyCastle.Cms.CmsSignedData..ctor(Byte[]...

https://github.com/bcgit/bc-csharp/blob/42f933608f60af7e9c36ffa3f9150b06b842a6ca/crypto/src/tsp/TSPUtil.cs#L144 But in real life we may encounter with absolutely random sets of KeyUsage and ExtendedKeyUsage attrs. And it is OK for us. How about adding extension points in such...

https://github.com/bcgit/bc-csharp/blob/42f933608f60af7e9c36ffa3f9150b06b842a6ca/crypto/src/cms/SignerInformation.cs#L431 I need to validate a counter sign which is obtained from a time stamp server. Message from it contains a content type field. ``` ... [1] (2 elem) SEQUENCE...