nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches
statuscodes.h
Go to the documentation of this file.
1/*
2 * Copyright (c) 2023 Nordic Semiconductor ASA
3 *
4 * SPDX-License-Identifier: LicenseRef-Nordic-5-Clause
5 */
6
7#ifndef CRACEN_STATUSCODES_HEADER_FILE
8#define CRACEN_STATUSCODES_HEADER_FILE
9
21#define SX_OK 0
22
24#define SX_ERR_INVALID_PARAM 1
25
27#define SX_ERR_UNKNOWN_ERROR 2
28
30#define SX_ERR_BUSY 3
31
33#define SX_ERR_NOT_QUADRATIC_RESIDUE 4
34
36#define SX_ERR_COMPOSITE_VALUE 5
37
39#define SX_ERR_NOT_INVERTIBLE 6
40
46#define SX_ERR_INVALID_SIGNATURE 7
47
49#define SX_ERR_NOT_IMPLEMENTED 8
50
56#define SX_ERR_INVALID_MICROCODE 9
57
59#define SX_ERR_POINT_AT_INFINITY SX_ERR_INVALID_MICROCODE
60
62#define SX_ERR_OUT_OF_RANGE 10
63
69#define SX_ERR_INVALID_MODULUS 11
70
72#define SX_ERR_POINT_NOT_ON_CURVE 12
73
82#define SX_ERR_OPERAND_TOO_LARGE 13
83
85#define SX_ERR_PLATFORM_ERROR 14
86
88#define SX_ERR_EXPIRED 15
89
97#define SX_ERR_IK_MODE 16
98
100#define SX_ERR_INVALID_CURVE_PARAM 17
101
108#define SX_ERR_IK_NOT_READY 18
109
111#define SX_ERR_PK_RETRY 19
112
116#define SX_ERR_BAD_ORDER 20
117
119#define SX_ERR_INVALID_REQ_SZ 100
120
122#define SX_ERR_RESEED_NEEDED 101
123
125#define SX_ERR_INVALID_ARG 102
126
128#define SX_ERR_READY 103
129
131#define SX_ERR_UNSUPPORTED_HASH_ALG 104
132
134#define SX_ERR_INVALID_CIPHERTEXT 105
135
137#define SX_ERR_TOO_MANY_ATTEMPTS 106
138
140#define SX_ERR_RSA_PQ_RANGE_CHECK_FAIL 107
141
143#define SX_ERR_WORKMEM_BUFFER_TOO_SMALL 109
144
146#define SX_ERR_HW_PROCESSING -1
147
149#define SX_ERR_RETRY -2
150
156#define SX_ERR_INCOMPATIBLE_HW -3
157
159#define SX_ERR_INVALID_TAG -16
160
167#define SX_ERR_DMA_FAILED -32
168
174#define SX_ERR_UNINITIALIZED_OBJ -33
175
184#define SX_ERR_INVALID_KEYREF -34
185
187#define SX_ERR_ALLOCATION_TOO_SMALL -35
188
190#define SX_ERR_TOO_BIG -64
191
193#define SX_ERR_OUTPUT_BUFFER_TOO_SMALL -65
194
196#define SX_ERR_INVALID_KEY_SZ -66
197
199#define SX_ERR_INVALID_TAG_SIZE -67
200
202#define SX_ERR_INVALID_NONCE_SIZE -68
203
205#define SX_ERR_FEED_COUNT_EXCEEDED -69
206
208#define SX_ERR_WRONG_SIZE_GRANULARITY -70
209
211#define SX_ERR_HW_KEY_NOT_SUPPORTED -71
212
214#define SX_ERR_CONTEXT_SAVING_NOT_SUPPORTED -72
215
217#define SX_ERR_FEED_AFTER_DATA -73
218
219
226#define SX_ERR_RESET_NEEDED -82
227
233#define SX_ERR_SELF_TEST_FAILURE -83
234
236#define SX_ERR_INPUT_BUFFER_TOO_SMALL -84
237
239#define SX_ERR_INSUFFICIENT_ENTROPY -85
240
242#define SX_ERR_CORRUPTION_DETECTED -86
243
246#endif