LibXenon
Bare-metal Xbox 360 homebrew library
Loading...
Searching...
No Matches
Macros | Functions
hmac_sha1.c File Reference
#include "hmac_sha1.h"
#include <string.h>
Include dependency graph for hmac_sha1.c:

Go to the source code of this file.

Macros

#define __HMAC_SHA1_H__
 
#define IPAD_BYTE   0x36
 
#define OPAD_BYTE   0x5c
 
#define ZERO_BYTE   0x00
 

Functions

void HMAC_SHA1_Init (HMAC_SHA1_CTX *ctx)
 
void HMAC_SHA1_UpdateKey (HMAC_SHA1_CTX *ctx, unsigned char *key, unsigned int keylen)
 
void HMAC_SHA1_EndKey (HMAC_SHA1_CTX *ctx)
 
void HMAC_SHA1_StartMessage (HMAC_SHA1_CTX *ctx)
 
void HMAC_SHA1_UpdateMessage (HMAC_SHA1_CTX *ctx, unsigned char *data, unsigned int datalen)
 
void HMAC_SHA1_EndMessage (unsigned char *out, HMAC_SHA1_CTX *ctx)
 
void HMAC_SHA1_Done (HMAC_SHA1_CTX *ctx)
 
void HMAC_SHA1 (void *secret, void *data, void *res, int len)
 

Macro Definition Documentation

◆ __HMAC_SHA1_H__

#define __HMAC_SHA1_H__

Definition at line 57 of file hmac_sha1.c.

◆ IPAD_BYTE

#define IPAD_BYTE   0x36

Definition at line 67 of file hmac_sha1.c.

◆ OPAD_BYTE

#define OPAD_BYTE   0x5c

Definition at line 68 of file hmac_sha1.c.

◆ ZERO_BYTE

#define ZERO_BYTE   0x00

Definition at line 69 of file hmac_sha1.c.

Function Documentation

◆ HMAC_SHA1()

void HMAC_SHA1 ( void *  secret,
void *  data,
void *  res,
int  len 
)

Definition at line 190 of file hmac_sha1.c.

◆ HMAC_SHA1_Done()

void HMAC_SHA1_Done ( HMAC_SHA1_CTX ctx)

Definition at line 181 of file hmac_sha1.c.

◆ HMAC_SHA1_EndKey()

void HMAC_SHA1_EndKey ( HMAC_SHA1_CTX ctx)

Definition at line 133 of file hmac_sha1.c.

◆ HMAC_SHA1_EndMessage()

void HMAC_SHA1_EndMessage ( unsigned char *  out,
HMAC_SHA1_CTX ctx 
)

Definition at line 170 of file hmac_sha1.c.

◆ HMAC_SHA1_Init()

void HMAC_SHA1_Init ( HMAC_SHA1_CTX ctx)

Definition at line 71 of file hmac_sha1.c.

◆ HMAC_SHA1_StartMessage()

void HMAC_SHA1_StartMessage ( HMAC_SHA1_CTX ctx)

Definition at line 161 of file hmac_sha1.c.

◆ HMAC_SHA1_UpdateKey()

void HMAC_SHA1_UpdateKey ( HMAC_SHA1_CTX ctx,
unsigned char *  key,
unsigned int  keylen 
)

Definition at line 79 of file hmac_sha1.c.

◆ HMAC_SHA1_UpdateMessage()

void HMAC_SHA1_UpdateMessage ( HMAC_SHA1_CTX ctx,
unsigned char *  data,
unsigned int  datalen 
)

Definition at line 166 of file hmac_sha1.c.