1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2024-11-18 21:48:13 +00:00

fix(crypto): fix argument type of ed25519_hram()

This commit is contained in:
Ondřej Vejpustek 2021-09-01 12:20:13 +02:00
parent 08609cf9a1
commit 10bc747dc6

View File

@ -31,10 +31,10 @@ ed25519_extsk(hash_512bits extsk, const ed25519_secret_key sk) {
}
static void
ed25519_hram(hash_512bits hram, const ed25519_signature RS, const ed25519_public_key pk, const unsigned char *m, size_t mlen) {
ed25519_hram(hash_512bits hram, const ed25519_public_key R, const ed25519_public_key pk, const unsigned char *m, size_t mlen) {
ed25519_hash_context ctx;
ed25519_hash_init(&ctx);
ed25519_hash_update(&ctx, RS, 32);
ed25519_hash_update(&ctx, R, 32);
ed25519_hash_update(&ctx, pk, 32);
ed25519_hash_update(&ctx, m, mlen);
ed25519_hash_final(&ctx, hram);