Browse code

Update tbshash to have enough space for SHA512 hashes

Andrew authored on 2018/09/14 04:00:34
Showing 1 changed files
... ...
@@ -41,7 +41,7 @@ typedef struct cli_crt_t {
41 41
     /* tbshash holds the hash we'll use for verification with data in the sig,
42 42
      * so it must have at least enough space for the largest hash in
43 43
      * cli_crt_hashtype */
44
-    uint8_t tbshash[SHA384_HASH_SIZE];
44
+    uint8_t tbshash[SHA512_HASH_SIZE];
45 45
     mp_int n;
46 46
     mp_int e;
47 47
     mp_int sig;