include/crypto/ecc_curve.h
Source file repositories/reference/linux-study-clean/include/crypto/ecc_curve.h
File Facts
- System
- Linux kernel
- Corpus path
include/crypto/ecc_curve.h- Extension
.h- Size
- 1391 bytes
- Lines
- 63
- 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
linux/types.h
Detected Declarations
struct ecc_pointstruct ecc_curve
Annotated Snippet
struct ecc_point {
u64 *x;
u64 *y;
u8 ndigits;
};
/**
* struct ecc_curve - definition of elliptic curve
*
* @name: Short name of the curve.
* @nbits: The number of bits of a curve.
* @g: Generator point of the curve.
* @p: Prime number, if Barrett's reduction is used for this curve
* pre-calculated value 'mu' is appended to the @p after ndigits.
* Use of Barrett's reduction is heuristically determined in
* vli_mmod_fast().
* @n: Order of the curve group.
* @a: Curve parameter a.
* @b: Curve parameter b.
*/
struct ecc_curve {
char *name;
u32 nbits;
struct ecc_point g;
u64 *p;
u64 *n;
u64 *a;
u64 *b;
};
/**
* ecc_get_curve() - get elliptic curve;
* @curve_id: Curves IDs:
* defined in 'include/crypto/ecdh.h';
*
* Returns curve if get curve succssful, NULL otherwise
*/
const struct ecc_curve *ecc_get_curve(unsigned int curve_id);
/**
* ecc_get_curve25519() - get curve25519 curve;
*
* Returns curve25519
*/
const struct ecc_curve *ecc_get_curve25519(void);
#endif
Annotation
- Immediate include surface: `linux/types.h`.
- Detected declarations: `struct ecc_point`, `struct ecc_curve`.
- 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.