package argon2

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t =
  1. | OK
  2. | OUTPUT_PTR_NULL
  3. | OUTPUT_TOO_SHORT
  4. | OUTPUT_TOO_LONG
  5. | PWD_TOO_SHORT
  6. | PWD_TOO_LONG
  7. | SALT_TOO_SHORT
  8. | SALT_TOO_LONG
  9. | AD_TOO_SHORT
  10. | AD_TOO_LONG
  11. | SECRET_TOO_SHORT
  12. | SECRET_TOO_LONG
  13. | TIME_TOO_SMALL
  14. | TIME_TOO_LARGE
  15. | MEMORY_TOO_LITTLE
  16. | MEMORY_TOO_MUCH
  17. | LANES_TOO_FEW
  18. | LANES_TOO_MANY
  19. | PWD_PTR_MISMATCH
  20. | SALT_PTR_MISMATCH
  21. | SECRET_PTR_MISMATCH
  22. | AD_PTR_MISMATCH
  23. | MEMORY_ALLOCATION_ERROR
  24. | FREE_MEMORY_CBK_NULL
  25. | ALLOCATE_MEMORY_CBK_NULL
  26. | INCORRECT_PARAMETER
  27. | INCORRECT_TYPE
  28. | OUT_PTR_MISMATCH
  29. | THREADS_TOO_FEW
  30. | THREADS_TOO_MANY
  31. | MISSING_ARGS
  32. | ENCODING_FAIL
  33. | DECODING_FAIL
  34. | THREAD_FAIL
  35. | DECODING_LENGTH_FAIL
  36. | VERIFY_MISMATCH
  37. | Other of int
val message : t -> string

Get the associated error message for given error code.