wlan_crypto_aes_siv_i.h 835 B

1234567891011121314151617181920212223242526272829
  1. /*
  2. * Copyright (c) 2017 The Linux Foundation. All rights reserved.
  3. */
  4. /*
  5. * AES SIV (RFC 5297)
  6. * Copyright (c) 2013 Cozybit, Inc.
  7. *
  8. * This software may be distributed under the terms of the BSD license.
  9. * See README for more details.
  10. */
  11. #ifndef _WLAN_CRYPTO_AES_SIV_I_H_
  12. #define _WLAN_CRYPTO_AES_SIV_I_H_
  13. #ifdef WLAN_SUPPORT_FILS
  14. int32_t wlan_crypto_aes_siv_encrypt(const uint8_t *key, size_t key_len,
  15. const uint8_t *pw, size_t pwlen,
  16. size_t num_elem, const uint8_t *addr[],
  17. const size_t *len, uint8_t *out);
  18. int32_t wlan_crypto_aes_siv_decrypt(const uint8_t *key, size_t key_len,
  19. const uint8_t *iv_crypt, size_t iv_c_len,
  20. size_t num_elem, const uint8_t *addr[],
  21. const size_t *len, uint8_t *out);
  22. #endif /* WLAN_SUPPORT_FILS */
  23. #endif /* end of _WLAN_CRYPTO_AES_SIV_I_H_ */