Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DES: support binary keys/plaintext/ciphertext and PKCS#5 padding, improve efficiency and add test script against OpenSSL #16

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

zandbelt
Copy link

@zandbelt zandbelt commented Dec 13, 2023

  • parse keys that include 0's e.g. converted from hexadecimal inputs
  • handle arbitrary binary plaintext/ciphertext without assuming they should be NULL terminated strings (which are handled properly anyhow)
  • support PKCS#5 padding and use memcpy instead of looping over bytes

parse strings that include 0's e.g. converted from hexadecimal inputs

Signed-off-by: Hans Zandbelt <[email protected]>
NULL terminated strings will be encrypted/decrypted with a '\0'
character as part of their payload anyhow, so do not add superfluous
'\0' termination to plaintext/cyphertext since it breaks arbitary binary
inputs

Signed-off-by: Hans Zandbelt <[email protected]>
@zandbelt zandbelt changed the title add support for arbitrary binary keys add support for arbitrary binary keys and plaintext/ciphertext Dec 13, 2023
@zandbelt zandbelt changed the title add support for arbitrary binary keys and plaintext/ciphertext add support for binary keys, binary plaintext/ciphertext, PKCS#5 and improve efficiency Dec 13, 2023
Signed-off-by: Hans Zandbelt <[email protected]>
Signed-off-by: Hans Zandbelt <[email protected]>
@zandbelt zandbelt changed the title add support for binary keys, binary plaintext/ciphertext, PKCS#5 and improve efficiency DES: support binary keys/plaintext/ciphertext and PKCS#5 padding, improve efficiency and add test script against OpenSSL Dec 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant