From 3b878dae7e7bb00f8d886426dc4f75bf45b8113f Mon Sep 17 00:00:00 2001 From: Martin Willi Date: Fri, 11 Sep 2009 15:35:10 +0200 Subject: Removed chunk_from_buf() in favor of a simpler chunk_from_chars() macro --- scripts/pubkey_speed.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'scripts/pubkey_speed.c') diff --git a/scripts/pubkey_speed.c b/scripts/pubkey_speed.c index e6c668832..255f650f5 100644 --- a/scripts/pubkey_speed.c +++ b/scripts/pubkey_speed.c @@ -25,8 +25,6 @@ static void usage() exit(1); } -static char data_buf[] = {0x01,0x02,0x03,0x04,0x05,0x06,0x07}; - int main(int argc, char *argv[]) { private_key_t *private; @@ -36,7 +34,7 @@ int main(int argc, char *argv[]) char buf[8096], *pos = buf; key_type_t type = KEY_ANY; signature_scheme_t scheme = SIGN_UNKNOWN; - chunk_t keydata, *sigs, data = chunk_from_buf(data_buf); + chunk_t keydata, *sigs, data; if (argc < 4) { @@ -102,6 +100,7 @@ int main(int argc, char *argv[]) sigs = malloc(sizeof(chunk_t) * rounds); + data = chunk_from_chars(0x01,0x02,0x03,0x04,0x05,0x06,0x07); start_timing(&timing); for (round = 0; round < rounds; round++) { -- cgit v1.2.3