> So, it sounds like the way to go is to have a Storable.Client-data which
> would be presumably a Base64 string-encoding of an encrypted byte array.
> 
> Should it decrypt to a (alphabetized) FieldSet or to a binary structure?
> 
> #1: decrypts to --
>         Metadata-length=<hex>
>         Symmetric-key=<hex>
>         End
> #2: decrypts to --
>         <2 bytes crypto key length><crypto key><8 bytes metadata length>

Definitely #1.
You can't put symmetric-key in this field, however, for obvious reasons.

> 
> Either way we can pad it to a decent length by repeating some hash
> function of the data.
Thats not necessary, you can just throw random bytes in the message's
trailing field.

PGP signature

Reply via email to