Home | History | Annotate | Download | only in kernel

Lines Matching full:crypto_kernel

2  * crypto_kernel.c
48 #include "crypto_kernel.h"
50 /* the debug module for the crypto_kernel */
82 /* crypto_kernel is a global variable, the only one of its datatype */
85 crypto_kernel = {
99 if (crypto_kernel.state == crypto_kernel_state_secure) {
170 crypto_kernel.state = crypto_kernel_state_secure;
178 kernel_cipher_type_t *ctype = crypto_kernel.cipher_type_list;
179 kernel_auth_type_t *atype = crypto_kernel.auth_type_list;
180 kernel_debug_module_t *dm = crypto_kernel.debug_module_list;
187 crypto_kernel.state = crypto_kernel_state_insecure;
236 kernel_debug_module_t *dm = crypto_kernel.debug_module_list;
257 * free dynamic memory used in crypto_kernel at present
261 while (crypto_kernel.cipher_type_list != NULL) {
262 kernel_cipher_type_t *ctype = crypto_kernel.cipher_type_list;
263 crypto_kernel.cipher_type_list = ctype->next;
271 while (crypto_kernel.auth_type_list != NULL) {
272 kernel_auth_type_t *atype = crypto_kernel.auth_type_list;
273 crypto_kernel.auth_type_list = atype->next;
281 while (crypto_kernel.debug_module_list != NULL) {
282 kernel_debug_module_t *kdm = crypto_kernel.debug_module_list;
283 crypto_kernel.debug_module_list = kdm->next;
295 crypto_kernel.state = crypto_kernel_state_insecure;
316 ctype = crypto_kernel.cipher_type_list;
332 new_ctype->next = crypto_kernel.cipher_type_list;
335 crypto_kernel.cipher_type_list = new_ctype;
361 atype = crypto_kernel.auth_type_list;
377 new_atype->next = crypto_kernel.auth_type_list;
380 crypto_kernel.auth_type_list = new_atype;
397 ctype = crypto_kernel.cipher_type_list;
416 * if the crypto_kernel is not yet initialized, we refuse to allocate
419 if (crypto_kernel.state != crypto_kernel_state_secure)
436 atype = crypto_kernel.auth_type_list;
455 * if the crypto_kernel is not yet initialized, we refuse to allocate
458 if (crypto_kernel.state != crypto_kernel_state_secure)
477 kdm = crypto_kernel.debug_module_list;
492 new->next = crypto_kernel.debug_module_list;
495 crypto_kernel.debug_module_list = new;
505 kdm = crypto_kernel.debug_module_list;
519 if (crypto_kernel.state == crypto_kernel_state_secure)