@@ -29,19 +29,6 @@
#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 {
@@ -19,11 +19,6 @@
#include "md5_i.h"
#include "crypto.h"
static void MD5Transform(u32 buf[4], u32 const in[16]);
@@ -15,7 +15,11 @@
#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,
@@ -20,12 +20,6 @@
#include "md5.h"
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);