Lines Matching refs:alg
43 struct skcipher_alg alg; member
116 struct skcipher_alg *alg; in simd_skcipher_init() local
119 alg = crypto_skcipher_alg(tfm); in simd_skcipher_init()
120 salg = container_of(alg, struct simd_skcipher_alg, alg); in simd_skcipher_init()
146 struct skcipher_alg *alg; in simd_skcipher_create_compat() local
163 alg = &salg->alg; in simd_skcipher_create_compat()
166 if (snprintf(alg->base.cra_name, CRYPTO_MAX_ALG_NAME, "%s", algname) >= in simd_skcipher_create_compat()
170 if (snprintf(alg->base.cra_driver_name, CRYPTO_MAX_ALG_NAME, "%s", in simd_skcipher_create_compat()
174 alg->base.cra_flags = CRYPTO_ALG_ASYNC | in simd_skcipher_create_compat()
176 alg->base.cra_priority = ialg->base.cra_priority; in simd_skcipher_create_compat()
177 alg->base.cra_blocksize = ialg->base.cra_blocksize; in simd_skcipher_create_compat()
178 alg->base.cra_alignmask = ialg->base.cra_alignmask; in simd_skcipher_create_compat()
179 alg->base.cra_module = ialg->base.cra_module; in simd_skcipher_create_compat()
180 alg->base.cra_ctxsize = sizeof(struct simd_skcipher_ctx); in simd_skcipher_create_compat()
182 alg->ivsize = ialg->ivsize; in simd_skcipher_create_compat()
183 alg->chunksize = ialg->chunksize; in simd_skcipher_create_compat()
184 alg->min_keysize = ialg->min_keysize; in simd_skcipher_create_compat()
185 alg->max_keysize = ialg->max_keysize; in simd_skcipher_create_compat()
187 alg->init = simd_skcipher_init; in simd_skcipher_create_compat()
188 alg->exit = simd_skcipher_exit; in simd_skcipher_create_compat()
190 alg->setkey = simd_skcipher_setkey; in simd_skcipher_create_compat()
191 alg->encrypt = simd_skcipher_encrypt; in simd_skcipher_create_compat()
192 alg->decrypt = simd_skcipher_decrypt; in simd_skcipher_create_compat()
194 err = crypto_register_skcipher(alg); in simd_skcipher_create_compat()
224 crypto_unregister_skcipher(&salg->alg); in simd_skcipher_free()
283 struct aead_alg alg; member
364 struct aead_alg *alg; in simd_aead_init() local
367 alg = crypto_aead_alg(tfm); in simd_aead_init()
368 salg = container_of(alg, struct simd_aead_alg, alg); in simd_aead_init()
393 struct aead_alg *alg; in simd_aead_create_compat() local
410 alg = &salg->alg; in simd_aead_create_compat()
413 if (snprintf(alg->base.cra_name, CRYPTO_MAX_ALG_NAME, "%s", algname) >= in simd_aead_create_compat()
417 if (snprintf(alg->base.cra_driver_name, CRYPTO_MAX_ALG_NAME, "%s", in simd_aead_create_compat()
421 alg->base.cra_flags = CRYPTO_ALG_ASYNC | in simd_aead_create_compat()
423 alg->base.cra_priority = ialg->base.cra_priority; in simd_aead_create_compat()
424 alg->base.cra_blocksize = ialg->base.cra_blocksize; in simd_aead_create_compat()
425 alg->base.cra_alignmask = ialg->base.cra_alignmask; in simd_aead_create_compat()
426 alg->base.cra_module = ialg->base.cra_module; in simd_aead_create_compat()
427 alg->base.cra_ctxsize = sizeof(struct simd_aead_ctx); in simd_aead_create_compat()
429 alg->ivsize = ialg->ivsize; in simd_aead_create_compat()
430 alg->maxauthsize = ialg->maxauthsize; in simd_aead_create_compat()
431 alg->chunksize = ialg->chunksize; in simd_aead_create_compat()
433 alg->init = simd_aead_init; in simd_aead_create_compat()
434 alg->exit = simd_aead_exit; in simd_aead_create_compat()
436 alg->setkey = simd_aead_setkey; in simd_aead_create_compat()
437 alg->setauthsize = simd_aead_setauthsize; in simd_aead_create_compat()
438 alg->encrypt = simd_aead_encrypt; in simd_aead_create_compat()
439 alg->decrypt = simd_aead_decrypt; in simd_aead_create_compat()
441 err = crypto_register_aead(alg); in simd_aead_create_compat()
471 crypto_unregister_aead(&salg->alg); in simd_aead_free()