changing {} style to match majority of previous style

This commit is contained in:
Philippe Teuwen 2019-03-10 11:20:22 +01:00
commit 961d929f4d
320 changed files with 5502 additions and 10485 deletions

View file

@ -42,8 +42,7 @@ struct emv_pk c_mchip_05 = {
.exp = { 0x03, },
.elen = 1,
.mlen = 1408 / 8,
.modulus = (unsigned char[])
{
.modulus = (unsigned char[]) {
0xb8, 0x04, 0x8a, 0xbc, 0x30, 0xc9, 0x0d, 0x97, 0x63, 0x36, 0x54, 0x3e, 0x3f, 0xd7, 0x09, 0x1c,
0x8f, 0xe4, 0x80, 0x0d, 0xf8, 0x20, 0xed, 0x55, 0xe7, 0xe9, 0x48, 0x13, 0xed, 0x00, 0x55, 0x5b,
0x57, 0x3f, 0xec, 0xa3, 0xd8, 0x4a, 0xf6, 0x13, 0x1a, 0x65, 0x1d, 0x66, 0xcf, 0xf4, 0x28, 0x4f,
@ -150,8 +149,7 @@ static const struct tlv crm1_tlv = {
.value = c_crm1,
};
static int cda_test_raw(bool verbose)
{
static int cda_test_raw(bool verbose) {
const struct emv_pk *pk = &c_mchip_05;
struct crypto_pk *kcp = crypto_pk_open(PK_RSA,
@ -345,8 +343,7 @@ static int cda_test_raw(bool verbose)
return 0;
}
static int cda_test_pk(bool verbose)
{
static int cda_test_pk(bool verbose) {
const struct emv_pk *pk = &c_mchip_05;
struct tlvdb *db;
@ -421,8 +418,7 @@ static int cda_test_pk(bool verbose)
return 0;
}
int exec_cda_test(bool verbose)
{
int exec_cda_test(bool verbose) {
int ret;
fprintf(stdout, "\n");

View file

@ -25,8 +25,7 @@
#include <string.h>
#include <inttypes.h>
static int test_genkey(unsigned int keylength, unsigned char *msg, size_t msg_len, bool verbose)
{
static int test_genkey(unsigned int keylength, unsigned char *msg, size_t msg_len, bool verbose) {
int ret = 1;
size_t tmp_len, tmp2_len;
unsigned char *tmp, *tmp2;
@ -192,8 +191,7 @@ static unsigned char pk_I[] = {
0xd4, 0x42, 0xc9, 0x17, 0xb2, 0x2c, 0x92, 0x12, 0x37, 0x1b, 0xd3, 0xc5, 0x79, 0xd2, 0x65, 0x61,
};
static int test_pk(bool verbose)
{
static int test_pk(bool verbose) {
int ret = 1;
size_t tmp_len, tmp2_len;
unsigned char *tmp, *tmp2;
@ -300,8 +298,7 @@ close_pub:
return ret;
}
int exec_crypto_test(bool verbose)
{
int exec_crypto_test(bool verbose) {
unsigned int keylengths[] = {1024, 1152, 1408, 1984, 2048, 3072, 4096};
int i;
int ret;

View file

@ -33,8 +33,7 @@
#include "crypto/libpcrypto.h"
#include "emv/emv_roca.h"
int ExecuteCryptoTests(bool verbose)
{
int ExecuteCryptoTests(bool verbose) {
int res;
bool TestFail = false;

View file

@ -44,8 +44,7 @@ struct emv_pk mchip_05 = {
.exp = { 0x03, },
.elen = 1,
.mlen = 1408 / 8,
.modulus = (unsigned char[])
{
.modulus = (unsigned char[]) {
0xb8, 0x04, 0x8a, 0xbc, 0x30, 0xc9, 0x0d, 0x97, 0x63, 0x36, 0x54, 0x3e, 0x3f, 0xd7, 0x09, 0x1c,
0x8f, 0xe4, 0x80, 0x0d, 0xf8, 0x20, 0xed, 0x55, 0xe7, 0xe9, 0x48, 0x13, 0xed, 0x00, 0x55, 0x5b,
0x57, 0x3f, 0xec, 0xa3, 0xd8, 0x4a, 0xf6, 0x13, 0x1a, 0x65, 0x1d, 0x66, 0xcf, 0xf4, 0x28, 0x4f,
@ -140,8 +139,7 @@ static const struct tlv dd1_tlv = {
.value = d_dd1,
};
static int dda_test_raw(bool verbose)
{
static int dda_test_raw(bool verbose) {
const struct emv_pk *pk = &mchip_05;
struct crypto_pk *kcp = crypto_pk_open(PK_RSA,
@ -306,8 +304,7 @@ static int dda_test_raw(bool verbose)
return 0;
}
static int dda_test_pk(bool verbose)
{
static int dda_test_pk(bool verbose) {
const struct emv_pk *pk = &mchip_05;
struct tlvdb *db;
@ -369,8 +366,7 @@ static int dda_test_pk(bool verbose)
return 0;
}
int exec_dda_test(bool verbose)
{
int exec_dda_test(bool verbose) {
int ret;
fprintf(stdout, "\n");

View file

@ -42,8 +42,7 @@ struct emv_pk vsdc_01 = {
.exp = { 0x03, },
.elen = 1,
.mlen = 1024 / 8,
.modulus = (unsigned char[])
{
.modulus = (unsigned char[]) {
0xc6, 0x96, 0x03, 0x42, 0x13, 0xd7, 0xd8, 0x54, 0x69, 0x84, 0x57, 0x9d, 0x1d, 0x0f, 0x0e, 0xa5,
0x19, 0xcf, 0xf8, 0xde, 0xff, 0xc4, 0x29, 0x35, 0x4c, 0xf3, 0xa8, 0x71, 0xa6, 0xf7, 0x18, 0x3f,
0x12, 0x28, 0xda, 0x5c, 0x74, 0x70, 0xc0, 0x55, 0x38, 0x71, 0x00, 0xcb, 0x93, 0x5a, 0x71, 0x2c,
@ -100,8 +99,7 @@ const unsigned char pan[] = {
0x42, 0x76, 0x55, 0x00, 0x00, 0x00, 0x00, 0x00,
};
static int sda_test_raw(bool verbose)
{
static int sda_test_raw(bool verbose) {
const struct emv_pk *pk = &vsdc_01;
struct crypto_pk *kcp = crypto_pk_open(PK_RSA,
@ -208,8 +206,7 @@ static int sda_test_raw(bool verbose)
return 0;
}
static int sda_test_pk(bool verbose)
{
static int sda_test_pk(bool verbose) {
const struct emv_pk *pk = &vsdc_01;
struct tlvdb *db;
@ -256,8 +253,7 @@ static int sda_test_pk(bool verbose)
return 0;
}
int exec_sda_test(bool verbose)
{
int exec_sda_test(bool verbose) {
int ret;
fprintf(stdout, "\n");