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); }
internal void Save(ref SpanWriter writer) { writer.WriteString(Name); writer.WriteString(Handler !.Name); writer.WriteByteArray(Handler.Configuration); }