X-Git-Url: http://git.meshlink.io/?a=blobdiff_plain;ds=sidebyside;f=src%2Fed25519%2Fadd_scalar.c;h=37fed7b08e493ea95835395d38f7e1675588cdd4;hb=fe7be9e345bcc652914ef6fc51302da13d4c9c8d;hp=262ec725119035986fba7ee6b409c1d8c7cb0ed8;hpb=f619a7412c1aeebcdeb98cb95244a9eed5d9b537;p=meshlink diff --git a/src/ed25519/add_scalar.c b/src/ed25519/add_scalar.c index 262ec725..37fed7b0 100644 --- a/src/ed25519/add_scalar.c +++ b/src/ed25519/add_scalar.c @@ -30,9 +30,9 @@ void ed25519_add_scalar(unsigned char *public_key, unsigned char *private_key, c /* public key: A = nB + T */ if (public_key) { /* if we know the private key we don't need a point addition, which is faster */ - /* using a "timing attack" you could find out wether or not we know the private + /* using a "timing attack" you could find out whether or not we know the private key, but this information seems rather useless - if this is important pass - public_key and private_key seperately in 2 function calls */ + public_key and private_key separately in 2 function calls */ if (private_key) { ge_scalarmult_base(&A, private_key); } else {