Skip to content

Commit b240c30

Browse files
committed
Fix formatting. Remove debug print
1 parent c97e7be commit b240c30

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

src/wh_server_keystore.c

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -706,8 +706,8 @@ static int _AesGcmKeyWrap(whServerContext* server, whKeyId serverKeyId,
706706
{
707707
int ret = 0;
708708
Aes aes[1];
709-
uint8_t authTag[WH_KEYWRAP_AES_GCM_TAG_SIZE];
710-
uint8_t iv[WH_KEYWRAP_AES_GCM_IV_SIZE];
709+
uint8_t authTag[WH_KEYWRAP_AES_GCM_TAG_SIZE];
710+
uint8_t iv[WH_KEYWRAP_AES_GCM_IV_SIZE];
711711
uint8_t* serverKey;
712712
uint32_t serverKeySz;
713713
whNvmMetadata* serverKeyMetadata;
@@ -791,8 +791,8 @@ static int _AesGcmKeyUnwrap(whServerContext* server, uint16_t serverKeyId,
791791
{
792792
int ret = 0;
793793
Aes aes[1];
794-
uint8_t authTag[WH_KEYWRAP_AES_GCM_TAG_SIZE];
795-
uint8_t iv[WH_KEYWRAP_AES_GCM_IV_SIZE];
794+
uint8_t authTag[WH_KEYWRAP_AES_GCM_TAG_SIZE];
795+
uint8_t iv[WH_KEYWRAP_AES_GCM_IV_SIZE];
796796
uint8_t* serverKey;
797797
uint32_t serverKeySz;
798798
whNvmMetadata* serverKeyMetadata;
@@ -858,8 +858,8 @@ static int _AesGcmDataWrap(whServerContext* server, whKeyId serverKeyId,
858858
{
859859
int ret = 0;
860860
Aes aes[1];
861-
uint8_t authTag[WH_KEYWRAP_AES_GCM_TAG_SIZE];
862-
uint8_t iv[WH_KEYWRAP_AES_GCM_IV_SIZE];
861+
uint8_t authTag[WH_KEYWRAP_AES_GCM_TAG_SIZE];
862+
uint8_t iv[WH_KEYWRAP_AES_GCM_IV_SIZE];
863863
uint8_t* serverKey;
864864
uint32_t serverKeySz;
865865
whNvmMetadata* serverKeyMetadata;
@@ -927,8 +927,8 @@ static int _AesGcmDataUnwrap(whServerContext* server, uint16_t serverKeyId,
927927
{
928928
int ret = 0;
929929
Aes aes[1];
930-
uint8_t authTag[WH_KEYWRAP_AES_GCM_TAG_SIZE];
931-
uint8_t iv[WH_KEYWRAP_AES_GCM_IV_SIZE];
930+
uint8_t authTag[WH_KEYWRAP_AES_GCM_TAG_SIZE];
931+
uint8_t iv[WH_KEYWRAP_AES_GCM_IV_SIZE];
932932
uint8_t* serverKey;
933933
uint32_t serverKeySz;
934934
whNvmMetadata* serverKeyMetadata;
@@ -1131,7 +1131,6 @@ static int _HandleKeyUnwrapAndExportRequest(
11311131

11321132
/* Require explicit wrapped-key encoding */
11331133
if (wrappedKeyType != WH_KEYTYPE_WRAPPED) {
1134-
printf("wrappedKeyType %d\r\n", wrappedKeyType);
11351134
return WH_ERROR_ABORTED;
11361135
}
11371136

0 commit comments

Comments
 (0)