From 269516533c4c8a303fc5dab2f387746deb11de7a Mon Sep 17 00:00:00 2001 From: Steffen Jaeckel Date: Tue, 5 Aug 2014 17:15:47 +0200 Subject: [PATCH] rt.py: add name of testcase in struct --- notes/rsa-testvectors/rt.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/notes/rsa-testvectors/rt.py b/notes/rsa-testvectors/rt.py index 2617837..b308aa4 100755 --- a/notes/rsa-testvectors/rt.py +++ b/notes/rsa-testvectors/rt.py @@ -105,7 +105,7 @@ class Example(object): self.s = s def __str__(self): - res = "{{/* {0} */\n{1},\n{{".format(self.name, str(self.key)) + res = "{{\n \"{0}\",\n{1},\n{{".format(self.name, str(self.key)) for i in self.s: res += str(i) + '\n' res += '}\n},' @@ -157,6 +157,7 @@ typedef struct rsaSig { } rsaSig_t; typedef struct testcase { + const char* name; rsaKey_t rsa; rsaSig_t sig[6]; } testcase_t;