Lines Matching defs:tfm

926 	ctx = crypto_tfm_ctx(areq->tfm);
1107 static int atmel_aes_setkey(struct crypto_skcipher *tfm, const u8 *key,
1110 struct atmel_aes_base_ctx *ctx = crypto_skcipher_ctx(tfm);
1153 static int atmel_aes_init_tfm(struct crypto_skcipher *tfm)
1155 struct atmel_aes_ctx *ctx = crypto_skcipher_ctx(tfm);
1162 crypto_skcipher_set_reqsize(tfm, sizeof(struct atmel_aes_reqctx));
1169 static int atmel_aes_ctr_init_tfm(struct crypto_skcipher *tfm)
1171 struct atmel_aes_ctx *ctx = crypto_skcipher_ctx(tfm);
1178 crypto_skcipher_set_reqsize(tfm, sizeof(struct atmel_aes_reqctx));
1315 struct crypto_aead *tfm = crypto_aead_reqtfm(req);
1317 size_t ivsize = crypto_aead_ivsize(tfm);
1352 struct crypto_aead *tfm = crypto_aead_reqtfm(req);
1357 authsize = crypto_aead_authsize(tfm);
1503 struct crypto_aead *tfm = crypto_aead_reqtfm(req);
1515 authsize = crypto_aead_authsize(tfm);
1543 static int atmel_aes_gcm_setkey(struct crypto_aead *tfm, const u8 *key,
1546 struct atmel_aes_base_ctx *ctx = crypto_aead_ctx(tfm);
1559 static int atmel_aes_gcm_setauthsize(struct crypto_aead *tfm,
1575 static int atmel_aes_gcm_init(struct crypto_aead *tfm)
1577 struct atmel_aes_gcm_ctx *ctx = crypto_aead_ctx(tfm);
1584 crypto_aead_set_reqsize(tfm, sizeof(struct atmel_aes_reqctx));
1677 static int atmel_aes_xts_setkey(struct crypto_skcipher *tfm, const u8 *key,
1680 struct atmel_aes_xts_ctx *ctx = crypto_skcipher_ctx(tfm);
1683 err = xts_verify_key(tfm, key, keylen);
1688 crypto_skcipher_set_flags(ctx->fallback_tfm, tfm->base.crt_flags &
1711 static int atmel_aes_xts_init_tfm(struct crypto_skcipher *tfm)
1713 struct atmel_aes_xts_ctx *ctx = crypto_skcipher_ctx(tfm);
1715 const char *tfm_name = crypto_tfm_alg_name(&tfm->base);
1726 crypto_skcipher_set_reqsize(tfm, sizeof(struct atmel_aes_reqctx) +
1734 static void atmel_aes_xts_exit_tfm(struct crypto_skcipher *tfm)
1736 struct atmel_aes_xts_ctx *ctx = crypto_skcipher_ctx(tfm);
1784 struct crypto_aead *tfm = crypto_aead_reqtfm(req);
1785 struct atmel_aes_authenc_ctx *ctx = crypto_aead_ctx(tfm);
1879 struct crypto_aead *tfm = crypto_aead_reqtfm(req);
1890 authsize = crypto_aead_authsize(tfm);
1903 static int atmel_aes_authenc_setkey(struct crypto_aead *tfm, const u8 *key,
1906 struct atmel_aes_authenc_ctx *ctx = crypto_aead_ctx(tfm);
1919 crypto_aead_get_flags(tfm));
1937 static int atmel_aes_authenc_init_tfm(struct crypto_aead *tfm,
1940 struct atmel_aes_authenc_ctx *ctx = crypto_aead_ctx(tfm);
1952 crypto_aead_set_reqsize(tfm, (sizeof(struct atmel_aes_authenc_reqctx) +
1960 static int atmel_aes_authenc_hmac_sha1_init_tfm(struct crypto_aead *tfm)
1962 return atmel_aes_authenc_init_tfm(tfm, SHA_FLAGS_HMAC_SHA1);
1965 static int atmel_aes_authenc_hmac_sha224_init_tfm(struct crypto_aead *tfm)
1967 return atmel_aes_authenc_init_tfm(tfm, SHA_FLAGS_HMAC_SHA224);
1970 static int atmel_aes_authenc_hmac_sha256_init_tfm(struct crypto_aead *tfm)
1972 return atmel_aes_authenc_init_tfm(tfm, SHA_FLAGS_HMAC_SHA256);
1975 static int atmel_aes_authenc_hmac_sha384_init_tfm(struct crypto_aead *tfm)
1977 return atmel_aes_authenc_init_tfm(tfm, SHA_FLAGS_HMAC_SHA384);
1980 static int atmel_aes_authenc_hmac_sha512_init_tfm(struct crypto_aead *tfm)
1982 return atmel_aes_authenc_init_tfm(tfm, SHA_FLAGS_HMAC_SHA512);
1985 static void atmel_aes_authenc_exit_tfm(struct crypto_aead *tfm)
1987 struct atmel_aes_authenc_ctx *ctx = crypto_aead_ctx(tfm);
1996 struct crypto_aead *tfm = crypto_aead_reqtfm(req);
1997 struct atmel_aes_base_ctx *ctx = crypto_aead_ctx(tfm);
1998 u32 authsize = crypto_aead_authsize(tfm);