Advertisement
AnthonyCagliano

Untitled

Mar 28th, 2023
48
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. aes_error_t cryptx_aes_encrypt_and_digest(
  2. aes_ctx *ctx,
  3. uint8_t *plaintxt, size_t plaintxt_len,
  4. uint8_t *aad, size_t aad_len,
  5. uint8_t *ciphertxt, uint8_t *digest,
  6. ...
  7. );
  8.  
  9. // if cipher mode NOT GCM, va_arg will be used to retrieve the following, in order:
  10. // hash_algorithm
  11. // hash_key (if NULL, hash only. if present, hmac)
  12. // hash_key_len
  13.  
  14. // If ciphermode GCM, internal auth tag instead
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement