1 /*****************************************************************************
3 *****************************************************************************/
5 /*****************************************************************************/
6 /** @file common/api/n8_pub_enums.c
7 * @brief Generated file for converting enum values to text.
9 * This file generated by genEnumText.py. Do not edit by hand.
11 *****************************************************************************/
13 /*****************************************************************************
15 * 03/02/04 --- Generated.
16 ****************************************************************************/
18 #include "n8_pub_enums.h"
20 /*****************************************************************************/
21 const char * N8_Hardware_t_text(const N8_Hardware_t enumValue
)
27 ret
= "N8_NSP2000_HW";
36 ret
= "Invalid enumeration value for N8_Hardware_t";
40 } /* N8_Hardware_t_text */
42 /*****************************************************************************/
43 const char * N8_QueueStatusCodes_t_text(const N8_QueueStatusCodes_t enumValue
)
48 case N8_QUEUE_REQUEST_SENT_FROM_API
:
49 ret
= "N8_QUEUE_REQUEST_SENT_FROM_API";
51 case N8_QUEUE_REQUEST_QUEUED
:
52 ret
= "N8_QUEUE_REQUEST_QUEUED";
54 case N8_QUEUE_REQUEST_FINISHED
:
55 ret
= "N8_QUEUE_REQUEST_FINISHED";
57 case N8_QUEUE_REQUEST_COMMAND_ERROR
:
58 ret
= "N8_QUEUE_REQUEST_COMMAND_ERROR";
61 ret
= "Invalid enumeration value for N8_QueueStatusCodes_t";
65 } /* N8_QueueStatusCodes_t_text */
67 /*****************************************************************************/
68 const char * N8_Status_t_text(const N8_Status_t enumValue
)
76 case N8_EVENT_COMPLETE
:
77 ret
= "N8_EVENT_COMPLETE";
79 case N8_EVENT_INCOMPLETE
:
80 ret
= "N8_EVENT_INCOMPLETE";
82 case N8_INVALID_INPUT_SIZE
:
83 ret
= "N8_INVALID_INPUT_SIZE";
85 case N8_INVALID_OUTPUT_SIZE
:
86 ret
= "N8_INVALID_OUTPUT_SIZE";
89 ret
= "N8_INVALID_ENUM";
91 case N8_INVALID_PARAMETER
:
92 ret
= "N8_INVALID_PARAMETER";
94 case N8_INVALID_OBJECT
:
95 ret
= "N8_INVALID_OBJECT";
98 ret
= "N8_INVALID_KEY";
100 case N8_INVALID_KEY_SIZE
:
101 ret
= "N8_INVALID_KEY_SIZE";
103 case N8_INVALID_PROTOCOL
:
104 ret
= "N8_INVALID_PROTOCOL";
106 case N8_INVALID_CIPHER
:
107 ret
= "N8_INVALID_CIPHER";
109 case N8_INVALID_HASH
:
110 ret
= "N8_INVALID_HASH";
112 case N8_INVALID_VALUE
:
113 ret
= "N8_INVALID_VALUE";
115 case N8_INVALID_VERSION
:
116 ret
= "N8_INVALID_VERSION";
118 case N8_INCONSISTENT
:
119 ret
= "N8_INCONSISTENT";
121 case N8_NOT_INITIALIZED
:
122 ret
= "N8_NOT_INITIALIZED";
124 case N8_UNALLOCATED_CONTEXT
:
125 ret
= "N8_UNALLOCATED_CONTEXT";
127 case N8_NO_MORE_RESOURCE
:
128 ret
= "N8_NO_MORE_RESOURCE";
130 case N8_HARDWARE_ERROR
:
131 ret
= "N8_HARDWARE_ERROR";
133 case N8_UNEXPECTED_ERROR
:
134 ret
= "N8_UNEXPECTED_ERROR";
136 case N8_UNIMPLEMENTED_FUNCTION
:
137 ret
= "N8_UNIMPLEMENTED_FUNCTION";
139 case N8_MALLOC_FAILED
:
140 ret
= "N8_MALLOC_FAILED";
145 case N8_VERIFICATION_FAILED
:
146 ret
= "N8_VERIFICATION_FAILED";
148 case N8_ALREADY_INITIALIZED
:
149 ret
= "N8_ALREADY_INITIALIZED";
152 ret
= "N8_FILE_ERROR";
154 case N8_STATUS_ATTACH_OK
:
155 ret
= "N8_STATUS_ATTACH_OK";
158 ret
= "N8_QUEUE_ERROR";
160 case N8_INVALID_UNIT
:
161 ret
= "N8_INVALID_UNIT";
163 case N8_UNALIGNED_ADDRESS
:
164 ret
= "N8_UNALIGNED_ADDRESS";
167 ret
= "N8_QUEUE_FULL";
169 case N8_INVALID_DRIVER_VERSION
:
170 ret
= "N8_INVALID_DRIVER_VERSION";
172 case N8_HARDWARE_UNAVAILABLE
:
173 ret
= "N8_HARDWARE_UNAVAILABLE";
175 case N8_API_QUEUE_FULL
:
176 ret
= "N8_API_QUEUE_FULL";
178 case N8_RNG_QUEUE_EMPTY
:
179 ret
= "N8_RNG_QUEUE_EMPTY";
184 case N8_INCOMPATIBLE_OPEN
:
185 ret
= "N8_INCOMPATIBLE_OPEN";
187 case N8_EVENT_ALLOC_FAILED
:
188 ret
= "N8_EVENT_ALLOC_FAILED";
190 case N8_THREAD_INIT_FAILED
:
191 ret
= "N8_THREAD_INIT_FAILED";
193 case N8_EVENT_QUEUE_FULL
:
194 ret
= "N8_EVENT_QUEUE_FULL";
197 ret
= "Invalid enumeration value for N8_Status_t";
201 } /* N8_Status_t_text */
203 /*****************************************************************************/
204 const char * N8_HashProtocol_t_text(const N8_HashProtocol_t enumValue
)
210 ret
= "N8_TLS_FINISH";
216 ret
= "N8_SSL_FINISH";
222 ret
= "Invalid enumeration value for N8_HashProtocol_t";
226 } /* N8_HashProtocol_t_text */
228 /*****************************************************************************/
229 const char * N8_SKSKeyType_t_text(const N8_SKSKeyType_t enumValue
)
234 case N8_RSA_VERSION_1_KEY
:
235 ret
= "N8_RSA_VERSION_1_KEY";
237 case N8_DSA_VERSION_1_KEY
:
238 ret
= "N8_DSA_VERSION_1_KEY";
241 ret
= "Invalid enumeration value for N8_SKSKeyType_t";
245 } /* N8_SKSKeyType_t_text */
247 /*****************************************************************************/
248 const char * N8_Cipher_t_text(const N8_Cipher_t enumValue
)
254 ret
= "N8_CIPHER_ARC4";
257 ret
= "N8_CIPHER_DES";
260 ret
= "Invalid enumeration value for N8_Cipher_t";
264 } /* N8_Cipher_t_text */
266 /*****************************************************************************/
267 const char * N8_Component_t_text(const N8_Component_t enumValue
)
281 case N8_NUM_COMPONENTS
:
282 ret
= "N8_NUM_COMPONENTS";
285 ret
= "Invalid enumeration value for N8_Component_t";
289 } /* N8_Component_t_text */
291 /*****************************************************************************/
292 const char * N8_KeyType_t_text(const N8_KeyType_t enumValue
)
304 ret
= "N8_PRIVATE_CRT";
307 ret
= "N8_PRIVATE_SKS";
310 ret
= "Invalid enumeration value for N8_KeyType_t";
314 } /* N8_KeyType_t_text */
316 /*****************************************************************************/
317 const char * N8_HashRole_t_text(const N8_HashRole_t enumValue
)
329 ret
= "Invalid enumeration value for N8_HashRole_t";
333 } /* N8_HashRole_t_text */
335 /*****************************************************************************/
336 const char * N8_Parameter_t_text(const N8_Parameter_t enumValue
)
359 case N8_HARDWAREVERSION
:
360 ret
= "N8_HARDWAREVERSION";
362 case N8_SOFTWAREVERSION
:
363 ret
= "N8_SOFTWAREVERSION";
365 case N8_CONTEXTMEMSIZE
:
366 ret
= "N8_CONTEXTMEMSIZE";
369 ret
= "N8_SKSMEMSIZE";
371 case N8_NUMBEROFCHIPS
:
372 ret
= "N8_NUMBEROFCHIPS";
374 case N8_SWVERSIONTEXT
:
375 ret
= "N8_SWVERSIONTEXT";
377 case N8_FILEDESCRIPTOR
:
378 ret
= "N8_FILEDESCRIPTOR";
380 case N8_INITIALIZE_INFO
:
381 ret
= "N8_INITIALIZE_INFO";
383 case N8_HARDWAREREVISION
:
384 ret
= "N8_HARDWAREREVISION";
387 ret
= "Invalid enumeration value for N8_Parameter_t";
391 } /* N8_Parameter_t_text */
393 /*****************************************************************************/
394 const char * N8_Boolean_t_text(const N8_Boolean_t enumValue
)
406 ret
= "Invalid enumeration value for N8_Boolean_t";
410 } /* N8_Boolean_t_text */
412 /*****************************************************************************/
413 const char * N8_Protocol_t_text(const N8_Protocol_t enumValue
)
418 case N8_PROTOCOL_SSL
:
419 ret
= "N8_PROTOCOL_SSL";
421 case N8_PROTOCOL_TLS
:
422 ret
= "N8_PROTOCOL_TLS";
424 case N8_PROTOCOL_IPSEC
:
425 ret
= "N8_PROTOCOL_IPSEC";
428 ret
= "Invalid enumeration value for N8_Protocol_t";
432 } /* N8_Protocol_t_text */
434 /*****************************************************************************/
435 const char * N8_PacketMemoryMode_t_text(const N8_PacketMemoryMode_t enumValue
)
440 case N8_PACKETMEMORY_NONE
:
441 ret
= "N8_PACKETMEMORY_NONE";
443 case N8_PACKETMEMORY_REQUEST
:
444 ret
= "N8_PACKETMEMORY_REQUEST";
447 ret
= "Invalid enumeration value for N8_PacketMemoryMode_t";
451 } /* N8_PacketMemoryMode_t_text */
453 /*****************************************************************************/
454 const char * N8_HashAlgorithm_t_text(const N8_HashAlgorithm_t enumValue
)
469 ret
= "N8_HMAC_SHA1";
472 ret
= "N8_HMAC_MD5_96";
474 case N8_HMAC_SHA1_96
:
475 ret
= "N8_HMAC_SHA1_96";
478 ret
= "N8_HASH_NONE";
481 ret
= "Invalid enumeration value for N8_HashAlgorithm_t";
485 } /* N8_HashAlgorithm_t_text */
487 /*****************************************************************************/
488 const char * N8_MemoryType_t_text(const N8_MemoryType_t enumValue
)
493 case N8_MEMBANK_QUEUE
:
494 ret
= "N8_MEMBANK_QUEUE";
497 ret
= "N8_MEMBANK_EA";
500 ret
= "N8_MEMBANK_PK";
502 case N8_MEMBANK_USERPOOL
:
503 ret
= "N8_MEMBANK_USERPOOL";
506 ret
= "N8_MEMBANK_MAX";
509 ret
= "Invalid enumeration value for N8_MemoryType_t";
513 } /* N8_MemoryType_t_text */