Lines Matching refs:ops

92 	const struct dm_crypto_ops *ops;  in crypto_get_device()  local
112 ops = device_get_ops(dev); in crypto_get_device()
113 if (!ops || !ops->capability) in crypto_get_device()
116 cur_secure = ops->is_secure ? ops->is_secure(dev) : false; in crypto_get_device()
118 cap = ops->capability(dev); in crypto_get_device()
135 const struct dm_crypto_ops *ops = device_get_ops(dev); in crypto_sha_init() local
140 if (!ops || !ops->sha_init) in crypto_sha_init()
143 return ops->sha_init(dev, ctx); in crypto_sha_init()
148 const struct dm_crypto_ops *ops = device_get_ops(dev); in crypto_sha_update() local
153 if (!ops || !ops->sha_update) in crypto_sha_update()
156 return ops->sha_update(dev, input, len); in crypto_sha_update()
161 const struct dm_crypto_ops *ops = device_get_ops(dev); in crypto_sha_final() local
196 if (!ops || !ops->sha_final) in crypto_sha_final()
199 return ops->sha_final(dev, ctx, output); in crypto_sha_final()
205 const struct dm_crypto_ops *ops = device_get_ops(dev); in crypto_hmac_init() local
210 if (!ops || !ops->hmac_init) in crypto_hmac_init()
213 return ops->hmac_init(dev, ctx, key, key_len); in crypto_hmac_init()
218 const struct dm_crypto_ops *ops = device_get_ops(dev); in crypto_hmac_update() local
223 if (!ops || !ops->hmac_update) in crypto_hmac_update()
226 return ops->hmac_update(dev, input, len); in crypto_hmac_update()
231 const struct dm_crypto_ops *ops = device_get_ops(dev); in crypto_hmac_final() local
233 if (!ops || !ops->hmac_final) in crypto_hmac_final()
236 return ops->hmac_final(dev, ctx, output); in crypto_hmac_final()
283 const struct dm_crypto_ops *ops = device_get_ops(dev); in crypto_rsa_verify() local
285 if (!ops || !ops->rsa_verify) in crypto_rsa_verify()
291 return ops->rsa_verify(dev, ctx, sign, output); in crypto_rsa_verify()
296 const struct dm_crypto_ops *ops = device_get_ops(dev); in crypto_ec_verify() local
298 if (!ops || !ops->ec_verify) in crypto_ec_verify()
304 return ops->ec_verify(dev, ctx, hash, hash_len, sign); in crypto_ec_verify()
310 const struct dm_crypto_ops *ops = device_get_ops(dev); in crypto_cipher() local
312 if (!ops || !ops->cipher_crypt) in crypto_cipher()
318 return ops->cipher_crypt(dev, ctx, in, out, len, enc); in crypto_cipher()
324 const struct dm_crypto_ops *ops = device_get_ops(dev); in crypto_mac() local
326 if (!ops || !ops->cipher_mac) in crypto_mac()
332 return ops->cipher_mac(dev, ctx, in, len, tag); in crypto_mac()
339 const struct dm_crypto_ops *ops = device_get_ops(dev); in crypto_ae() local
341 if (!ops || !ops->cipher_ae) in crypto_ae()
347 return ops->cipher_ae(dev, ctx, in, len, aad, aad_len, out, tag); in crypto_ae()
354 const struct dm_crypto_ops *ops = device_get_ops(dev); in crypto_fw_cipher() local
357 if (!ops || !ops->cipher_fw_crypt) in crypto_fw_cipher()
360 if (!ops->is_secure || !ops->is_secure(dev)) { in crypto_fw_cipher()
377 return ops->cipher_fw_crypt(dev, ctx, in, out, len, enc); in crypto_fw_cipher()
385 const struct dm_crypto_ops *ops = device_get_ops(dev); in crypto_keytable_addr() local
387 if (!ops || !ops->keytable_addr) in crypto_keytable_addr()
390 return ops->keytable_addr(dev); in crypto_keytable_addr()
395 const struct dm_crypto_ops *ops = device_get_ops(dev); in crypto_is_secure() local
397 if (!ops || !ops->is_secure) in crypto_is_secure()
400 return ops->is_secure(dev); in crypto_is_secure()