summaryrefslogtreecommitdiff
path: root/eddsa-sign.c
diff options
context:
space:
mode:
authorNiels Möller <nisse@lysator.liu.se>2020-01-02 22:58:07 +0100
committerNiels Möller <nisse@lysator.liu.se>2020-01-02 22:58:07 +0100
commit1e3410359ec202203abbc2cf06f774c5ff88e82f (patch)
tree4907c2da5a91931abf19e921de6adfc9591e6554 /eddsa-sign.c
parenta148ed32b381a6294d0fcbd58e7198532c1bc709 (diff)
downloadnettle-1e3410359ec202203abbc2cf06f774c5ff88e82f.tar.gz
Use function pointer to represent eddsa dom prefix.
Diffstat (limited to 'eddsa-sign.c')
-rw-r--r--eddsa-sign.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/eddsa-sign.c b/eddsa-sign.c
index a5970e98..05277064 100644
--- a/eddsa-sign.c
+++ b/eddsa-sign.c
@@ -75,7 +75,7 @@ _eddsa_sign (const struct ecc_curve *ecc,
size = ecc->p.size;
nbytes = 1 + ecc->p.bit_size / 8;
- eddsa->update (ctx, eddsa->dom_size, eddsa->dom);
+ eddsa->dom (ctx);
eddsa->update (ctx, nbytes, k1);
eddsa->update (ctx, length, msg);
eddsa->digest (ctx, 2*nbytes, hash);
@@ -84,7 +84,7 @@ _eddsa_sign (const struct ecc_curve *ecc,
ecc->mul_g (ecc, P, rp, scratch_out);
_eddsa_compress (ecc, signature, P, scratch_out);
- eddsa->update (ctx, eddsa->dom_size, eddsa->dom);
+ eddsa->dom (ctx);
eddsa->update (ctx, nbytes, signature);
eddsa->update (ctx, nbytes, pub);
eddsa->update (ctx, length, msg);