Skip to content

Commit

Permalink
Fix incorrect key size condition check
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-pbulawa committed Oct 30, 2024
1 parent bb4593e commit d599803
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -695,7 +695,7 @@ private SFPair<InputStream, Boolean> createUploadStream(
final InputStream stream;
FileInputStream srcFileStream = null;
try {
if (isEncrypting() && getEncryptionKeySize() < 256) {
if (isEncrypting() && getEncryptionKeySize() <= 256) {
try {
final InputStream uploadStream =
uploadFromStream
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1036,7 +1036,7 @@ private SFPair<InputStream, Boolean> createUploadStream(
final InputStream stream;
FileInputStream srcFileStream = null;
try {
if (isEncrypting() && getEncryptionKeySize() < 256) {
if (isEncrypting() && getEncryptionKeySize() <= 256) {
try {
final InputStream uploadStream =
uploadFromStream
Expand Down

0 comments on commit d599803

Please sign in to comment.