EGA-archive / crypt4gh

GA4GH cryptographic tools
http://crypt4gh.readthedocs.io
Apache License 2.0
16 stars 12 forks source link

Updates to Specs, as discussed. #2

Closed AlexanderSenf closed 5 years ago

AlexanderSenf commented 5 years ago

Specific Updates:

Unencrypted header - optionally specify public key of the encrypter (the public key componen of the private key actually used to calculate the X25519 shared key for the header).

Header uses Curve25519 public key encryption scheme, to obtain shared key. Header is encrypted using ChaCha20-ietf-Poly1305. Nonce is prepended, MAC is appended. Header length is retained - based on experiences with previous/current specs, it is wise to be able to make changes to the format without having to change major version number.

Unencrypted data has MD5/SHA256 checksum appended, if specified in the header.

ChaCha20-ietf-Poly1305 encryption for data. Data encrtpted in 64Kb blocks, with nonce prepended, MAC appended to each block.

Tried to update the text to be more clear and specifit.

Changed source formatting to one sentence per line.

silverdaz commented 5 years ago

I think this is outdated, right?

I'm closing it