Uploaded image for project: 'Libmongocrypt'
  1. Libmongocrypt
  2. MONGOCRYPT-744

Modify _mongocrypt_hmac_sha_256 to accept crypto as nullptr

    • Type: Icon: Improvement Improvement
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      The comments for `_mongocrypt_hmac_sha_256` specify:
      ```
      Uses the hmac_sha_256 hook set on @crypto if set, and otherwise calls the native implementation.
      ```
      For cases where the program intends for the native implementation to be called, it would be easier to pass in nullptr for `@crypto` rather than creating a dummy mongocrypt_crypto_t object.

            Assignee:
            josh.siegel@mongodb.com Josh Siegel
            Reporter:
            josh.siegel@mongodb.com Josh Siegel
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: