tls 1.3 init

This commit is contained in:
Zhi Guan
2021-07-28 16:32:10 +08:00
parent ce7dd7fccf
commit 62d1899760
66 changed files with 3080 additions and 18101 deletions

View File

@@ -46,23 +46,24 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef NO_RC4
#ifndef GMSSL_RC4_H
#define GMSSL_RC4_H
#define RC4_MIN_KEY_BITS 40
#define RC4_STATE_NUM_WORDS 256
#include <stdint.h>
#include <string.h>
#include <stdint.h>
#ifdef __cplusplus
extern "C" {
#endif
#define RC4_MIN_KEY_BITS 40
#define RC4_STATE_NUM_WORDS 256
typedef struct {
unsigned char d[256];
} RC4_STATE;
@@ -75,5 +76,3 @@ void rc4_generate_keystream(RC4_STATE *state, size_t outlen, uint8_t *out);
}
#endif
#endif
#endif