vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/obsolete.c in rbnacl-libsodium-1.0.7 vs vendor/libsodium/src/libsodium/crypto_sign/ed25519/ref10/obsolete.c in rbnacl-libsodium-1.0.8
- old
+ new
@@ -4,15 +4,13 @@
#include <string.h>
#include "crypto_hash_sha512.h"
#include "crypto_sign_edwards25519sha512batch.h"
#include "crypto_verify_32.h"
-#include "fe.h"
-#include "ge.h"
#include "randombytes.h"
-#include "sc.h"
#include "utils.h"
+#include "../../../crypto_core/curve25519/ref10/curve25519_ref10.h"
int crypto_sign_edwards25519sha512batch_keypair(unsigned char *pk,
unsigned char *sk)
{
ge_p3 A;
@@ -105,9 +103,9 @@
ge_p3_tobytes(t2, &R);
if (crypto_verify_32(t1, t2) != 0) {
return -1;
}
*mlen_p = mlen;
- memmove(m, sm + 64, mlen);
+ memmove(m, sm + 32, mlen);
return 0;
}