EVP_MAC_HMAC.pod 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. =pod
  2. =head1 NAME
  3. EVP_MAC_HMAC - The HMAC EVP_MAC implementation
  4. =head1 DESCRIPTION
  5. Support for computing HMAC MACs through the B<EVP_MAC> API.
  6. =head2 Numeric identity
  7. B<EVP_MAC_HMAC> is the numeric identity for this implementation, and
  8. can be used in functions like EVP_MAC_CTX_new_id() and
  9. EVP_get_macbynid().
  10. =head2 Supported controls
  11. The supported controls are:
  12. =over 4
  13. =item B<EVP_MAC_CTRL_SET_KEY>
  14. EVP_MAC_ctrl_str() takes two type strings for this control:
  15. =over 4
  16. =item "key"
  17. The value string is used as is.
  18. =item "hexkey"
  19. The value string is expected to be a hexadecimal number, which will be
  20. decoded before passing on as control value.
  21. =back
  22. =item B<EVP_MAC_CTRL_SET_FLAGS>
  23. Sets HMAC flags. This is passed directly to HMAC_CTX_set_flags().
  24. There are no corresponding string control types.
  25. =item B<EVP_MAC_CTRL_SET_ENGINE>
  26. =item B<EVP_MAC_CTRL_SET_MD>
  27. These work as described in L<EVP_MAC(3)/CONTROLS>.
  28. EVP_MAC_ctrl_str() type string for B<EVP_MAC_CTRL_SET_DIGEST>: "digest"
  29. The value is expected to be the name of a cipher.
  30. =back
  31. =head1 SEE ALSO
  32. L<EVP_MAC_ctrl(3)>, L<EVP_MAC(3)/CONTROLS>
  33. =head1 COPYRIGHT
  34. Copyright 2018 The OpenSSL Project Authors. All Rights Reserved.
  35. Licensed under the Apache License 2.0 (the "License"). You may not use
  36. this file except in compliance with the License. You can obtain a copy
  37. in the file LICENSE in the source distribution or at
  38. L<https://www.openssl.org/source/license.html>.
  39. =cut