/* Compute SHA‑256 of the input */ uint8_t digest[32]; SHA256_CTX ctx; SHA256_Init(&ctx); SHA256_Update(&ctx, input, strlen(input)); SHA256_Final(digest, &ctx);