Skip to content

Commit 526720c

Browse files
committed
clang-format
1 parent ede31b7 commit 526720c

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/wh_server_keystore.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,8 @@ static int _AesGcmDataWrap(whServerContext* server, whKeyId serverKeyId,
849849
/* Get the server side key */
850850
ret = wh_Server_KeystoreReadKey(
851851
server,
852-
wh_KeyId_TranslateFromClient(WH_KEYTYPE_CRYPTO, server->comm->client_id, serverKeyId),
852+
wh_KeyId_TranslateFromClient(WH_KEYTYPE_CRYPTO, server->comm->client_id,
853+
serverKeyId),
853854
NULL, serverKey, &serverKeySz);
854855
if (ret != WH_ERROR_OK) {
855856
return ret;
@@ -915,7 +916,8 @@ static int _AesGcmDataUnwrap(whServerContext* server, uint16_t serverKeyId,
915916
/* Get the server side key */
916917
ret = wh_Server_KeystoreReadKey(
917918
server,
918-
wh_KeyId_TranslateFromClient(WH_KEYTYPE_CRYPTO, server->comm->client_id, serverKeyId),
919+
wh_KeyId_TranslateFromClient(WH_KEYTYPE_CRYPTO, server->comm->client_id,
920+
serverKeyId),
919921
NULL, serverKey, &serverKeySz);
920922
if (ret != WH_ERROR_OK) {
921923
return ret;

test/wh_test_keywrap.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,9 @@ static int _AesGcm_TestKeyWrap(whClientContext* client, WC_RNG* rng)
227227

228228
static int _AesGcm_TestDataWrap(whClientContext* client)
229229
{
230-
int ret = 0;
231-
uint8_t data[] = "Example data!";
232-
uint8_t unwrappedData[sizeof(data)] = {0};
230+
int ret = 0;
231+
uint8_t data[] = "Example data!";
232+
uint8_t unwrappedData[sizeof(data)] = {0};
233233
uint8_t wrappedData[sizeof(data) + WOLFHSM_KEYWRAP_AES_GCM_IV_SIZE +
234234
WOLFHSM_KEYWRAP_AES_GCM_TAG_SIZE] = {0};
235235

0 commit comments

Comments
 (0)