How minahermina/bignum works
Project type and purpose
• This is a C99 library (“BigNum Library”) for arbitrary-precision integer arithmetic.
• It is intended as a foundational component (e.g., for RSA encryption in future projects), not a stand-alone application.
File structure
• Top-level files:
• Makefile, LICENSE, .gitignore (build & project meta)
• README.md (project description)
• main.c (demo or example driver)
• Directories:
• / – public headers
• src/ – implementation modules
• Within src/: modules are grouped by operation type (addition/subtraction, bitwise, multiplication/division/modulus, utilities).
README for additional insights
• Core arithmetic operations are split across multiple source files.
• Some functions (div, mod, gcd, mod-exp, mod-inverse) are not yet implemented.
• The library is inspired by OpenSSL’s BIGNUM.
Important details to capture
• Distinguish between header files (expose API) and C files (implement functionality).
• That all arithmetic modules share the same allocator and utils.
• In-progress status by annotating unimplemented modules or functions.
• Makefile as the entry point for building the library.