Lines Matching refs:encrypt
160 struct sm4_ctx *ctx, bool encrypt)
179 if (encrypt)
211 static int sm4_cbc_cts_crypt(struct skcipher_request *req, bool encrypt)
227 return sm4_cbc_crypt(req, ctx, encrypt);
240 err = sm4_cbc_crypt(&subreq, ctx, encrypt);
261 if (encrypt)
410 static int sm4_xts_crypt(struct skcipher_request *req, bool encrypt)
455 if (encrypt)
491 if (encrypt)
528 .encrypt = sm4_ecb_encrypt,
543 .encrypt = sm4_cbc_encrypt,
559 .encrypt = sm4_cfb_encrypt,
575 .encrypt = sm4_ctr_crypt,
591 .encrypt = sm4_cbc_cts_encrypt,
607 .encrypt = sm4_xts_encrypt,
645 /* encrypt the zero block */