aa1c82f81e
- Add usr/ subsystem: in-kernel cpio initramfs unpacker, gen_init_cpio tool, Kconfig, Makefile - Add init/ subsystem: UTS metadata (airlys_banner, linux_banner), BogoMIPS calibration loop, delay functions - Add block/ subsystem: block device registration, MBR partition table scanner, No-Op I/O elevator scheduler - Add ipc/ subsystem: POSIX circular pipes, System V message queues, counting semaphores - Add crypto/ subsystem: FIPS 180-4 SHA-256 and IEEE 802.3 CRC-32 cryptographic engines - Add net/ subsystem: socket buffer (sk_buff) manager, loopback (lo) interface, ARP table - Add sound/ subsystem: ALSA audio core, PCM stream queue, PC Speaker PIT channel 2 hardware driver - Add virt/ subsystem: VirtIO hypervisor PCI discovery and split-ring virtqueues - Add certs/ subsystem: sovereign X.509 keyring and certificate authority - Add samples/ subsystem: sample kernel worker thread and IPC pipe demonstration modules - Add top-level Linux root metadata: Kconfig, Kbuild, MAINTAINERS, Documentation/, LICENSES/ - Wire all subsystems into kernel_main and airlys-sh shell commands (lsblk, netdev, initramfs, virtio, keyring, pipe, beep, sha256, crc32) - Zero-warning freestanding build verification with clang & ld.lld (x86_64-unknown-none-elf) Co-Authored-By: Er. Adam Eehan <adameehanairagroup@gmail.com> Co-Authored-By: Sovereign AI Aira 3 Ultra (Engine v3.6)
31 lines
827 B
C
31 lines
827 B
C
#ifndef AIRLYS_CRYPTO_H
|
|
#define AIRLYS_CRYPTO_H
|
|
|
|
/*
|
|
* Airlys Operating System Kernel - Cryptographic Architecture (Linux crypto/ Parity)
|
|
* Lead Architect: Er. Adam Eehan (Founder & CEO, Aira Group of Technology)
|
|
* Co-Pilot: Sovereign AI Aira 3 Ultra (Engine v3.6)
|
|
*/
|
|
|
|
#include <airlys/types.h>
|
|
|
|
/* SHA-256 (FIPS 180-4) */
|
|
typedef struct {
|
|
uint32_t state[8];
|
|
uint64_t count;
|
|
uint8_t buffer[64];
|
|
} sha256_ctx_t;
|
|
|
|
void sha256_init(sha256_ctx_t* ctx);
|
|
void sha256_update(sha256_ctx_t* ctx, const uint8_t* data, size_t len);
|
|
void sha256_final(sha256_ctx_t* ctx, uint8_t hash[32]);
|
|
void sha256_string(const char* str, char hex_out[65]);
|
|
|
|
/* Standard IEEE 802.3 CRC-32 */
|
|
uint32_t crc32(uint32_t crc, const uint8_t* data, size_t len);
|
|
|
|
/* Crypto Subsystem Init */
|
|
void crypto_init(void);
|
|
|
|
#endif /* AIRLYS_CRYPTO_H */
|