Skip to content

Make any structure with potentially variable size opaque #3495

Description

@DemiMarie

Problem:

The HPKE structure size had to be changed for ML-KEM support. This breaks ABI.

Solution:

Make these structs, and all structs with sizes that might change in the future, opaque.

  • Does this change any public APIs? Structs that have sizes that might change in the future become pointers to heap-allocated opaque types.
  • Which algorithm(s) will this impact? HPKE, possibly others.

Requirements / Acceptance Criteria:

Anything with a size that isn’t future-proof becomes a pointer to a heap-allocated opaque type.

  • RFC links: None
  • Related Issues: None
  • Will the Usage Guide or other documentation need to be updated? Yes
  • Testing: Normal testing of callers should suffice.
    • Will this change trigger AWS LibCrypto Formal Verification changes? No
    • Should this change be fuzz tested? Only for out of memory conditions.

Out of scope:

Being able to link OpenSSL and AWS-LC in the same binary.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions