Merge pull request #50 from svbergerem/improve-encryption-docs
Improve encryption documentation
This commit is contained in:
commit
de0f625ac3
1 changed files with 6 additions and 4 deletions
|
|
@ -15,10 +15,10 @@ diaspora\* wraps the Salmon [Magic Envelope][magicsig] into a simple JSON struct
|
|||
}
|
||||
~~~
|
||||
|
||||
| Key | Description |
|
||||
| -------------------------- |-------------------------------------------------------------------------------------------------------------- |
|
||||
| `aes_key` | The [AES Key JSON](#aes-key-json-structure) encrypted with the recipients public key and then base64 encoded. |
|
||||
| `encrypted_magic_envelope` | The [Magic Envelope][magicsig] encrypted with the `aes_key` and then base64 encoded. |
|
||||
| Key | Description |
|
||||
| -------------------------- |------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `aes_key` | The [AES Key JSON](#aes-key-json-structure) encrypted with the recipients public key using RSA and then base64 encoded. |
|
||||
| `encrypted_magic_envelope` | The [Magic Envelope][magicsig] encrypted with the `aes_key` using AES-256-CBC and then base64 encoded. |
|
||||
|
||||
### AES Key JSON structure
|
||||
|
||||
|
|
@ -34,6 +34,8 @@ diaspora\* wraps the Salmon [Magic Envelope][magicsig] into a simple JSON struct
|
|||
| `key` | The base64 encoded AES key. |
|
||||
| `iv` | The base64 encoded AES iv. |
|
||||
|
||||
Both `key` and `id` have to be suitable for AES-256-CBC.
|
||||
|
||||
## Additional information and specifications
|
||||
|
||||
* [Magic Envelope][magicsig]
|
||||
|
|
|
|||
Loading…
Reference in a new issue