polyval.h 445 B

12345678910111213141516171819202122
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. /*
  3. * Common values for the Polyval hash algorithm
  4. *
  5. * Copyright 2021 Google LLC
  6. */
  7. #ifndef _CRYPTO_POLYVAL_H
  8. #define _CRYPTO_POLYVAL_H
  9. #include <linux/types.h>
  10. #include <linux/crypto.h>
  11. #define POLYVAL_BLOCK_SIZE 16
  12. #define POLYVAL_DIGEST_SIZE 16
  13. void polyval_mul_non4k(u8 *op1, const u8 *op2);
  14. void polyval_update_non4k(const u8 *key, const u8 *in,
  15. size_t nblocks, u8 *accumulator);
  16. #endif