Remove a test that doesn't make sense
This commit is contained in:
parent
97e6f73230
commit
d8c36842eb
@ -1,25 +1,6 @@
|
|||||||
#define TEST_NAME "core_ed25519"
|
#define TEST_NAME "core_ed25519"
|
||||||
#include "cmptest.h"
|
#include "cmptest.h"
|
||||||
|
|
||||||
static void
|
|
||||||
add_l(unsigned char * const S)
|
|
||||||
{
|
|
||||||
static const unsigned char l[32] =
|
|
||||||
{ 0xed, 0xd3, 0xf5, 0x5c, 0x1a, 0x63, 0x12, 0x58,
|
|
||||||
0xd6, 0x9c, 0xf7, 0xa2, 0xde, 0xf9, 0xde, 0x14,
|
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
|
|
||||||
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x10 };
|
|
||||||
unsigned char c = 0U;
|
|
||||||
unsigned int i;
|
|
||||||
unsigned int s;
|
|
||||||
|
|
||||||
for (i = 0U; i < 32U; i++) {
|
|
||||||
s = S[i] + l[i] + c;
|
|
||||||
S[i] = (unsigned char) s;
|
|
||||||
c = (s >> 8) & 1;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
int
|
int
|
||||||
main(void)
|
main(void)
|
||||||
{
|
{
|
||||||
@ -82,8 +63,6 @@ main(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
assert(crypto_core_ed25519_is_valid_point(p) == 1);
|
assert(crypto_core_ed25519_is_valid_point(p) == 1);
|
||||||
add_l(p);
|
|
||||||
assert(crypto_core_ed25519_is_valid_point(p) == 0);
|
|
||||||
|
|
||||||
memset(p, 0, crypto_core_ed25519_BYTES);
|
memset(p, 0, crypto_core_ed25519_BYTES);
|
||||||
assert(crypto_core_ed25519_is_valid_point(p) == 0);
|
assert(crypto_core_ed25519_is_valid_point(p) == 0);
|
||||||
|
Loading…
Reference in New Issue
Block a user