Lines Matching refs:tfm

37 static inline struct crypto_cipher *__crypto_cipher_cast(struct crypto_tfm *tfm)
39 return (struct crypto_cipher *)tfm;
66 static inline struct crypto_tfm *crypto_cipher_tfm(struct crypto_cipher *tfm)
68 return &tfm->base;
73 * @tfm: cipher handle to be freed
75 static inline void crypto_free_cipher(struct crypto_cipher *tfm)
77 crypto_free_tfm(crypto_cipher_tfm(tfm));
101 * @tfm: cipher handle
104 * tfm is returned. The caller may use that information to allocate appropriate
109 static inline unsigned int crypto_cipher_blocksize(struct crypto_cipher *tfm)
111 return crypto_tfm_alg_blocksize(crypto_cipher_tfm(tfm));
114 static inline unsigned int crypto_cipher_alignmask(struct crypto_cipher *tfm)
116 return crypto_tfm_alg_alignmask(crypto_cipher_tfm(tfm));
119 static inline u32 crypto_cipher_get_flags(struct crypto_cipher *tfm)
121 return crypto_tfm_get_flags(crypto_cipher_tfm(tfm));
124 static inline void crypto_cipher_set_flags(struct crypto_cipher *tfm,
127 crypto_tfm_set_flags(crypto_cipher_tfm(tfm), flags);
130 static inline void crypto_cipher_clear_flags(struct crypto_cipher *tfm,
133 crypto_tfm_clear_flags(crypto_cipher_tfm(tfm), flags);
138 * @tfm: cipher handle
152 int crypto_cipher_setkey(struct crypto_cipher *tfm,
157 * @tfm: cipher handle
164 void crypto_cipher_encrypt_one(struct crypto_cipher *tfm,
169 * @tfm: cipher handle
176 void crypto_cipher_decrypt_one(struct crypto_cipher *tfm,
215 static inline struct cipher_alg *crypto_cipher_alg(struct crypto_cipher *tfm)
217 return &crypto_cipher_tfm(tfm)->__crt_alg->cra_cipher;