Lines Matching refs:ops
81 const struct dm_crypto_ops *ops; in crypto_get_device() local
94 ops = device_get_ops(dev); in crypto_get_device()
95 if (!ops || !ops->capability) in crypto_get_device()
98 cap = ops->capability(dev); in crypto_get_device()
108 const struct dm_crypto_ops *ops = device_get_ops(dev); in crypto_sha_init() local
113 if (!ops || !ops->sha_init) in crypto_sha_init()
116 return ops->sha_init(dev, ctx); in crypto_sha_init()
121 const struct dm_crypto_ops *ops = device_get_ops(dev); in crypto_sha_update() local
126 if (!ops || !ops->sha_update) in crypto_sha_update()
129 return ops->sha_update(dev, input, len); in crypto_sha_update()
134 const struct dm_crypto_ops *ops = device_get_ops(dev); in crypto_sha_final() local
169 if (!ops || !ops->sha_final) in crypto_sha_final()
172 return ops->sha_final(dev, ctx, output); in crypto_sha_final()
178 const struct dm_crypto_ops *ops = device_get_ops(dev); in crypto_hmac_init() local
183 if (!ops || !ops->hmac_init) in crypto_hmac_init()
186 return ops->hmac_init(dev, ctx, key, key_len); in crypto_hmac_init()
191 const struct dm_crypto_ops *ops = device_get_ops(dev); in crypto_hmac_update() local
196 if (!ops || !ops->hmac_update) in crypto_hmac_update()
199 return ops->hmac_update(dev, input, len); in crypto_hmac_update()
204 const struct dm_crypto_ops *ops = device_get_ops(dev); in crypto_hmac_final() local
206 if (!ops || !ops->hmac_final) in crypto_hmac_final()
209 return ops->hmac_final(dev, ctx, output); in crypto_hmac_final()
256 const struct dm_crypto_ops *ops = device_get_ops(dev); in crypto_rsa_verify() local
258 if (!ops || !ops->rsa_verify) in crypto_rsa_verify()
264 return ops->rsa_verify(dev, ctx, sign, output); in crypto_rsa_verify()
270 const struct dm_crypto_ops *ops = device_get_ops(dev); in crypto_cipher() local
272 if (!ops || !ops->cipher_crypt) in crypto_cipher()
275 return ops->cipher_crypt(dev, ctx, in, out, len, enc); in crypto_cipher()
281 const struct dm_crypto_ops *ops = device_get_ops(dev); in crypto_mac() local
283 if (!ops || !ops->cipher_mac) in crypto_mac()
286 return ops->cipher_mac(dev, ctx, in, len, tag); in crypto_mac()
293 const struct dm_crypto_ops *ops = device_get_ops(dev); in crypto_ae() local
295 if (!ops || !ops->cipher_ae) in crypto_ae()
298 return ops->cipher_ae(dev, ctx, in, len, aad, aad_len, out, tag); in crypto_ae()