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 support for decrypting S/MIME messages #11555

Open
wants to merge 8 commits into
base: main
Choose a base branch
from

Commits on Sep 12, 2024

  1. first python API proposition

    first round-trip tests
    
    feat: made asn1 structures readable
    
    refacto: adapted existing functions accordingly
    
    feat/pkcs12: added symmetric_decrypt
    
    feat: deserialize 3 possible encodings
    
    feat: handling AES-128 & AES-256 CBC
    
    feat: raise error when no recipient is found
    
    feat/pkcs7: added decanonicalize function
    
    feat/asn1: added decode_der_data
    
    feat/pkcs7: added smime_enveloped_decode
    
    tests are the round-trip (encrypt & decrypt)
    nitneuqr committed Sep 12, 2024
    Configuration menu
    Copy the full SHA
    ac3c41e View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    69d2e23 View commit details
    Browse the repository at this point in the history

Commits on Sep 16, 2024

  1. test support pkcs7_encrypt with openssl

    added algorithm to pkcs7_encrypt signature
    
    refacto: decrypt function is clearer
    
    flow is more natural
    
    refacto: added all rust error tests
    
    refacto: added another CA chain for checking
    nitneuqr committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    2860610 View commit details
    Browse the repository at this point in the history
  2. fix: const handling

    nitneuqr committed Sep 16, 2024
    Configuration menu
    Copy the full SHA
    a44e8aa View commit details
    Browse the repository at this point in the history

Commits on Sep 17, 2024

  1. Refactor PKCS7Decryptor to pkcs7_decrypt

    refacto: removed SMIME_ENVELOPED_DECODE from rust code
    
    refacto: removed decode_der_data
    
    adapted tests accordingly
    nitneuqr committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    8ff612d View commit details
    Browse the repository at this point in the history
  2. removed the PEM tag check

    nitneuqr committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    71e8abc View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    fd3aed5 View commit details
    Browse the repository at this point in the history
  4. one more test case

    nitneuqr committed Sep 17, 2024
    Configuration menu
    Copy the full SHA
    48ec15e View commit details
    Browse the repository at this point in the history