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

cpabe: Serializing ciphertext with 32-bit prefixes. #490

Merged
merged 4 commits into from Apr 24, 2024

Commits on Apr 15, 2024

  1. Configuration menu
    Copy the full SHA
    610c23a View commit details
    Browse the repository at this point in the history
  2. Testing long plaintext.

    armfazh committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    1d6cff1 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    c908a67 View commit details
    Browse the repository at this point in the history
  4. Serializing ciphertext with 32-bit prefixes.

    Notice about ciphertext change and testing format.
    
    Previously, tkn20 ciphertext was encoding the ciphertext header
    `C1`, the envelope `env` (containing inner ciphertext), and
    macData using 16-bit prefixes, which caused a limitation on
    the maximum size allowed for encrypting plaintexts.
    
    With this change, the encoding now uses 32-bit prefixes for
    these three elements allowing to encrypt plaintexts longer
    than 2^16 bytes. So, ciphertexts produced by tkn20 package are
    now 12 bytes longer.
    
    Ciphertexts in the previous format are still decryptable.
    The following functions are backwards-compatible:
     - AttributeKey.Decrypt
     - Attributes.CouldDecrypt
     - Policy.ExtractFromCiphertext
    armfazh committed Apr 15, 2024
    Configuration menu
    Copy the full SHA
    696c01c View commit details
    Browse the repository at this point in the history