Пример #1
0
 public static RSAParameters GetRSAPublicKeyParameters(byte[] bytes, int i)
 {
     SequenceContainer seq = new SequenceContainer(bytes, i);
     IntegerContainer modContainer = new IntegerContainer(seq.Bytes, 0);
     IntegerContainer expContainer = new IntegerContainer(seq.Bytes, modContainer.Offset);
     return LoadKeyData(modContainer.Bytes, 0, modContainer.Bytes.Length, expContainer.Bytes, 0, expContainer.Bytes.Length);
 }
Пример #2
0
        public static RSAParameters GetRSAPublicKeyParameters(byte[] bytes, int i)
        {
            SequenceContainer seq          = new SequenceContainer(bytes, i);
            IntegerContainer  modContainer = new IntegerContainer(seq.Bytes, 0);
            IntegerContainer  expContainer = new IntegerContainer(seq.Bytes, modContainer.Offset);

            return(LoadKeyData(modContainer.Bytes, 0, modContainer.Bytes.Length, expContainer.Bytes, 0, expContainer.Bytes.Length));
        }