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

Add the SM4 block cipher, also a no-padding option for decrypting block ciphers. #1189

Merged
merged 1 commit into from
Mar 29, 2022

Commits on Mar 23, 2021

  1. Add the SM4 block cipher, also a no-padding option for block ciphers.

    This adds an implementation of the SM4 block cipher, and operations
    to encrypt and decrypt using it with CBC,ECB,CFB,OFB,CTR modes.
    
    Also, a "no padding" option is added for AES,DES,3DES and SM4
    decryption in ECB/CBC modes. This variant does not attempt to
    validate the last block as being PKCS#7 padded.
    
    This is useful, both since other padding schemes exist, and also
    for decrypting data where the final block is missing.
    swesven committed Mar 23, 2021
    Configuration menu
    Copy the full SHA
    6155634 View commit details
    Browse the repository at this point in the history