drv_crypto.h 587 B

1234567891011121314151617181920212223242526272829303132333435
  1. /*
  2. * Copyright (c) 2006-2023, RT-Thread Development Team
  3. *
  4. * SPDX-License-Identifier: Apache-2.0
  5. *
  6. * Change Logs:
  7. * Date Author Notes
  8. * 2022-04-21 wolfJane first version
  9. */
  10. #ifndef __DRV_CRYPTO_H_
  11. #define __DRV_CRYPTO_H_
  12. #include <rtthread.h>
  13. #include <rtdevice.h>
  14. #include <n32g45x.h>
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. #define CRC32_PLOY (0x04C11DB7)
  19. #define CRC16_PLOY (0x8005)
  20. struct n32_hwcrypto_device
  21. {
  22. struct rt_hwcrypto_device dev;
  23. struct rt_mutex mutex;
  24. };
  25. #ifdef __cplusplus
  26. }
  27. #endif
  28. #endif /* __DRV_CRYPTO_H_ */