crypto.h 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. /*
  2. * crypto.h
  3. *
  4. * API for libcrypto
  5. *
  6. * David A. McGrew
  7. * Cisco Systems, Inc.
  8. */
  9. #ifndef CRYPTO_H
  10. #define CRYPTO_H
  11. /**
  12. * @brief A cipher_type_id_t is an identifier for a particular cipher
  13. * type.
  14. *
  15. * A cipher_type_id_t is an integer that represents a particular
  16. * cipher type, e.g. the Advanced Encryption Standard (AES). A
  17. * NULL_CIPHER is avaliable; this cipher leaves the data unchanged,
  18. * and can be selected to indicate that no encryption is to take
  19. * place.
  20. *
  21. * @ingroup Ciphers
  22. */
  23. typedef uint32_t cipher_type_id_t;
  24. /**
  25. * @brief An auth_type_id_t is an identifier for a particular authentication
  26. * function.
  27. *
  28. * An auth_type_id_t is an integer that represents a particular
  29. * authentication function type, e.g. HMAC-SHA1. A NULL_AUTH is
  30. * avaliable; this authentication function performs no computation,
  31. * and can be selected to indicate that no authentication is to take
  32. * place.
  33. *
  34. * @ingroup Authentication
  35. */
  36. typedef uint32_t auth_type_id_t;
  37. #endif /* CRYPTO_H */