Exemple #1
0
 private void Decode()
 {
     if (this.RawData.Length < 2 || (int)this.RawData[1] != this.RawData.Length - 2)
     {
         throw new CryptographicException(-2146885630);
     }
     if ((int)this.RawData[0] != 6)
     {
         throw new CryptographicException(-2146881269);
     }
     this.m_contentType = new Oid(PkcsUtils.DecodeObjectIdentifier(this.RawData, 2));
     this.m_decoded     = true;
 }