I was just trying to check if OpenSSL does use PCSK5 as documentation states when I got the following problem.
I first encrypted a plaintext and encrypted it using DES-ECB. I was expecting to see extra stuffed bytes in decrypted message but it seems OpenSSL is pretty smart and remove them before printing the result.
So I tried to use -nopad option, which
disable standard block padding
following official documentation. This way extra bytes did not seem to be removed and result is choerent with PCSK5. My question is: does that prove anything? Disabling standard block padding (PCSK5) does not disable padding so what exactly it does? What type of padding does it use?
Here are my tests:
Plaintext (What is the padding??????)
5B E0 A5 BD 8C CD F9 22 05 10 28 5C F8 6B 8D 22 6A 1F 06 A3 3E E7 C9 68 07 4E 92 AA >8D 07 EE AD
Decrypted (nopad)
57 68 61 74 20 69 73 20 74 68 65 20 70 61 64 64 69 6E 67 3F 3F 3F 3F 3F 3F 0A 06 06 >06 06 06 06
Decrypted (regular padding)
57 68 61 74 20 69 73 20 74 68 65 20 70 61 64 64 69 6E 67 3F 3F 3F 3F 3F 3F 0A