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,13 +46,11 @@
* OF THE POSSIBILITY OF SUCH DAMAGE.
*/
#ifndef NO_DES
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <gmssl/des.h>
#include "bswap.h"
#include "endian.h"
/* permuted choice 1 for key schedule, 64 bits to 56 bits */
@@ -205,7 +203,7 @@ static uint32_t substitution(const uint64_t A)
(((uint32_t)S8[(A ) & 0x3f]) );
}
#define ROL32(A,Si) (((A)<<(Si))|((A)>>(32-(Si))))
//#define ROL32(A,Si) (((A)<<(Si))|((A)>>(32-(Si))))
void des_set_encrypt_key(DES_KEY *key, const unsigned char user_key[8])
{
@@ -267,4 +265,3 @@ void des_encrypt(DES_KEY *key, const unsigned char in[DES_BLOCK_SIZE],
PUTU64(out, T);
}
#endif