#ifdef CONFIG_TLS_INTERNAL
-struct MD5Context {
- u32 buf[4];
- u32 bits[2];
- u8 in[64];
-};
-
-struct SHA1Context {
- u32 state[5];
- u32 count[2];
- unsigned char buffer[64];
-};
-
-
struct crypto_hash {
enum crypto_hash_alg alg;
union {
#include "md5_i.h"
#include "crypto.h"
-struct MD5Context {
- u32 buf[4];
- u32 bits[2];
- u8 in[64];
-};
static void MD5Transform(u32 buf[4], u32 const in[16]);
#ifndef MD5_I_H
#define MD5_I_H
-struct MD5Context;
+struct MD5Context {
+ u32 buf[4];
+ u32 bits[2];
+ u8 in[64];
+};
void MD5Init(struct MD5Context *context);
void MD5Update(struct MD5Context *context, unsigned char const *buf,
#include "md5.h"
#include "crypto.h"
-struct SHA1Context {
- u32 state[5];
- u32 count[2];
- unsigned char buffer[64];
-};
-
typedef struct SHA1Context SHA1_CTX;
void SHA1Transform(u32 state[5], const unsigned char buffer[64]);
#ifndef SHA1_I_H
#define SHA1_I_H
-struct SHA1Context;
+struct SHA1Context {
+ u32 state[5];
+ u32 count[2];
+ unsigned char buffer[64];
+};
void SHA1Init(struct SHA1Context *context);
void SHA1Update(struct SHA1Context *context, const void *data, u32 len);