[MONGOCRYPT-546] Unify en/decrypt functions across FLE1, FLE2, and the coming FLE2v2 Created: 22/Feb/23  Updated: 28/Oct/23  Resolved: 24/Feb/23

Status: Closed
Project: Libmongocrypt
Component/s: None
Affects Version/s: None
Fix Version/s: 1.8.0, 1.8.0-alpha0

Type: Improvement Priority: Major - P3
Reporter: Sara Golemon Assignee: Sara Golemon
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by MONGOCRYPT-537 Switch QE to CBC for user data Closed
Epic Link: PM-2972
Binding Changes: Not Needed

 Description   

The encrypt/decrypt workhorses are becoming numerous and hard to map to revisions of the FLE protocols.

  • mongocrpyt_do_encryption et al
  • mongocrypt_fle2_do_encryption et al
  • mongocrypt_fle2aead_do_encryption et al

Create a unified interface for encryption/decryption calls associated to FLE revisions to reduce code bloat, reduce opportunity for errors, and make future revisions easier.



 Comments   
Comment by Githook User [ 24/Feb/23 ]

Author:

{'name': 'Sara Golemon', 'email': 'sara.golemon@mongodb.com', 'username': 'sgolemon'}

Message: MONGOCRYPT-546 Refactor application crypto interface
Branch: master
https://github.com/mongodb/libmongocrypt/commit/f02149ad61e7bdd6bfb02cbaee0aee408160138e

Comment by Sara Golemon [ 22/Feb/23 ]

https://github.com/mongodb/libmongocrypt/pull/580

Generated at Thu Feb 08 09:08:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.