Closed nmantani closed 1 year ago
Merging #25 (a83831c) into master (6e8f408) will not change coverage. The diff coverage is
100.00%
.
:mega: This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more
@@ Coverage Diff @@
## master #25 +/- ##
=======================================
Coverage 82.50% 82.50%
=======================================
Files 320 320
Lines 23570 23570
=======================================
Hits 19446 19446
Misses 4124 4124
Impacted Files | Coverage Δ | |
---|---|---|
refinery/units/crypto/cipher/rc5.py | 96.84% <100.00%> (ø) |
|
refinery/units/crypto/cipher/rc6.py | 96.93% <100.00%> (ø) |
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.
I added tests in cf66f722b9872b9883bd71b4354b20f5c700b895 and will now merge this, thank you for the contribution!
Let me know if you need a new version pushed to PyPi for this.
It is not necessary to release a new version this time. Thank you so much for the quick merge!
rc5 and rc6 commands fail to decrypt ciphertext encrypted by other cryptographic tools such as OpenSSL with CFB mode and vice versa because the commands does not have --segment-size (-S) option to set segment size and the default segment size value 0 (it is set in refinery/units/crypto/cipher/init.py) is incompatible with other cryptograpic tools.
The following examples are executed with Binary Refinery 0.5.9 and OpenSSL 1.1.1t on FreeBSD 13.2-stable (I used FreeBSD this time because OpenSSL 1.1.1f on Ubuntu 20.04.6 LTS does not support RC5).
Decryption with OFB mode (success):
Decryption with CFB mode without --segment-size option (failure):
Decryption with CFB mode and proper segment size value setting (success):
The following examples are executed on the same environment above with the ciphertext encrypted with RC6 Encryption and Decryption Online with the following setting (I used the online tool because OpenSSL 1.1.1t on FreeBSD 13.2-stable does not support RC6): Input Content: This is a secret message. Mode: OFB or CFB Padding: nopadding Password: 0123456789abcdef IV: 0123456789abcdef In-Format: string Out-Format: hex Charset: UTF-8
Output Result with OFB mode: bf96632c806f49a72e8d1ebed739768934d5b62a1d9c33b310 Output Result with CFB mode: bf96632c806f49a72e8d1ebed7397689034b05da2be0b3f0a7
Decryption with OFB mode (success):
Decryption with CFB mode without --segment-size option (failure):
Decryption with CFB mode and proper segment size value setting (success):