Lines Matching refs:status
96 err_status_t status;
109 status = err_reporting_init("crypto");
110 if (status)
111 return status;
114 status = crypto_kernel_load_debug_module(&mod_crypto_kernel);
115 if (status)
116 return status;
117 status = crypto_kernel_load_debug_module(&mod_auth);
118 if (status)
119 return status;
120 status = crypto_kernel_load_debug_module(&mod_cipher);
121 if (status)
122 return status;
123 status = crypto_kernel_load_debug_module(&mod_stat);
124 if (status)
125 return status;
126 status = crypto_kernel_load_debug_module(&mod_alloc);
127 if (status)
128 return status;
131 status = rand_source_init();
132 if (status)
133 return status;
136 status = stat_test_rand_source_with_repetition(rand_source_get_octet_string, MAX_RNG_TRIALS);
137 if (status)
138 return status;
141 status = ctr_prng_init(rand_source_get_octet_string);
142 if (status)
143 return status;
146 status = stat_test_rand_source_with_repetition(ctr_prng_get_octet_string, MAX_RNG_TRIALS);
147 if (status)
148 return status;
151 status = crypto_kernel_load_cipher_type(&null_cipher, NULL_CIPHER);
152 if (status)
153 return status;
154 status = crypto_kernel_load_cipher_type(&aes_icm, AES_128_ICM);
155 if (status)
156 return status;
157 status = crypto_kernel_load_cipher_type(&aes_cbc, AES_128_CBC);
158 if (status)
159 return status;
162 status = crypto_kernel_load_auth_type(&null_auth, NULL_AUTH);
163 if (status)
164 return status;
165 status = crypto_kernel_load_auth_type(&hmac, HMAC_SHA1);
166 if (status)
167 return status;
177 err_status_t status;
184 status = stat_test_rand_source_with_repetition(rand_source_get_octet_string, MAX_RNG_TRIALS);
185 if (status) {
188 return status;
197 status = cipher_type_self_test(ctype->cipher_type);
198 if (status) {
199 printf("failed with error code %d\n", status);
200 exit(status);
211 status = auth_type_self_test(atype->auth_type);
212 if (status) {
213 printf("failed with error code %d\n", status);
214 exit(status);
254 err_status_t status;
290 /* de-initialize random number generator */ status = rand_source_deinit();
291 if (status)
292 return status;
303 err_status_t status;
310 status = cipher_type_self_test(new_ct);
311 if (status) {
312 return status;
348 err_status_t status;
355 status = auth_type_self_test(new_at);
356 if (status) {
357 return status;