Lines Matching refs:crypto_kernel
85 crypto_kernel = { variable
99 if (crypto_kernel.state == crypto_kernel_state_secure) { in crypto_kernel_init()
170 crypto_kernel.state = crypto_kernel_state_secure; in crypto_kernel_init()
178 kernel_cipher_type_t *ctype = crypto_kernel.cipher_type_list; in crypto_kernel_status()
179 kernel_auth_type_t *atype = crypto_kernel.auth_type_list; in crypto_kernel_status()
180 kernel_debug_module_t *dm = crypto_kernel.debug_module_list; in crypto_kernel_status()
187 crypto_kernel.state = crypto_kernel_state_insecure; in crypto_kernel_status()
236 kernel_debug_module_t *dm = crypto_kernel.debug_module_list; in crypto_kernel_list_debug_modules()
261 while (crypto_kernel.cipher_type_list != NULL) { in crypto_kernel_shutdown()
262 kernel_cipher_type_t *ctype = crypto_kernel.cipher_type_list; in crypto_kernel_shutdown()
263 crypto_kernel.cipher_type_list = ctype->next; in crypto_kernel_shutdown()
271 while (crypto_kernel.auth_type_list != NULL) { in crypto_kernel_shutdown()
272 kernel_auth_type_t *atype = crypto_kernel.auth_type_list; in crypto_kernel_shutdown()
273 crypto_kernel.auth_type_list = atype->next; in crypto_kernel_shutdown()
281 while (crypto_kernel.debug_module_list != NULL) { in crypto_kernel_shutdown()
282 kernel_debug_module_t *kdm = crypto_kernel.debug_module_list; in crypto_kernel_shutdown()
283 crypto_kernel.debug_module_list = kdm->next; in crypto_kernel_shutdown()
295 crypto_kernel.state = crypto_kernel_state_insecure; in crypto_kernel_shutdown()
316 ctype = crypto_kernel.cipher_type_list; in crypto_kernel_load_cipher_type()
332 new_ctype->next = crypto_kernel.cipher_type_list; in crypto_kernel_load_cipher_type()
335 crypto_kernel.cipher_type_list = new_ctype; in crypto_kernel_load_cipher_type()
361 atype = crypto_kernel.auth_type_list; in crypto_kernel_load_auth_type()
377 new_atype->next = crypto_kernel.auth_type_list; in crypto_kernel_load_auth_type()
380 crypto_kernel.auth_type_list = new_atype; in crypto_kernel_load_auth_type()
397 ctype = crypto_kernel.cipher_type_list; in crypto_kernel_get_cipher_type()
419 if (crypto_kernel.state != crypto_kernel_state_secure) in crypto_kernel_alloc_cipher()
436 atype = crypto_kernel.auth_type_list; in crypto_kernel_get_auth_type()
458 if (crypto_kernel.state != crypto_kernel_state_secure) in crypto_kernel_alloc_auth()
477 kdm = crypto_kernel.debug_module_list; in crypto_kernel_load_debug_module()
492 new->next = crypto_kernel.debug_module_list; in crypto_kernel_load_debug_module()
495 crypto_kernel.debug_module_list = new; in crypto_kernel_load_debug_module()
505 kdm = crypto_kernel.debug_module_list; in crypto_kernel_set_debug_module()
519 if (crypto_kernel.state == crypto_kernel_state_secure) in crypto_get_random()