Lines Matching refs:driver_alg
4369 static int spu_register_skcipher(struct iproc_alg_s *driver_alg) in spu_register_skcipher() argument
4371 struct skcipher_alg *crypto = &driver_alg->alg.skcipher; in spu_register_skcipher()
4391 driver_alg->registered = true; in spu_register_skcipher()
4396 static int spu_register_ahash(struct iproc_alg_s *driver_alg) in spu_register_ahash() argument
4399 struct ahash_alg *hash = &driver_alg->alg.hash; in spu_register_ahash()
4403 if ((driver_alg->auth_info.alg == HASH_ALG_AES) && in spu_register_ahash()
4404 (driver_alg->auth_info.mode != HASH_MODE_XCBC) && in spu_register_ahash()
4409 if ((driver_alg->auth_info.alg >= HASH_ALG_SHA3_224) && in spu_register_ahash()
4423 if (driver_alg->auth_info.mode != HASH_MODE_HMAC) { in spu_register_ahash()
4429 if ((driver_alg->auth_info.alg == HASH_ALG_AES) && in spu_register_ahash()
4430 ((driver_alg->auth_info.mode == HASH_MODE_XCBC) || in spu_register_ahash()
4431 (driver_alg->auth_info.mode == HASH_MODE_CMAC))) { in spu_register_ahash()
4448 driver_alg->registered = true; in spu_register_ahash()
4454 static int spu_register_aead(struct iproc_alg_s *driver_alg) in spu_register_aead() argument
4456 struct aead_alg *aead = &driver_alg->alg.aead; in spu_register_aead()
4475 driver_alg->registered = true; in spu_register_aead()