common: make sphinx.c use hmac.c.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell
2020-03-20 11:59:24 +10:30
parent b122e44a0b
commit 8c984fbf1d
7 changed files with 61 additions and 73 deletions

View File

@@ -287,7 +287,9 @@ static void runtest(const char *filename)
printf(" Type: %d\n", type);
printf(" Payload: %s\n", tal_hex(ctx, step->raw_payload));
printf(" Next onion: %s\n", tal_hex(ctx, serialized));
printf(" Next HMAC: %s\n", tal_hexstr(ctx, step->next->mac, HMAC_SIZE));
printf(" Next HMAC: %s\n",
tal_hexstr(ctx, step->next->hmac.bytes,
crypto_auth_hmacsha256_BYTES));
}
tal_free(ctx);