56#ifndef __HMAC_SHA1_H__
57#define __HMAC_SHA1_H__
128 memcpy(&(ctx->
key[ctx->
keylen]), key, keylen);
134 unsigned char *ipad, *opad, *key;
149 ipad = &(ctx->
ipad[0]);
150 opad = &(ctx->
opad[0]);
153 key = &(ctx->
key[0]);
154 for (i = 0; i < ctx->
keylen; i++, key++) {
192 unsigned char out[20];
201 memcpy(res, out, 0x10);
void HMAC_SHA1_EndMessage(unsigned char *out, HMAC_SHA1_CTX *ctx)
void HMAC_SHA1(void *secret, void *data, void *res, int len)
void HMAC_SHA1_UpdateMessage(HMAC_SHA1_CTX *ctx, unsigned char *data, unsigned int datalen)
void HMAC_SHA1_Done(HMAC_SHA1_CTX *ctx)
void HMAC_SHA1_Init(HMAC_SHA1_CTX *ctx)
void HMAC_SHA1_StartMessage(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)
#define HMAC_SHA1_BLOCK_LENGTH
#define HMAC_SHA1_DIGEST_LENGTH
void SHA1_Final(sha1_byte digest[SHA1_DIGEST_LENGTH], SHA_CTX *context)
void SHA1_Update(SHA_CTX *context, sha1_byte *data, unsigned int len)
void SHA1_Init(SHA_CTX *context)
unsigned char key[HMAC_SHA1_BLOCK_LENGTH]
unsigned char ipad[HMAC_SHA1_BLOCK_LENGTH]
unsigned char opad[HMAC_SHA1_BLOCK_LENGTH]