Skip to content

Commit 9223f01

Browse files
gocarlosjimsch
authored andcommitted
style: format source code
1 parent 3a1319d commit 9223f01

29 files changed

Lines changed: 8024 additions & 5173 deletions

dumper/dumper.c

Lines changed: 418 additions & 409 deletions
Large diffs are not rendered by default.

include/cose/cose.h

Lines changed: 324 additions & 135 deletions
Large diffs are not rendered by default.

include/cose/cose_configure.h

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@
2525
#define USE_AES_GCM_192
2626
#define USE_AES_GCM_256
2727

28-
#if defined(USE_AES_GCM_128) || defined(USE_AES_GCM_192) || defined(USE_AES_GCM_256)
28+
#if defined(USE_AES_GCM_128) || defined(USE_AES_GCM_192) || \
29+
defined(USE_AES_GCM_256)
2930
#define USE_AES_GCM
3031
#endif
3132

@@ -52,7 +53,8 @@
5253
#define USE_HMAC_256_256
5354
#define USE_HMAC_384_384
5455
#define USE_HMAC_512_512
55-
#if defined(USE_HMAC_256_64) || defined(USE_HMAC_256_256) || defined(USE_HMAC_384_384) || defined(USE_HMAC_512_512)
56+
#if defined(USE_HMAC_256_64) || defined(USE_HMAC_256_256) || \
57+
defined(USE_HMAC_384_384) || defined(USE_HMAC_512_512)
5658
#define USE_HMAC
5759
#endif
5860

@@ -67,7 +69,7 @@
6769
#define USE_AES_CBC_MAC_256_64
6870
#define USE_AES_CBC_MAC_256_128
6971

70-
#endif // !defined(USE_MBED_TLS)
72+
#endif // !defined(USE_MBED_TLS)
7173

7274
//
7375
// Define which ECDH algorithms are to be used
@@ -78,11 +80,12 @@
7880
#define USE_ECDH_ES_HKDF_512
7981
#define USE_ECDH_SS_HKDF_256
8082
#define USE_ECDH_SS_HKDF_512
81-
#if defined(USE_ECDH_ES_HKDF_256) || defined(USE_ECDH_ES_HKDF_512) || defined(USE_ECDH_SS_HKDF_256) || defined(USE_ECDH_SS_HKDF_512)
83+
#if defined(USE_ECDH_ES_HKDF_256) || defined(USE_ECDH_ES_HKDF_512) || \
84+
defined(USE_ECDH_SS_HKDF_256) || defined(USE_ECDH_SS_HKDF_512)
8285
#define USE_ECDH 1
8386
#define USE_HKDF_SHA2 1
8487
#endif
85-
#endif // !defined(USE_MBED_TLS)
88+
#endif // !defined(USE_MBED_TLS)
8689

8790
#if !defined(USE_MBED_TLS)
8891
#define USE_ECDH_ES_A128KW
@@ -91,11 +94,13 @@
9194
#define USE_ECDH_SS_A128KW
9295
#define USE_ECDH_SS_A192KW
9396
#define USE_ECDH_SS_A256KW
94-
#if defined(USE_ECDH_ES_A128KW) || defined(USE_ECDH_ES_A192KW) || defined(USE_ECDH_ES_A256KW) || defined(USE_ECDH_SS_A128KW) || defined(USE_ECDH_SS_A192KW) || defined(USE_ECDH_SS_A256KW)
97+
#if defined(USE_ECDH_ES_A128KW) || defined(USE_ECDH_ES_A192KW) || \
98+
defined(USE_ECDH_ES_A256KW) || defined(USE_ECDH_SS_A128KW) || \
99+
defined(USE_ECDH_SS_A192KW) || defined(USE_ECDH_SS_A256KW)
95100
#define USE_ECDH 1
96101
#define USE_HKDF_AES 1
97102
#endif
98-
#endif // !defined(USE_MBED_TLS)
103+
#endif // !defined(USE_MBED_TLS)
99104

100105
//
101106
// Define which Key Wrap functions are to be used
@@ -105,7 +110,7 @@
105110
#define USE_AES_KW_128
106111
#define USE_AES_KW_192
107112
#define USE_AES_KW_256
108-
#endif // !defined(USE_MBED_TLS)
113+
#endif // !defined(USE_MBED_TLS)
109114

110115
//
111116
// Define which of the DIRECT + KDF algorithms are to be used
@@ -116,14 +121,14 @@
116121
#define USE_Direct_HKDF_HMAC_SHA_512
117122
#define USE_Direct_HKDF_AES_128
118123
#define USE_Direct_HKDF_AES_256
119-
#if defined(USE_Direct_HKDF_HMAC_SHA_256) || defined(USE_Direct_HKDF_HMAC_SHA_512)
124+
#if defined(USE_Direct_HKDF_HMAC_SHA_256) || \
125+
defined(USE_Direct_HKDF_HMAC_SHA_512)
120126
#define USE_HKDF_SHA2 1
121127
#endif
122128
#if defined(USE_Direct_HKDF_AES_128) || defined(USE_Direct_KDF_AES_256)
123129
#define USE_HKDF_AES 1
124130
#endif
125-
#endif // !defined(USE_MBED_TLS)
126-
131+
#endif // !defined(USE_MBED_TLS)
127132

128133
//
129134
// Define which of the signature algorithms are to be used
@@ -141,8 +146,7 @@
141146
#pragma message("OPENSSL VERSION IS ")
142147
#pragma message(OPENSSL_VERISON_NUMBER)
143148
#endif
144-
#endif // !defined (USE_MBED_TLS)
145-
149+
#endif // !defined (USE_MBED_TLS)
146150

147151
//#define USE_COUNTER_SIGNATURES
148152

0 commit comments

Comments
 (0)