mirror of
https://github.com/RetroPortingToolKit/psxrecomp
synced 2026-10-28 02:56:36 -04:00
fe42da2744
Keeps both lines: master's PGXP session, draw-distance clamps, masked rejects and saturated-winding NCLIP; the release's render-pass kit additions, verified media/disc extents, timeline/present rings, cull-scale sites. Overlay ABI v30. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
25 lines
574 B
C
25 lines
574 B
C
#pragma once
|
|
#include <stddef.h>
|
|
#include <stdint.h>
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
typedef struct psx_sha256_ctx {
|
|
uint32_t h[8];
|
|
uint64_t total;
|
|
uint8_t buffer[64];
|
|
size_t buffered;
|
|
} psx_sha256_ctx;
|
|
|
|
/* Self-contained public-domain SHA-256 implementation. */
|
|
void psx_sha256_init(psx_sha256_ctx* ctx);
|
|
void psx_sha256_update(psx_sha256_ctx* ctx, const uint8_t* data, size_t len);
|
|
void psx_sha256_final(psx_sha256_ctx* ctx, uint8_t out[32]);
|
|
void psx_sha256_compute(const uint8_t *data, size_t len, uint8_t out[32]);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|