add 'decryption-nonce'

This commit is contained in:
water 2024-10-12 18:19:48 +08:00 committed by GitHub
parent deb9a6357b
commit 51389571bc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

4
17.md
View File

@ -50,7 +50,8 @@ Kind `14`s MUST never be signed. If it is signed, the message might leak to rela
["subject", "<conversation-title>"], ["subject", "<conversation-title>"],
["file-type", "<file-mime-type>"], ["file-type", "<file-mime-type>"],
["encryption-algorithm", "<encryption-algorithm>"], ["encryption-algorithm", "<encryption-algorithm>"],
["decryption-key", "<decryption-key>"] ["decryption-key", "<decryption-key>"],
["decryptiion-nonce", "<decryption-nonce>"],
// rest of tags... // rest of tags...
], ],
"content": "<file-url-or-base64-content-in-plain-text>" "content": "<file-url-or-base64-content-in-plain-text>"
@ -62,6 +63,7 @@ Kind 15 is used for sending encrypted file event messages:
- `file-type`: Specifies the MIME type of the attached file (e.g., `image/jpeg`, `audio/mpeg`, etc.). - `file-type`: Specifies the MIME type of the attached file (e.g., `image/jpeg`, `audio/mpeg`, etc.).
- `encryption-algorithm`: Indicates the encryption algorithm used for encrypting the file. Supported algorithms may include `aes-gcm`, `chacha20-poly1305`,`aes-cbc` etc. - `encryption-algorithm`: Indicates the encryption algorithm used for encrypting the file. Supported algorithms may include `aes-gcm`, `chacha20-poly1305`,`aes-cbc` etc.
- `decryption-key`: The decryption key that will be used by the recipient to decrypt the file. - `decryption-key`: The decryption key that will be used by the recipient to decrypt the file.
- `decryption-nonce`: The decryption nonce that will be used by the recipient to decrypt the file.
- `content`: Contains either the URL of the file (`<file-url>`) or the encrypted data in base64 format (`<base64-content-in-plain-text>`). - `content`: Contains either the URL of the file (`<file-url>`) or the encrypted data in base64 format (`<base64-content-in-plain-text>`).
## Chat Rooms ## Chat Rooms