diff --git a/src/interface.c b/src/interface.c index 96d2a4fc6..92342b94b 100644 --- a/src/interface.c +++ b/src/interface.c @@ -384,7 +384,7 @@ static const char SIGNATURE_FORTIGATE[] = "AK1"; static const char SIGNATURE_ATLASSIAN[] = "{PKCS5S2}"; static const char SIGNATURE_NETBSD_SHA1CRYPT[] = "$sha1$"; static const char SIGNATURE_BLAKE2B[] = "$BLAKE2$"; -static const char SIGNATURE_CHACHA20[] = "$ChaCha20$"; +static const char SIGNATURE_CHACHA20[] = "$chacha20$"; static const char SIGNATURE_ETHEREUM_PBKDF2[] = "$ethereum$p"; static const char SIGNATURE_ETHEREUM_SCRYPT[] = "$ethereum$s"; diff --git a/tools/test.pl b/tools/test.pl index fe82d1cf2..9fbdc2972 100755 --- a/tools/test.pl +++ b/tools/test.pl @@ -8584,7 +8584,7 @@ END_CODE my $enc_offset = substr($enc, $offset, 8); $hash_buf = $enc_offset; - $tmp_hash = sprintf ("\$ChaCha20\$\*%s\*%d\*%s\*%s\*%s", $counter, $offset, $iv, unpack("H*", substr($plaintext, $offset, 8)), unpack("H*", $enc_offset)); + $tmp_hash = sprintf ("\$chacha20\$\*%s\*%d\*%s\*%s\*%s", $counter, $offset, $iv, unpack("H*", substr($plaintext, $offset, 8)), unpack("H*", $enc_offset)); } elsif ($mode == 15600) {