include/crypto/internal/aead.h
Source file repositories/reference/linux-study-clean/include/crypto/internal/aead.h
File Facts
- System
- Linux kernel
- Corpus path
include/crypto/internal/aead.h- Extension
.h- Size
- 4129 bytes
- Lines
- 169
- 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/aead.hcrypto/algapi.hlinux/stddef.hlinux/types.h
Detected Declarations
struct rtattrstruct aead_instancestruct crypto_aead_spawnstruct aead_queuefunction aead_request_completefunction aead_request_flagsfunction crypto_drop_aeadfunction crypto_aead_set_reqsizefunction crypto_aead_set_reqsize_dmafunction aead_init_queuefunction crypto_aead_alg_chunksizefunction crypto_aead_chunksize
Annotated Snippet
struct aead_instance {
void (*free)(struct aead_instance *inst);
union {
struct {
char head[offsetof(struct aead_alg, base)];
struct crypto_instance base;
} s;
struct aead_alg alg;
};
};
struct crypto_aead_spawn {
struct crypto_spawn base;
};
struct aead_queue {
struct crypto_queue base;
};
static inline void *crypto_aead_ctx(struct crypto_aead *tfm)
{
return crypto_tfm_ctx(&tfm->base);
}
static inline void *crypto_aead_ctx_dma(struct crypto_aead *tfm)
{
return crypto_tfm_ctx_dma(&tfm->base);
}
static inline struct crypto_instance *aead_crypto_instance(
struct aead_instance *inst)
{
return container_of(&inst->alg.base, struct crypto_instance, alg);
}
static inline struct aead_instance *aead_instance(struct crypto_instance *inst)
{
return container_of(&inst->alg, struct aead_instance, alg.base);
}
static inline struct aead_instance *aead_alg_instance(struct crypto_aead *aead)
{
return aead_instance(crypto_tfm_alg_instance(&aead->base));
}
static inline void *aead_instance_ctx(struct aead_instance *inst)
{
return crypto_instance_ctx(aead_crypto_instance(inst));
}
static inline void *aead_request_ctx(struct aead_request *req)
{
return req->__ctx;
}
static inline void *aead_request_ctx_dma(struct aead_request *req)
{
unsigned int align = crypto_dma_align();
if (align <= crypto_tfm_ctx_alignment())
align = 1;
return PTR_ALIGN(aead_request_ctx(req), align);
}
static inline void aead_request_complete(struct aead_request *req, int err)
{
crypto_request_complete(&req->base, err);
}
static inline u32 aead_request_flags(struct aead_request *req)
{
return req->base.flags;
}
static inline struct aead_request *aead_request_cast(
struct crypto_async_request *req)
{
return container_of(req, struct aead_request, base);
}
int crypto_grab_aead(struct crypto_aead_spawn *spawn,
struct crypto_instance *inst,
const char *name, u32 type, u32 mask);
static inline void crypto_drop_aead(struct crypto_aead_spawn *spawn)
{
crypto_drop_spawn(&spawn->base);
}
Annotation
- Immediate include surface: `crypto/aead.h`, `crypto/algapi.h`, `linux/stddef.h`, `linux/types.h`.
- Detected declarations: `struct rtattr`, `struct aead_instance`, `struct crypto_aead_spawn`, `struct aead_queue`, `function aead_request_complete`, `function aead_request_flags`, `function crypto_drop_aead`, `function crypto_aead_set_reqsize`, `function crypto_aead_set_reqsize_dma`, `function aead_init_queue`.
- 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.