PATH:
usr
/
src
/
kernels
/
5.14.0-611.49.2.el9_7.x86_64
/
include
/
crypto
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Crypto engine API * * Copyright (c) 2016 Baolin Wang <baolin.wang@linaro.org> */ #ifndef _CRYPTO_ENGINE_H #define _CRYPTO_ENGINE_H #include <crypto/aead.h> #include <crypto/akcipher.h> #include <crypto/hash.h> #include <crypto/kpp.h> #include <crypto/skcipher.h> #include <linux/types.h> struct crypto_engine; struct device; /* * struct crypto_engine_op - crypto hardware engine operations * @do_one_request: do encryption for current request */ struct crypto_engine_op { int (*do_one_request)(struct crypto_engine *engine, void *areq); }; struct crypto_engine_ctx { struct crypto_engine_op op; }; struct aead_engine_alg { struct aead_alg base; struct crypto_engine_op op; }; struct ahash_engine_alg { struct ahash_alg base; struct crypto_engine_op op; }; struct akcipher_engine_alg { struct akcipher_alg base; struct crypto_engine_op op; }; struct kpp_engine_alg { struct kpp_alg base; struct crypto_engine_op op; }; struct skcipher_engine_alg { struct skcipher_alg base; struct crypto_engine_op op; }; int crypto_transfer_aead_request_to_engine(struct crypto_engine *engine, struct aead_request *req); int crypto_transfer_akcipher_request_to_engine(struct crypto_engine *engine, struct akcipher_request *req); int crypto_transfer_hash_request_to_engine(struct crypto_engine *engine, struct ahash_request *req); int crypto_transfer_kpp_request_to_engine(struct crypto_engine *engine, struct kpp_request *req); int crypto_transfer_skcipher_request_to_engine(struct crypto_engine *engine, struct skcipher_request *req); void crypto_finalize_aead_request(struct crypto_engine *engine, struct aead_request *req, int err); void crypto_finalize_akcipher_request(struct crypto_engine *engine, struct akcipher_request *req, int err); void crypto_finalize_hash_request(struct crypto_engine *engine, struct ahash_request *req, int err); void crypto_finalize_kpp_request(struct crypto_engine *engine, struct kpp_request *req, int err); void crypto_finalize_skcipher_request(struct crypto_engine *engine, struct skcipher_request *req, int err); int crypto_engine_start(struct crypto_engine *engine); int crypto_engine_stop(struct crypto_engine *engine); struct crypto_engine *crypto_engine_alloc_init(struct device *dev, bool rt); struct crypto_engine *crypto_engine_alloc_init_and_set(struct device *dev, bool retry_support, int (*cbk_do_batch)(struct crypto_engine *engine), bool rt, int qlen); int crypto_engine_exit(struct crypto_engine *engine); int crypto_engine_register_aead(struct aead_engine_alg *alg); void crypto_engine_unregister_aead(struct aead_engine_alg *alg); int crypto_engine_register_aeads(struct aead_engine_alg *algs, int count); void crypto_engine_unregister_aeads(struct aead_engine_alg *algs, int count); int crypto_engine_register_ahash(struct ahash_engine_alg *alg); void crypto_engine_unregister_ahash(struct ahash_engine_alg *alg); int crypto_engine_register_ahashes(struct ahash_engine_alg *algs, int count); void crypto_engine_unregister_ahashes(struct ahash_engine_alg *algs, int count); int crypto_engine_register_akcipher(struct akcipher_engine_alg *alg); void crypto_engine_unregister_akcipher(struct akcipher_engine_alg *alg); int crypto_engine_register_kpp(struct kpp_engine_alg *alg); void crypto_engine_unregister_kpp(struct kpp_engine_alg *alg); int crypto_engine_register_skcipher(struct skcipher_engine_alg *alg); void crypto_engine_unregister_skcipher(struct skcipher_engine_alg *alg); int crypto_engine_register_skciphers(struct skcipher_engine_alg *algs, int count); void crypto_engine_unregister_skciphers(struct skcipher_engine_alg *algs, int count); #endif /* _CRYPTO_ENGINE_H */
[-] akcipher.h
[edit]
[-] hkdf.h
[edit]
[-] dh.h
[edit]
[-] hash.h
[edit]
[-] ctr.h
[edit]
[-] blowfish.h
[edit]
[-] engine.h
[edit]
[-] arc4.h
[edit]
[-] kpp.h
[edit]
[-] blake2s.h
[edit]
[-] chacha20poly1305.h
[edit]
[-] ecdh.h
[edit]
[-] cast_common.h
[edit]
[-] gf128mul.h
[edit]
[-] asym_tpm_subtype.h
[edit]
[-] chacha.h
[edit]
[-] cryptd.h
[edit]
[-] b128ops.h
[edit]
[-] md5.h
[edit]
[-] streebog.h
[edit]
[-] sha1.h
[edit]
[-] public_key.h
[edit]
[-] drbg.h
[edit]
[-] sha256_base.h
[edit]
[-] sha2.h
[edit]
[-] sha512_base.h
[edit]
[-] pkcs7.h
[edit]
[-] skcipher.h
[edit]
[-] sm4.h
[edit]
[-] sha3.h
[edit]
[-] rng.h
[edit]
[-] cast6.h
[edit]
[-] twofish.h
[edit]
[-] scatterwalk.h
[edit]
[-] blake2b.h
[edit]
[-] ghash.h
[edit]
[+]
internal
[-] sm3.h
[edit]
[-] ecc_curve.h
[edit]
[-] des.h
[edit]
[-] aead.h
[edit]
[-] hash_info.h
[edit]
[-] gcm.h
[edit]
[-] cast5.h
[edit]
[-] sha1_base.h
[edit]
[-] xts.h
[edit]
[-] hmac.h
[edit]
[-] null.h
[edit]
[-] curve25519.h
[edit]
[-] acompress.h
[edit]
[-] nhpoly1305.h
[edit]
[-] sm3_base.h
[edit]
[-] serpent.h
[edit]
[-] algapi.h
[edit]
[-] padlock.h
[edit]
[-] pcrypt.h
[edit]
[+]
..
[-] poly1305.h
[edit]
[-] aes.h
[edit]
[-] if_alg.h
[edit]
[-] authenc.h
[edit]
[-] sm2.h
[edit]