Notes from an IRC conversation between Tavin and myself:

* partSize =  MIN (len (data + padding), MAX (len (data + padding) >>
  7, 16384) )
* to pad data to a power of 2, you repeat the data
* encryption key = make_key ( hash (data + padding) )
* Storable.Document-header = DocHeadData zero padded to power of 2
* DocHeadData = <length of key: 2 bytes><key><length of data: number>
  <length of metadata: number>
* The length of the key MUST equal the keysize of the cipher (e.g. 16
  bytes for a 128-bit cipher)
* DocHeadData number = <length of number: 2 bytes><number: big endian>
  where length is the smallest length that the number will fit into
  subject to: The minumum length is 2 AND The length may not be odd.

AGL

-- 
I never let my schooling get in the way of my education.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 240 bytes
Desc: not available
URL: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20010506/ffdc93ab/attachment.pgp>

Reply via email to