Пример #1
0
        public void WriteOrderedEncryptedString(ref SpanWriter outerWriter, EncryptedString value)
        {
            var writer = new SpanWriter();

            writer.WriteString(value);
            var cipher  = _transaction.Owner.GetSymmetricCipher();
            var plain   = writer.GetSpan();
            var encSize = cipher.CalcOrderedEncryptedSizeFor(plain);
            var enc     = new byte[encSize];

            cipher.OrderedEncrypt(plain, enc);
            outerWriter.WriteByteArray(enc);
        }
Пример #2
0
 internal void Save(ref SpanWriter writer)
 {
     writer.WriteString(Name);
     writer.WriteString(Handler !.Name);
     writer.WriteByteArray(Handler.Configuration);
 }