fix EdDSA auth
This commit is contained in:
@@ -1,3 +1,7 @@
|
|||||||
|
2015-03-06 Niibe Yutaka <gniibe@fsij.org>
|
||||||
|
|
||||||
|
* src/ecc-edwards.c (eddsa_sign_25519): Return 0.
|
||||||
|
|
||||||
2015-02-25 Niibe Yutaka <gniibe@fsij.org>
|
2015-02-25 Niibe Yutaka <gniibe@fsij.org>
|
||||||
|
|
||||||
* src/openpgp.c (cmd_internal_authenticate): Fix storing to
|
* src/openpgp.c (cmd_internal_authenticate): Fix storing to
|
||||||
|
|||||||
@@ -660,7 +660,7 @@ mod_reduce_M (bn256 *R, const bn512 *A)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void
|
int
|
||||||
eddsa_sign_25519 (const uint8_t *input, size_t ilen, uint32_t *out,
|
eddsa_sign_25519 (const uint8_t *input, size_t ilen, uint32_t *out,
|
||||||
const bn256 *a, const uint8_t *seed, const bn256 *pk)
|
const bn256 *a, const uint8_t *seed, const bn256 *pk)
|
||||||
{
|
{
|
||||||
@@ -704,6 +704,8 @@ eddsa_sign_25519 (const uint8_t *input, size_t ilen, uint32_t *out,
|
|||||||
bn256_add (s, s, M);
|
bn256_add (s, s, M);
|
||||||
else
|
else
|
||||||
bn256_add (tmp, s, M);
|
bn256_add (tmp, s, M);
|
||||||
|
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|||||||
Reference in New Issue
Block a user