diff --git a/src/common/crypto.c b/src/common/crypto.c
index 380dcf0abc..41f81ebd77 100644
--- a/src/common/crypto.c
+++ b/src/common/crypto.c
@@ -1716,8 +1716,8 @@ crypto_hmac_sha1(char *hmac_out,
}
/** Compute the HMAC-SHA-256 of the msg_len bytes in msg, using
- * the key of length key_len. Store the DIGEST_LEN-byte result
- * in hmac_out.
+ * the key of length key_len. Store the DIGEST256_LEN-byte
+ * result in hmac_out.
*/
void
crypto_hmac_sha256(char *hmac_out,