YACA: Keep key size in KeyPair 27/86127/2
authorKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Tue, 30 Aug 2016 12:01:03 +0000 (14:01 +0200)
committerKrzysztof Jackiewicz <k.jackiewicz@samsung.com>
Wed, 31 Aug 2016 07:21:39 +0000 (09:21 +0200)
Change-Id: Ic84ef69b2140e970c7a1edea5810491d81fc1605

src/yaca/yaca-test-common.h

index 4e69885..98d014b 100644 (file)
@@ -240,9 +240,11 @@ std::string truncate_str(const std::string &input, size_t len);
 struct KeyPair {
     KeyPtr prv;
     KeyPtr pub;
+    size_t bit_len;
 
     KeyPair(yaca_key_type_e prv_key_type, size_t key_bit_len) :
             prv(generate_key(prv_key_type, key_bit_len)),
-            pub(extract_public_key(prv))
+            pub(extract_public_key(prv)),
+            bit_len(key_bit_len)
             {}
 };