Commit 90d4a864 authored by Niels Möller's avatar Niels Möller

* testsuite/dsa-test.c (test_main): Updated to changes of the

private key struct.

Rev: src/nettle/testsuite/dsa-test.c:1.2
parent c88f1121
...@@ -4,27 +4,29 @@ int ...@@ -4,27 +4,29 @@ int
test_main(void) test_main(void)
{ {
#if WITH_PUBLIC_KEY #if WITH_PUBLIC_KEY
struct dsa_public_key pub;
struct dsa_private_key key; struct dsa_private_key key;
dsa_public_key_init(&pub);
dsa_private_key_init(&key); dsa_private_key_init(&key);
mpz_set_str(key.pub.p, mpz_set_str(pub.p,
"83d9a7c2ce2a9179f43cdb3bffe7de0f0eef26dd5dfae44d" "83d9a7c2ce2a9179f43cdb3bffe7de0f0eef26dd5dfae44d"
"531bc0de45634d2c07cb929b0dbe10da580070e6abfbb841" "531bc0de45634d2c07cb929b0dbe10da580070e6abfbb841"
"5c44bff570b8ad779df653aad97dc7bdeb815d7e88103e61" "5c44bff570b8ad779df653aad97dc7bdeb815d7e88103e61"
"606ed3d8a295fbfd340d2d49e220833ebace5511e22c4f02" "606ed3d8a295fbfd340d2d49e220833ebace5511e22c4f02"
"97ed351e9948fa848e9c8fadb7b47bcc47def4255b5e1d5e" "97ed351e9948fa848e9c8fadb7b47bcc47def4255b5e1d5e"
"10215b3b55a0b85f", 16); "10215b3b55a0b85f", 16);
mpz_set_str(key.pub.q, mpz_set_str(pub.q,
"8266e0deaf46020ba48d410ca580f3a978629b5d", 16); "8266e0deaf46020ba48d410ca580f3a978629b5d", 16);
mpz_set_str(key.pub.g, mpz_set_str(pub.g,
"30d34bb9f376bec947154afe4076bc7d359c9d32f5471ddb" "30d34bb9f376bec947154afe4076bc7d359c9d32f5471ddb"
"be8d6a941c47fa9dc4f32573151dbb4aa59eb989b74ac36b" "be8d6a941c47fa9dc4f32573151dbb4aa59eb989b74ac36b"
"b6310a5e8b580501655d91f393daa193ae1303049b87febb" "b6310a5e8b580501655d91f393daa193ae1303049b87febb"
"093dc0404b53b4c5da2463300f9c5b156d788c4ace8ecbb9" "093dc0404b53b4c5da2463300f9c5b156d788c4ace8ecbb9"
"dd00c18d99537f255ac025d074d894a607cbe3023a1276ef" "dd00c18d99537f255ac025d074d894a607cbe3023a1276ef"
"556916a33f7de543", 16); "556916a33f7de543", 16);
mpz_set_str(key.pub.y, mpz_set_str(pub.y,
"64402048b27f39f404a546a84909c9c0e9e2dd153a849946" "64402048b27f39f404a546a84909c9c0e9e2dd153a849946"
"1062892598d30af27ae3cefc2b700fb6d077390a83bdcad7" "1062892598d30af27ae3cefc2b700fb6d077390a83bdcad7"
"8a1299487c9623bb62af0c85a3df9ef1ee2c0d66658e1fd3" "8a1299487c9623bb62af0c85a3df9ef1ee2c0d66658e1fd3"
...@@ -34,8 +36,9 @@ test_main(void) ...@@ -34,8 +36,9 @@ test_main(void)
mpz_set_str(key.x, mpz_set_str(key.x,
"56c6efaf878d06eef21dc070fab71da6ec1e30a6", 16); "56c6efaf878d06eef21dc070fab71da6ec1e30a6", 16);
test_dsa(&key); test_dsa(&pub, &key);
dsa_public_key_clear(&pub);
dsa_private_key_clear(&key); dsa_private_key_clear(&key);
SUCCESS(); SUCCESS();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment