ReadContentInfo() private static method

private static ReadContentInfo ( Asn1InputStream aIn ) : ContentInfo
aIn Org.BouncyCastle.Asn1.Asn1InputStream
return Org.BouncyCastle.Asn1.Cms.ContentInfo
 public CmsAuthEnvelopedData(
     Stream authEnvData)
     : this(CmsUtilities.ReadContentInfo(authEnvData))
 {
 }
Exemplo n.º 2
0
 public CmsEnvelopedData(
     byte[] envelopedData)
     : this(CmsUtilities.ReadContentInfo(envelopedData))
 {
 }
Exemplo n.º 3
0
 public CmsEnvelopedData(
     Stream envelopedData)
     : this(CmsUtilities.ReadContentInfo(envelopedData))
 {
 }
Exemplo n.º 4
0
 public CmsCompressedData(
     Stream compressedDataStream)
     : this(CmsUtilities.ReadContentInfo(compressedDataStream))
 {
 }
Exemplo n.º 5
0
 public CmsAuthenticatedData(
     Stream authData)
     : this(CmsUtilities.ReadContentInfo(authData))
 {
 }
Exemplo n.º 6
0
 /**
  * Content with detached signature, digests precomputed
  *
  * @param hashes a map of precomputed digests for content indexed by name of hash.
  * @param sigBlock the signature object.
  */
 public CmsSignedData(
     IDictionary hashes,
     byte[]          sigBlock)
     : this(hashes, CmsUtilities.ReadContentInfo(sigBlock))
 {
 }
Exemplo n.º 7
0
 public CmsCompressedData(
     byte[] compressedData)
     : this(CmsUtilities.ReadContentInfo(compressedData))
 {
 }
Exemplo n.º 8
0
 public CmsSignedData(
     byte[] sigBlock)
     : this(CmsUtilities.ReadContentInfo(new MemoryStream(sigBlock, false)))
 {
 }
Exemplo n.º 9
0
 public CmsSignedData(
     CmsProcessable signedContent,
     byte[]                  sigBlock)
     : this(signedContent, CmsUtilities.ReadContentInfo(new MemoryStream(sigBlock, false)))
 {
 }
Exemplo n.º 10
0
 /**
  * base constructor - content with detached signature.
  *
  * @param signedContent the content that was signed.
  * @param sigData the signature object.
  */
 public CmsSignedData(
     CmsProcessable signedContent,
     Stream sigData)
     : this(signedContent, CmsUtilities.ReadContentInfo(sigData))
 {
 }
Exemplo n.º 11
0
 /**
  * base constructor - with encapsulated content
  */
 public CmsSignedData(
     Stream sigData)
     : this(CmsUtilities.ReadContentInfo(sigData))
 {
 }
Exemplo n.º 12
0
 internal static ContentInfo ReadContentInfo(Stream input)
 {
     return(CmsUtilities.ReadContentInfo(new Asn1InputStream(input, CmsUtilities.MaximumMemory)));
 }
Exemplo n.º 13
0
 internal static ContentInfo ReadContentInfo(byte[] input)
 {
     return(CmsUtilities.ReadContentInfo(new Asn1InputStream(input)));
 }
Exemplo n.º 14
0
 /// <summary>
 /// Stream constructor - with detached signature.
 /// </summary>
 /// <param name="signedContent">The content that was signed.</param>
 /// <param name="sigData">A stream representing a ContentInfo containing a signedData object.</param>
 public CmsSignedData(
     ICmsTypedData signedContent,
     Stream sigData)
     : this(signedContent, CmsUtilities.ReadContentInfo(sigData))
 {
 }
Exemplo n.º 15
0
 /// <summary>
 /// Content with detached signature, digests precomputed in hashes.
 /// </summary>
 /// <param name="hashes">A map of precomputed digests for content indexed by name of hash.</param>
 /// <param name="sigBlock">The content info signature object.</param>
 public CmsSignedData(
     IDictionary <DerObjectIdentifier, byte[]> hashes,
     byte[]          sigBlock)
     : this(hashes, CmsUtilities.ReadContentInfo(sigBlock))
 {
 }
Exemplo n.º 16
0
        }        //IL_0003: Unknown result type (might be due to invalid IL or missing references)

        //IL_000d: Expected O, but got Unknown


        public CmsSignedData(CmsProcessable signedContent, byte[] sigBlock)
            : this(signedContent, CmsUtilities.ReadContentInfo((Stream) new MemoryStream(sigBlock, false)))
        {
        }        //IL_0004: Unknown result type (might be due to invalid IL or missing references)