siphash_local.h 639 B

1234567891011121314151617181920212223
  1. /*
  2. * Copyright 2017 The OpenSSL Project Authors. All Rights Reserved.
  3. *
  4. * Licensed under the OpenSSL license (the "License"). You may not use
  5. * this file except in compliance with the License. You can obtain a copy
  6. * in the file LICENSE in the source distribution or at
  7. * https://www.openssl.org/source/license.html
  8. */
  9. /* Based on https://131002.net/siphash C reference implementation */
  10. struct siphash_st {
  11. uint64_t total_inlen;
  12. uint64_t v0;
  13. uint64_t v1;
  14. uint64_t v2;
  15. uint64_t v3;
  16. unsigned int len;
  17. int hash_size;
  18. int crounds;
  19. int drounds;
  20. unsigned char leavings[SIPHASH_BLOCK_SIZE];
  21. };