EVP_MAC-KMAC.pod 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. =pod
  2. =head1 NAME
  3. EVP_MAC-KMAC, EVP_MAC-KMAC128, EVP_MAC-KMAC256
  4. - The KMAC EVP_MAC implementations
  5. =head1 DESCRIPTION
  6. Support for computing KMAC MACs through the B<EVP_MAC> API.
  7. =head2 Identity
  8. These implementations are identified with one of these names and
  9. properties, to be used with EVP_MAC_fetch():
  10. =over 4
  11. =item "KMAC-128", "default=yes"
  12. =item "KMAC-256", "default=yes"
  13. =back
  14. =head2 Supported parameters
  15. The general description of these parameters can be found in
  16. L<EVP_MAC(3)/PARAMETERS>.
  17. All these parameters can be set with EVP_MAC_CTX_set_params().
  18. Furthermore, the "size" parameter can be retrieved with
  19. EVP_MAC_CTX_get_params(), or with EVP_MAC_size().
  20. The length of the "size" parameter should not exceed that of a B<size_t>.
  21. =over 4
  22. =item "key" (B<OSSL_MAC_PARAM_KEY>) <octet string>
  23. =item "custom" (B<OSSL_MAC_PARAM_CUSTOM>) <octet string>
  24. =item "size" (B<OSSL_MAC_PARAM_SIZE>) <unsigned integer>
  25. =item "xof" (B<OSSL_MAC_PARAM_XOF>) <integer>
  26. =back
  27. The "xof" parameter value is expected to be 1 or 0. Use 1 to enable XOF
  28. mode. If XOF is enabled then the output length that is encoded as part of
  29. the input stream is set to zero.
  30. =head1 SEE ALSO
  31. L<EVP_MAC_CTX_get_params(3)>, L<EVP_MAC_CTX_set_params(3)>,
  32. L<EVP_MAC(3)/PARAMETERS>, L<OSSL_PARAM(3)>
  33. =head1 COPYRIGHT
  34. Copyright 2018-2019 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