Skip to content

Commit

Permalink
Issue 48: Add SecCipher_ProcessOpaqueWithMapAndPattern
Browse files Browse the repository at this point in the history
  • Loading branch information
Eric Berry committed Oct 18, 2023
1 parent 2e1d3fe commit c01139e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/sec_adapter_cipher.c
Original file line number Diff line number Diff line change
Expand Up @@ -1026,7 +1026,7 @@ Sec_Result SecCipher_ProcessOpaqueWithMapAndPattern(Sec_CipherHandle* cipherHand
}

if (opaqueBufferHandle == NULL) {
SEC_LOG_ERROR("NULL outputHandle");
SEC_LOG_ERROR("NULL opaqueBufferHandle");
return SEC_RESULT_FAILURE;
}

Expand Down
4 changes: 2 additions & 2 deletions test/main/cpp/cipher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1245,7 +1245,7 @@ Sec_Result testProcessOpaqueWithMapAndPattern(SEC_OBJECTID id, TestKey key, Test
TestCtx ctx;

if (ctx.init() != SEC_RESULT_SUCCESS) {
SEC_LOG_ERROR("TestCtx.init failed");
SEC_LOG_ERROR("ctx.init failed");
return SEC_RESULT_FAILURE;
}

Expand Down Expand Up @@ -1314,7 +1314,7 @@ Sec_Result testProcessOpaqueWithMapAndPattern(SEC_OBJECTID id, TestKey key, Test
SEC_TRUE, map, subsampleCount, numEncryptedBlocks, numClearBlocks, &opaqueBufferHandle, &bytesWritten);
if (result != SEC_RESULT_SUCCESS) {
delete[] map;
SEC_LOG_ERROR("SecCipher_ProcessOpaqueWithMap failed");
SEC_LOG_ERROR("SecCipher_ProcessOpaqueWithMapAndPattern failed");
return result;
}

Expand Down

0 comments on commit c01139e

Please sign in to comment.