Lines Matching refs:ops

66 	assert(c && c->ops);  in hash_ops()
68 return c->ops; in hash_ops()
161 assert(c && c->ops); in cipher_ops()
163 return c->ops; in cipher_ops()
298 assert(c && c->ops); in mac_ops()
300 return c->ops; in mac_ops()
370 assert(c && c->ops); in ae_ops()
372 return c->ops; in ae_ops()
714 assert(key->ops && key->ops->free); in crypto_acipher_free_ecc_public_key()
716 key->ops->free(key); in crypto_acipher_free_ecc_public_key()
722 assert(key->ops && key->ops->generate); in crypto_acipher_gen_ecc_key()
724 return key->ops->generate(key, key_size_bits); in crypto_acipher_gen_ecc_key()
731 assert(key->ops); in crypto_acipher_ecc_sign()
733 if (!key->ops->sign) in crypto_acipher_ecc_sign()
736 return key->ops->sign(algo, key, msg, msg_len, sig, sig_len); in crypto_acipher_ecc_sign()
743 assert(key->ops); in crypto_acipher_ecc_verify()
745 if (!key->ops->verify) in crypto_acipher_ecc_verify()
748 return key->ops->verify(algo, key, msg, msg_len, sig, sig_len); in crypto_acipher_ecc_verify()
756 assert(private_key->ops); in crypto_acipher_ecc_shared_secret()
758 if (!private_key->ops->shared_secret) in crypto_acipher_ecc_shared_secret()
761 return private_key->ops->shared_secret(private_key, public_key, secret, in crypto_acipher_ecc_shared_secret()
769 assert(key->ops); in crypto_acipher_sm2_pke_decrypt()
771 if (!key->ops->decrypt) in crypto_acipher_sm2_pke_decrypt()
774 return key->ops->decrypt(key, src, src_len, dst, dst_len); in crypto_acipher_sm2_pke_decrypt()
781 assert(key->ops); in crypto_acipher_sm2_pke_encrypt()
783 if (!key->ops->encrypt) in crypto_acipher_sm2_pke_encrypt()
786 return key->ops->encrypt(key, src, src_len, dst, dst_len); in crypto_acipher_sm2_pke_encrypt()