Browse Source

Fixed bug in tagging code (used in the generation of the Slitheen ID)

cecylia 6 years ago
parent
commit
552c2dc325
1 changed files with 1 additions and 1 deletions
  1. 1 1
      client/tagging.c

+ 1 - 1
client/tagging.c

@@ -74,7 +74,7 @@ static void gen_tag(byte *tag, byte stored_key[16],
 
     /* Create the tag hash keys */
     memmove(sharedsec+PTWIST_BYTES, context, context_len);
-    SHA256(sharedsec, PTWIST_BYTES, taghashout);
+    SHA256(sharedsec, PTWIST_BYTES + context_len, taghashout);
 
 #if PTWIST_PUZZLE_STRENGTH > 0
     /* The puzzle is to find a response R such that SHA256(K || R)