mirror of
https://github.com/nextcloud/desktop.git
synced 2024-10-27 23:17:13 +03:00
[CSE] Cleanup - remove commented metadata.
This commit is contained in:
parent
832cbef8e7
commit
6ad6852045
1 changed files with 0 additions and 38 deletions
|
@ -636,44 +636,6 @@ bool SetEncryptionFlagApiJob::finished()
|
|||
}
|
||||
}
|
||||
|
||||
/* Test metdata:
|
||||
{
|
||||
// Metadata about the share
|
||||
"metadata": {
|
||||
// Encryption algorithm: RSA/ECB/OAEPWithSHA-256AndMGF1Padding, encrypted via private/public key (asymmetric)
|
||||
"metadataKeys": {
|
||||
"0": "OLDESTMETADATAKEY",
|
||||
"2": "…",
|
||||
"3": "NEWESTMETADATAKEY"
|
||||
},
|
||||
// Encryption algorithm: AES/GCM/NoPadding (128 bit key size) with metadata key from above (symmetric)
|
||||
"sharing": {
|
||||
// Name of recipients as well as public keys of the recipients
|
||||
"recipient": {
|
||||
"recipient1@example.com": "PUBLIC KEY",
|
||||
"recipient2@example.com": "PUBLIC KEY"
|
||||
},
|
||||
},
|
||||
"version": 1
|
||||
},
|
||||
// A JSON blob referencing all files
|
||||
"files": {
|
||||
"ia7OEEEyXMoRa1QWQk8r": {
|
||||
// Encryption algorithm: AES/GCM/NoPadding (128 bit key size) with metadata key from above (symmetric)
|
||||
"encrypted": {
|
||||
"key": "jtboLmgGR1OQf2uneqCVHpklQLlIwWL5TXAQ0keK",
|
||||
"filename": "/foo/test.txt",
|
||||
"mimetype": "plain/text",
|
||||
"version": 1
|
||||
},
|
||||
"initializationVector": "+mHu52HyZq+pAAIN",
|
||||
"authenticationTag": "GCM authentication tag",
|
||||
"metadataKey": 1
|
||||
}
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
//TODO: Create an actuall encryption here.
|
||||
auto metadataKeyEnc(const QByteArray& data) -> QByteArray
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue