yd_des_cbc.h 597 B

1234567891011121314151617181920212223242526272829
  1. /* Apache License 2.0 */
  2. /*
  3. 文件:yd_des_cbc.h
  4. 作者:wzh
  5. 邮箱:wangzhihai_138@163.com
  6. 简介:DES算法模式CBC(Cipher Block Chaining)实现,详情参考《FIPS PUB 81》
  7. 版本:README.md定义
  8. */
  9. #ifndef YD_DES_CBC_H
  10. #define YD_DES_CBC_H
  11. #ifdef __cplusplus
  12. extern "C" {
  13. #endif
  14. #include <stdint.h>
  15. void yd_des_cbc_encrypt(uint8_t *in, uint8_t *out, uint8_t *key, uint8_t *iv, uint32_t blk);
  16. void yd_des_cbc_decrypt(uint8_t *in, uint8_t *out, uint8_t *key, uint8_t *iv, uint32_t blk);
  17. #ifdef __cplusplus
  18. }
  19. #endif
  20. #endif /* YD_DES_CBC_H */