diff options
author | David Goulet <dgoulet@torproject.org> | 2016-11-07 13:15:46 -0500 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-01-11 12:52:34 -0500 |
commit | 870b5e2227c4382aef1d98b1b5fc9d5f4d275c1c (patch) | |
tree | 53a93f934c8c80553e334c5de62a3e54a81a120d /src/common/crypto.h | |
parent | 963e70673a01f0cdea1e5533b02128a84dfaa0d8 (diff) | |
download | tor-870b5e2227c4382aef1d98b1b5fc9d5f4d275c1c.tar.gz tor-870b5e2227c4382aef1d98b1b5fc9d5f4d275c1c.zip |
hs: Use AES-256 for v3 descriptor
That key size is taken from proposal 224 thus specified in the protocol.
Closes #20569
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src/common/crypto.h')
-rw-r--r-- | src/common/crypto.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/common/crypto.h b/src/common/crypto.h index 116e0a62fd..70f6376849 100644 --- a/src/common/crypto.h +++ b/src/common/crypto.h @@ -59,10 +59,12 @@ #define DIGEST256_LEN 32 /** Length of the output of our 64-bit optimized message digests (SHA512). */ #define DIGEST512_LEN 64 -/** Length of our symmetric cipher's keys. */ +/** Length of our symmetric cipher's keys of 128-bit. */ #define CIPHER_KEY_LEN 16 -/** Length of our symmetric cipher's IV. */ +/** Length of our symmetric cipher's IV of 128-bit. */ #define CIPHER_IV_LEN 16 +/** Length of our symmetric cipher's keys of 256-bit. */ +#define CIPHER256_KEY_LEN 32 /** Length of our public keys. */ #define PK_BYTES (1024/8) /** Length of our DH keys. */ |