32void Com_SHA2Hmac (
const byte*
buf, uint32_t buflen,
const byte*
key, uint32_t keylen,
byte digest[32]);
QGL_EXTERN GLuint GLsizei GLsizei * length
void Com_SHA2Finish(sha2_context *ctx, byte digest[32])
void Com_SHA2Hmac(const byte *buf, uint32_t buflen, const byte *key, uint32_t keylen, byte digest[32])
Output HMAC-SHA-256(buf,key).
void Com_SHA2Update(sha2_context *ctx, const byte *input, uint32_t length)
void Com_SHA2ToHex(const byte digest[32], char final[65])
void Com_SHA2Starts(sha2_context *ctx)
bool Com_SHA2File(const char *filename, byte digest[32])
Output SHA-256(file contents).
void Com_SHA2Csum(const byte *buf, uint32_t buflen, byte digest[32])
Output SHA-256(buf).
Cross-platform type definitions.