Fix DES bugs in Linux. Windows+Linux both pass unit tests.

This commit is contained in:
Trevor Bentley
2017-09-11 10:51:24 +02:00
parent fb00baf672
commit a8b2c2c1c4
6 changed files with 600 additions and 53 deletions
+1 -8
View File
@@ -33,11 +33,7 @@
#include <stdio.h>
#include <stdint.h>
#include <ctype.h>
#include "des.h"
#include <openssl/des.h>
#include <openssl/rand.h>
#include <openssl/rsa.h>
#include <time.h>
#include "internal.h"
#include "ykpiv.h"
@@ -63,9 +59,6 @@ const uint8_t CCC_TMPL[] = {
#define CCC_ID_OFFS 9
#define CB_CCC_ID 14
#define TAG_CERT 0x70
#define TAG_CERT_COMPRESS 0x71
#define TAG_CERT_LRC 0xFE
#define TAG_ADMIN 0x80
#define TAG_ADMIN_FLAGS_1 0x81
#define TAG_ADMIN_SALT 0x82