Skip to content

Commit

Permalink
lib-dcrypt: change unit test ec curve to secp521r1
Browse files Browse the repository at this point in the history
This curve is more common, so unit tests will pass on more machines.
  • Loading branch information
mrannanj committed Oct 17, 2016
1 parent 46e5bbd commit e13d38a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib-dcrypt/test-crypto.c
Expand Up @@ -597,9 +597,9 @@ void test_get_info_key_encrypted(void) {

struct dcrypt_keypair p1, p2;
const char *error = NULL;
bool ret = dcrypt_keypair_generate(&p1, DCRYPT_KEY_EC, 0, "sect571k1", &error);
bool ret = dcrypt_keypair_generate(&p1, DCRYPT_KEY_EC, 0, "secp521r1", &error);
test_assert(ret == TRUE);
ret = dcrypt_keypair_generate(&p2, DCRYPT_KEY_EC, 0, "sect571k1", &error);
ret = dcrypt_keypair_generate(&p2, DCRYPT_KEY_EC, 0, "secp521r1", &error);
test_assert(ret == TRUE);

string_t* buf = t_str_new(4096);
Expand Down Expand Up @@ -638,7 +638,7 @@ void test_get_info_pw_encrypted(void) {
struct dcrypt_keypair p1;
memset(&p1, 0, sizeof(p1));
const char *error;
bool ret = dcrypt_keypair_generate(&p1, DCRYPT_KEY_EC, 0, "sect571k1", &error);
bool ret = dcrypt_keypair_generate(&p1, DCRYPT_KEY_EC, 0, "secp521r1", &error);
test_assert(ret == TRUE);

string_t* buf = t_str_new(4096);
Expand Down

0 comments on commit e13d38a

Please sign in to comment.