Skip to content

Commit

Permalink
Report correct unencrypted length
Browse files Browse the repository at this point in the history
This is an attempt to get things working...
  • Loading branch information
Aaron Sinclair committed May 3, 2021
1 parent 97d1805 commit bf02633
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/openssl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ bool AES_GCM_Decrypt(COSE_Enveloped *pcose,
EVP_CIPHER_CTX_free(ctx);

pcose->pbContent = rgbOut;
pcose->cbContent = cbOut;
pcose->cbContent = (int)cbCrypto - TSize;

return true;
}
Expand Down

0 comments on commit bf02633

Please sign in to comment.