Skip to content

fix(v3): skip padding check in DES decryption - #30

Open
jason-cts wants to merge 1 commit into
roboplc:mainfrom
jason-cts:fix-des
Open

fix(v3): skip padding check in DES decryption#30
jason-cts wants to merge 1 commit into
roboplc:mainfrom
jason-cts:fix-des

Conversation

@jason-cts

Copy link
Copy Markdown

Hi, I have fix (or workaround?) an issue about cyrpto-rust feature,
it happens on Cisco SG300 switch, which is only supports DES priv mode.
this switch is padding with 0, not PKCS-like scheme.

after I take a look at RFC3414, in 8.1.1.2, it mentioned "The actual pad value is irrelevant."
so I remove whole PKCS padding stub in fn decrypt_des()

below is the screenshot of Wireshark, I have censored something might sensitive.
wireshark

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant