Lines Matching defs:tfm
76 static int sm4_setkey(struct crypto_skcipher *tfm, const u8 *key,
79 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm);
91 static int sm4_xts_setkey(struct crypto_skcipher *tfm, const u8 *key,
94 struct sm4_xts_ctx *ctx = crypto_skcipher_ctx(tfm);
100 ret = xts_verify_key(tfm, key, key_len);
145 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
146 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm);
153 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
154 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm);
197 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
198 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm);
205 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
206 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm);
213 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
214 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm);
229 skcipher_request_set_tfm(&subreq, tfm);
285 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
286 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm);
327 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
328 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm);
369 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
370 struct sm4_ctx *ctx = crypto_skcipher_ctx(tfm);
412 struct crypto_skcipher *tfm = crypto_skcipher_reqtfm(req);
413 struct sm4_xts_ctx *ctx = crypto_skcipher_ctx(tfm);
435 skcipher_request_set_tfm(&subreq, tfm);
612 static int sm4_cbcmac_setkey(struct crypto_shash *tfm, const u8 *key,
615 struct sm4_mac_tfm_ctx *ctx = crypto_shash_ctx(tfm);
628 static int sm4_cmac_setkey(struct crypto_shash *tfm, const u8 *key,
631 struct sm4_mac_tfm_ctx *ctx = crypto_shash_ctx(tfm);
664 static int sm4_xcbc_setkey(struct crypto_shash *tfm, const u8 *key,
667 struct sm4_mac_tfm_ctx *ctx = crypto_shash_ctx(tfm);
707 struct sm4_mac_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm);
757 struct sm4_mac_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm);
778 struct sm4_mac_tfm_ctx *tctx = crypto_shash_ctx(desc->tfm);