package pkcs11

  1. Overview
  2. Docs
type t =
  1. | CKR_OK
  2. | CKR_CANCEL
  3. | CKR_HOST_MEMORY
  4. | CKR_SLOT_ID_INVALID
  5. | CKR_GENERAL_ERROR
  6. | CKR_FUNCTION_FAILED
  7. | CKR_ARGUMENTS_BAD
  8. | CKR_NO_EVENT
  9. | CKR_NEED_TO_CREATE_THREADS
  10. | CKR_CANT_LOCK
  11. | CKR_ATTRIBUTE_READ_ONLY
  12. | CKR_ATTRIBUTE_SENSITIVE
  13. | CKR_ATTRIBUTE_TYPE_INVALID
  14. | CKR_ATTRIBUTE_VALUE_INVALID
  15. | CKR_ACTION_PROHIBITED
  16. | CKR_DATA_INVALID
  17. | CKR_DATA_LEN_RANGE
  18. | CKR_DEVICE_ERROR
  19. | CKR_DEVICE_MEMORY
  20. | CKR_DEVICE_REMOVED
  21. | CKR_ENCRYPTED_DATA_INVALID
  22. | CKR_ENCRYPTED_DATA_LEN_RANGE
  23. | CKR_FUNCTION_CANCELED
  24. | CKR_FUNCTION_NOT_PARALLEL
  25. | CKR_FUNCTION_NOT_SUPPORTED
  26. | CKR_KEY_HANDLE_INVALID
  27. | CKR_KEY_SIZE_RANGE
  28. | CKR_KEY_TYPE_INCONSISTENT
  29. | CKR_KEY_NOT_NEEDED
  30. | CKR_KEY_CHANGED
  31. | CKR_KEY_NEEDED
  32. | CKR_KEY_INDIGESTIBLE
  33. | CKR_KEY_FUNCTION_NOT_PERMITTED
  34. | CKR_KEY_NOT_WRAPPABLE
  35. | CKR_KEY_UNEXTRACTABLE
  36. | CKR_MECHANISM_INVALID
  37. | CKR_MECHANISM_PARAM_INVALID
  38. | CKR_OBJECT_HANDLE_INVALID
  39. | CKR_OPERATION_ACTIVE
  40. | CKR_OPERATION_NOT_INITIALIZED
  41. | CKR_PIN_INCORRECT
  42. | CKR_PIN_INVALID
  43. | CKR_PIN_LEN_RANGE
  44. | CKR_PIN_EXPIRED
  45. | CKR_PIN_LOCKED
  46. | CKR_SESSION_CLOSED
  47. | CKR_SESSION_COUNT
  48. | CKR_SESSION_HANDLE_INVALID
  49. | CKR_SESSION_PARALLEL_NOT_SUPPORTED
  50. | CKR_SESSION_READ_ONLY
  51. | CKR_SESSION_EXISTS
  52. | CKR_SESSION_READ_ONLY_EXISTS
  53. | CKR_SESSION_READ_WRITE_SO_EXISTS
  54. | CKR_SIGNATURE_INVALID
  55. | CKR_SIGNATURE_LEN_RANGE
  56. | CKR_TEMPLATE_INCOMPLETE
  57. | CKR_TEMPLATE_INCONSISTENT
  58. | CKR_TOKEN_NOT_PRESENT
  59. | CKR_TOKEN_NOT_RECOGNIZED
  60. | CKR_TOKEN_WRITE_PROTECTED
  61. | CKR_UNWRAPPING_KEY_HANDLE_INVALID
  62. | CKR_UNWRAPPING_KEY_SIZE_RANGE
  63. | CKR_UNWRAPPING_KEY_TYPE_INCONSISTENT
  64. | CKR_USER_ALREADY_LOGGED_IN
  65. | CKR_USER_NOT_LOGGED_IN
  66. | CKR_USER_PIN_NOT_INITIALIZED
  67. | CKR_USER_TYPE_INVALID
  68. | CKR_USER_ANOTHER_ALREADY_LOGGED_IN
  69. | CKR_USER_TOO_MANY_TYPES
  70. | CKR_WRAPPED_KEY_INVALID
  71. | CKR_WRAPPED_KEY_LEN_RANGE
  72. | CKR_WRAPPING_KEY_HANDLE_INVALID
  73. | CKR_WRAPPING_KEY_SIZE_RANGE
  74. | CKR_WRAPPING_KEY_TYPE_INCONSISTENT
  75. | CKR_RANDOM_SEED_NOT_SUPPORTED
  76. | CKR_RANDOM_NO_RNG
  77. | CKR_DOMAIN_PARAMS_INVALID
  78. | CKR_CURVE_NOT_SUPPORTED
  79. | CKR_BUFFER_TOO_SMALL
  80. | CKR_SAVED_STATE_INVALID
  81. | CKR_INFORMATION_SENSITIVE
  82. | CKR_STATE_UNSAVEABLE
  83. | CKR_CRYPTOKI_NOT_INITIALIZED
  84. | CKR_CRYPTOKI_ALREADY_INITIALIZED
  85. | CKR_MUTEX_BAD
  86. | CKR_MUTEX_NOT_LOCKED
  87. | CKR_NEW_PIN_MODE
  88. | CKR_NEXT_OTP
  89. | CKR_EXCEEDED_MAX_ITERATIONS
  90. | CKR_FIPS_SELF_TEST_FAILED
  91. | CKR_LIBRARY_LOAD_FAILED
  92. | CKR_PIN_TOO_WEAK
  93. | CKR_PUBLIC_KEY_INVALID
  94. | CKR_FUNCTION_REJECTED
  95. | CKR_VENDOR_DEFINED
  96. | CKR_CS_UNKNOWN of Unsigned.ULong.t
val equal : t -> t -> Ppx_deriving_runtime.bool
val compare : t -> t -> Ppx_deriving_runtime.int
val pp : Ppx_deriving_runtime.Format.formatter -> t -> Ppx_deriving_runtime.unit
val to_yojson : t -> Yojson.Safe.t
val to_string : t -> string
val of_string : string -> t
OCaml

Innovation. Community. Security.