SKF Wrapper

This commit is contained in:
Zhi Guan
2016-05-29 00:22:33 +02:00
parent 0cf9126a7d
commit ee4384daeb
142 changed files with 9469 additions and 6750 deletions

View File

@@ -74,8 +74,25 @@ clean:
# DO NOT DELETE THIS LINE -- make depend depends on it.
sms4_cbc.o: sms4_cbc.c ../../include/openssl/modes.h sms4.h
sms4_cfb.o: sms4_cfb.c ../../include/openssl/modes.h sms4.h
sms4_ecb.o: sms4_ecb.c ../../include/openssl/modes.h sms4.h
sms4_ofb.o: sms4_ofb.c ../../include/openssl/modes.h sms4.h
sms4.o: sms4.c ../../include/openssl/modes.h
sms4_cbc.o: ../../include/openssl/modes.h ../../include/openssl/sms4.h
sms4_cbc.o: sms4_cbc.c
sms4_cfb.o: ../../include/openssl/modes.h ../../include/openssl/sms4.h
sms4_cfb.o: sms4_cfb.c
sms4_common.o: sms4_common.c sms4_lcl.h
sms4_ctr.o: ../../include/openssl/modes.h ../../include/openssl/sms4.h
sms4_ctr.o: sms4_ctr.c
sms4_ecb.o: ../../include/openssl/modes.h ../../include/openssl/sms4.h
sms4_ecb.o: sms4_ecb.c
sms4_enc.o: sms4.h sms4_enc.c sms4_lcl.h
sms4_ofb.o: ../../include/openssl/modes.h ../../include/openssl/sms4.h
sms4_ofb.o: sms4_ofb.c
sms4_setkey.o: sms4.h sms4_lcl.h sms4_setkey.c
sms4_wrap.o: ../../e_os.h ../../include/openssl/bio.h
sms4_wrap.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
sms4_wrap.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
sms4_wrap.o: ../../include/openssl/lhash.h ../../include/openssl/modes.h
sms4_wrap.o: ../../include/openssl/opensslconf.h
sms4_wrap.o: ../../include/openssl/opensslv.h ../../include/openssl/ossl_typ.h
sms4_wrap.o: ../../include/openssl/safestack.h ../../include/openssl/sms4.h
sms4_wrap.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
sms4_wrap.o: ../cryptlib.h sms4_wrap.c

View File

@@ -54,6 +54,7 @@
#define SMS4_KEY_LENGTH 16
#define SMS4_BLOCK_SIZE 16
#define SMS4_IV_LENGTH (SMS4_BLOCK_SIZE)
#define SMS4_NUM_ROUNDS 32
#include <sys/types.h>