include/crypto/internal/sig.h
Source file repositories/reference/linux-study-clean/include/crypto/internal/sig.h
File Facts
- System
- Linux kernel
- Corpus path
include/crypto/internal/sig.h- Extension
.h- Size
- 2378 bytes
- Lines
- 98
- Domain
- Repository Root And Misc
- Bucket
- include
- Inferred role
- Repository Root And Misc: implementation source
- Status
- source implementation candidate
Why This File Exists
Top-level or miscellaneous repository surface. Use this as map coverage unless a later manual pass promotes the file into a deeper subsystem dossier.
- Top-level or miscellaneous repository surface. Use this as map coverage unless a later manual pass promotes the file into a deeper subsystem dossier.
- Defines or uses C structs; map object ownership, embedded links, reference counts, and lock ownership.
Dependency Surface
crypto/algapi.hcrypto/sig.h
Detected Declarations
struct sig_instancestruct crypto_sig_spawnfunction crypto_drop_sig
Annotated Snippet
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
Annotation
- Immediate include surface: `crypto/algapi.h`, `crypto/sig.h`.
- Detected declarations: `struct sig_instance`, `struct crypto_sig_spawn`, `function crypto_drop_sig`.
- Atlas domain: Repository Root And Misc / include.
- Implementation status: source implementation candidate.
Implementation Notes
- This generated page is the file-by-file coverage layer; curated subsystem chapters should link here when they synthesize a multi-file control flow.
- Core OS pages should be promoted from atlas-only to deep-reviewed when they explain data structures, invariants, locking, lifecycle, and C implementation snippets.
- Driver-family pages are intentionally pattern-oriented unless they are part of the selected PCIe/NVMe representative device path.