Lines Matching defs:tfm
967 ctx = crypto_tfm_ctx(areq->tfm);
1136 static int atmel_aes_setkey(struct crypto_skcipher *tfm, const u8 *key,
1139 struct atmel_aes_base_ctx *ctx = crypto_skcipher_ctx(tfm);
1242 static int atmel_aes_init_tfm(struct crypto_skcipher *tfm)
1244 struct atmel_aes_ctx *ctx = crypto_skcipher_ctx(tfm);
1246 crypto_skcipher_set_reqsize(tfm, sizeof(struct atmel_aes_reqctx));
1252 static int atmel_aes_ctr_init_tfm(struct crypto_skcipher *tfm)
1254 struct atmel_aes_ctx *ctx = crypto_skcipher_ctx(tfm);
1256 crypto_skcipher_set_reqsize(tfm, sizeof(struct atmel_aes_reqctx));
1477 struct crypto_aead *tfm = crypto_aead_reqtfm(req);
1479 size_t ivsize = crypto_aead_ivsize(tfm);
1514 struct crypto_aead *tfm = crypto_aead_reqtfm(req);
1519 authsize = crypto_aead_authsize(tfm);
1665 struct crypto_aead *tfm = crypto_aead_reqtfm(req);
1677 authsize = crypto_aead_authsize(tfm);
1710 static int atmel_aes_gcm_setkey(struct crypto_aead *tfm, const u8 *key,
1713 struct atmel_aes_base_ctx *ctx = crypto_aead_ctx(tfm);
1726 static int atmel_aes_gcm_setauthsize(struct crypto_aead *tfm,
1742 static int atmel_aes_gcm_init(struct crypto_aead *tfm)
1744 struct atmel_aes_gcm_ctx *ctx = crypto_aead_ctx(tfm);
1746 crypto_aead_set_reqsize(tfm, sizeof(struct atmel_aes_reqctx));
1842 static int atmel_aes_xts_setkey(struct crypto_skcipher *tfm, const u8 *key,
1845 struct atmel_aes_xts_ctx *ctx = crypto_skcipher_ctx(tfm);
1848 err = xts_check_key(crypto_skcipher_tfm(tfm), key, keylen);
1869 static int atmel_aes_xts_init_tfm(struct crypto_skcipher *tfm)
1871 struct atmel_aes_xts_ctx *ctx = crypto_skcipher_ctx(tfm);
1873 crypto_skcipher_set_reqsize(tfm, sizeof(struct atmel_aes_reqctx));
1920 struct crypto_aead *tfm = crypto_aead_reqtfm(req);
1921 struct atmel_aes_authenc_ctx *ctx = crypto_aead_ctx(tfm);
2015 struct crypto_aead *tfm = crypto_aead_reqtfm(req);
2026 authsize = crypto_aead_authsize(tfm);
2039 static int atmel_aes_authenc_setkey(struct crypto_aead *tfm, const u8 *key,
2042 struct atmel_aes_authenc_ctx *ctx = crypto_aead_ctx(tfm);
2055 crypto_aead_get_flags(tfm));
2073 static int atmel_aes_authenc_init_tfm(struct crypto_aead *tfm,
2076 struct atmel_aes_authenc_ctx *ctx = crypto_aead_ctx(tfm);
2083 crypto_aead_set_reqsize(tfm, (sizeof(struct atmel_aes_authenc_reqctx) +
2090 static int atmel_aes_authenc_hmac_sha1_init_tfm(struct crypto_aead *tfm)
2092 return atmel_aes_authenc_init_tfm(tfm, SHA_FLAGS_HMAC_SHA1);
2095 static int atmel_aes_authenc_hmac_sha224_init_tfm(struct crypto_aead *tfm)
2097 return atmel_aes_authenc_init_tfm(tfm, SHA_FLAGS_HMAC_SHA224);
2100 static int atmel_aes_authenc_hmac_sha256_init_tfm(struct crypto_aead *tfm)
2102 return atmel_aes_authenc_init_tfm(tfm, SHA_FLAGS_HMAC_SHA256);
2105 static int atmel_aes_authenc_hmac_sha384_init_tfm(struct crypto_aead *tfm)
2107 return atmel_aes_authenc_init_tfm(tfm, SHA_FLAGS_HMAC_SHA384);
2110 static int atmel_aes_authenc_hmac_sha512_init_tfm(struct crypto_aead *tfm)
2112 return atmel_aes_authenc_init_tfm(tfm, SHA_FLAGS_HMAC_SHA512);
2115 static void atmel_aes_authenc_exit_tfm(struct crypto_aead *tfm)
2117 struct atmel_aes_authenc_ctx *ctx = crypto_aead_ctx(tfm);
2126 struct crypto_aead *tfm = crypto_aead_reqtfm(req);
2127 struct atmel_aes_base_ctx *ctx = crypto_aead_ctx(tfm);
2128 u32 authsize = crypto_aead_authsize(tfm);