mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-04-08 04:14:13 +02:00
Update content/client-server-api/modules/end_to_end_encryption.md
Co-authored-by: Denis Kasak <dkasak@termina.org.uk>
This commit is contained in:
parent
3e2b8ffc0b
commit
0b967c337b
|
|
@ -270,9 +270,9 @@ key, and encrypts the file using AES-CTR. The counter is 64 bits long,
|
||||||
starting at 0 and prefixed by a random 64-bit Initialization Vector (IV),
|
starting at 0 and prefixed by a random 64-bit Initialization Vector (IV),
|
||||||
which together form a 128-bit unique counter block.
|
which together form a 128-bit unique counter block.
|
||||||
|
|
||||||
Clients MUST generate both the AES key and IV using a secure random
|
Clients MUST generate both the AES key and IV using a cryptographically
|
||||||
source and MUST NOT use the same key or IV multiple times. The latter
|
secure random source and MUST NOT use the same key or IV multiple
|
||||||
64 bits of the 128-bit counter block MUST start at zero.
|
times. The latter 64 bits of the 128-bit counter block MUST start at zero.
|
||||||
|
|
||||||
{{% boxes/warning %}}
|
{{% boxes/warning %}}
|
||||||
An IV must never be used multiple times with the same key. This implies
|
An IV must never be used multiple times with the same key. This implies
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue