private RsaPublicKeyStructure( Asn1Sequence seq) { if (seq.Count != 2) throw new ArgumentException("Bad sequence size: " + seq.Count); // Note: we are accepting technically incorrect (i.e. negative) values here modulus = DerInteger.GetInstance(seq[0]).PositiveValue; publicExponent = DerInteger.GetInstance(seq[1]).PositiveValue; }