__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
/* SPDX-License-Identifier: GPL-2.0-or-later */ /* * Public Key Signature Algorithm * * Copyright (c) 2023 Herbert Xu <[email protected]> */ #ifndef _CRYPTO_INTERNAL_SIG_H #define _CRYPTO_INTERNAL_SIG_H #include <crypto/algapi.h> #include <crypto/sig.h> struct sig_instance { void (*free)(struct sig_instance *inst); union { struct { char head[offsetof(struct sig_alg, base)]; struct crypto_instance base; }; struct sig_alg alg; }; }; struct crypto_sig_spawn { struct crypto_spawn base; }; static inline void *crypto_sig_ctx(struct crypto_sig *tfm) { return crypto_tfm_ctx(&tfm->base); } /** * crypto_register_sig() -- Register public key signature algorithm * * Function registers an implementation of a public key signature algorithm * * @alg: algorithm definition * * Return: zero on success; error code in case of error */ int crypto_register_sig(struct sig_alg *alg); /** * crypto_unregister_sig() -- Unregister public key signature algorithm * * Function unregisters an implementation of a public key signature algorithm * * @alg: algorithm definition */ void crypto_unregister_sig(struct sig_alg *alg); int sig_register_instance(struct crypto_template *tmpl, struct sig_instance *inst); static inline struct sig_instance *sig_instance(struct crypto_instance *inst) { return container_of(&inst->alg, struct sig_instance, alg.base); } static inline struct sig_instance *sig_alg_instance(struct crypto_sig *tfm) { return sig_instance(crypto_tfm_alg_instance(&tfm->base)); } static inline struct crypto_instance *sig_crypto_instance(struct sig_instance *inst) { return container_of(&inst->alg.base, struct crypto_instance, alg); } static inline void *sig_instance_ctx(struct sig_instance *inst) { return crypto_instance_ctx(sig_crypto_instance(inst)); } int crypto_grab_sig(struct crypto_sig_spawn *spawn, struct crypto_instance *inst, const char *name, u32 type, u32 mask); static inline struct crypto_sig *crypto_spawn_sig(struct crypto_sig_spawn *spawn) { return crypto_spawn_tfm2(&spawn->base); } static inline void crypto_drop_sig(struct crypto_sig_spawn *spawn) { crypto_drop_spawn(&spawn->base); } static inline struct sig_alg *crypto_spawn_sig_alg(struct crypto_sig_spawn *spawn) { return container_of(spawn->base.alg, struct sig_alg, base); } #endif
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| acompress.h | File | 3.18 KB | 0644 |
|
| aead.h | File | 4.03 KB | 0644 |
|
| akcipher.h | File | 3.84 KB | 0644 |
|
| blake2b.h | File | 3.06 KB | 0644 |
|
| blake2s.h | File | 586 B | 0644 |
|
| chacha.h | File | 969 B | 0644 |
|
| cipher.h | File | 6.77 KB | 0644 |
|
| des.h | File | 3.25 KB | 0644 |
|
| ecc.h | File | 9.6 KB | 0644 |
|
| engine.h | File | 2.19 KB | 0644 |
|
| geniv.h | File | 702 B | 0644 |
|
| hash.h | File | 6.25 KB | 0644 |
|
| kdf_selftest.h | File | 1.5 KB | 0644 |
|
| kpp.h | File | 7.04 KB | 0644 |
|
| poly1305.h | File | 1.1 KB | 0644 |
|
| rng.h | File | 1021 B | 0644 |
|
| rsa.h | File | 2.24 KB | 0644 |
|
| scompress.h | File | 3.31 KB | 0644 |
|
| sig.h | File | 2.32 KB | 0644 |
|
| simd.h | File | 1.91 KB | 0644 |
|
| skcipher.h | File | 7.26 KB | 0644 |
|