mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-11 10:56:17 +08:00
SKF Wrapper
This commit is contained in:
@@ -85,24 +85,29 @@ err.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
err.o: ../cryptlib.h err.c
|
||||
err_all.o: ../../include/openssl/asn1.h ../../include/openssl/bio.h
|
||||
err_all.o: ../../include/openssl/bn.h ../../include/openssl/buffer.h
|
||||
err_all.o: ../../include/openssl/cms.h ../../include/openssl/comp.h
|
||||
err_all.o: ../../include/openssl/conf.h ../../include/openssl/crypto.h
|
||||
err_all.o: ../../include/openssl/cbcmac.h ../../include/openssl/cms.h
|
||||
err_all.o: ../../include/openssl/comp.h ../../include/openssl/conf.h
|
||||
err_all.o: ../../include/openssl/cpk.h ../../include/openssl/crypto.h
|
||||
err_all.o: ../../include/openssl/dh.h ../../include/openssl/dsa.h
|
||||
err_all.o: ../../include/openssl/dso.h ../../include/openssl/e_os2.h
|
||||
err_all.o: ../../include/openssl/ec.h ../../include/openssl/ecdh.h
|
||||
err_all.o: ../../include/openssl/ecdsa.h ../../include/openssl/engine.h
|
||||
err_all.o: ../../include/openssl/err.h ../../include/openssl/evp.h
|
||||
err_all.o: ../../include/openssl/ecdsa.h ../../include/openssl/ecies.h
|
||||
err_all.o: ../../include/openssl/engine.h ../../include/openssl/err.h
|
||||
err_all.o: ../../include/openssl/evp.h ../../include/openssl/kdf.h
|
||||
err_all.o: ../../include/openssl/lhash.h ../../include/openssl/obj_mac.h
|
||||
err_all.o: ../../include/openssl/objects.h ../../include/openssl/ocsp.h
|
||||
err_all.o: ../../include/openssl/opensslconf.h ../../include/openssl/opensslv.h
|
||||
err_all.o: ../../include/openssl/ossl_typ.h ../../include/openssl/pem2.h
|
||||
err_all.o: ../../include/openssl/pkcs12.h ../../include/openssl/pkcs7.h
|
||||
err_all.o: ../../include/openssl/rand.h ../../include/openssl/rsa.h
|
||||
err_all.o: ../../include/openssl/safestack.h ../../include/openssl/sha.h
|
||||
err_all.o: ../../include/openssl/stack.h ../../include/openssl/symhacks.h
|
||||
err_all.o: ../../include/openssl/ts.h ../../include/openssl/ui.h
|
||||
err_all.o: ../../include/openssl/x509.h ../../include/openssl/x509_vfy.h
|
||||
err_all.o: ../../include/openssl/x509v3.h err_all.c
|
||||
err_all.o: ../../include/openssl/ossl_typ.h ../../include/openssl/otp.h
|
||||
err_all.o: ../../include/openssl/pem2.h ../../include/openssl/pkcs12.h
|
||||
err_all.o: ../../include/openssl/pkcs7.h ../../include/openssl/rand.h
|
||||
err_all.o: ../../include/openssl/rsa.h ../../include/openssl/safestack.h
|
||||
err_all.o: ../../include/openssl/sha.h ../../include/openssl/skf.h
|
||||
err_all.o: ../../include/openssl/sm2.h ../../include/openssl/sm3.h
|
||||
err_all.o: ../../include/openssl/sm9.h ../../include/openssl/stack.h
|
||||
err_all.o: ../../include/openssl/symhacks.h ../../include/openssl/ts.h
|
||||
err_all.o: ../../include/openssl/ui.h ../../include/openssl/x509.h
|
||||
err_all.o: ../../include/openssl/x509_vfy.h ../../include/openssl/x509v3.h
|
||||
err_all.o: err_all.c
|
||||
err_prn.o: ../../e_os.h ../../include/openssl/bio.h
|
||||
err_prn.o: ../../include/openssl/buffer.h ../../include/openssl/crypto.h
|
||||
err_prn.o: ../../include/openssl/e_os2.h ../../include/openssl/err.h
|
||||
|
||||
@@ -157,8 +157,12 @@ static ERR_STRING_DATA ERR_str_libraries[] = {
|
||||
{ERR_PACK(ERR_LIB_HMAC, 0, 0), "HMAC routines"},
|
||||
# ifndef OPENSSL_NO_GMSSL
|
||||
{ERR_PACK(ERR_LIB_ECIES, 0, 0), "ECIES routines"},
|
||||
{ERR_PACK(ERR_LIB_CPK, 0, 0), "CPK routines"},
|
||||
{ERR_PACK(ERR_LIB_SM2, 0, 0), "SM2 routines"},
|
||||
{ERR_PACK(ERR_LIB_SKF, 0, 0), "SKF routines"},
|
||||
{ERR_PACK(ERR_LIB_CBCMAC, 0, 0), "CBCMAC routines"},
|
||||
{ERR_PACK(ERR_LIB_OTP, 0, 0), "OTP routines"},
|
||||
{ERR_PACK(ERR_LIB_SM9, 0, 0), "SM9 routines"},
|
||||
# endif
|
||||
{0, NULL},
|
||||
};
|
||||
|
||||
@@ -197,10 +197,15 @@ typedef struct err_state_st {
|
||||
# define ERR_LIB_TS 47
|
||||
# define ERR_LIB_HMAC 48
|
||||
# define ERR_LIB_JPAKE 49
|
||||
|
||||
# ifndef OPENSSL_NO_GMSSL
|
||||
# define ERR_LIB_ECIES 50
|
||||
# define ERR_LIB_SM2 51
|
||||
# define ERR_LIB_SKF 52
|
||||
# define ERR_LIB_CPK 51
|
||||
# define ERR_LIB_SM2 52
|
||||
# define ERR_LIB_SKF 53
|
||||
# define ERR_LIB_CBCMAC 54
|
||||
# define ERR_LIB_OTP 55
|
||||
# define ERR_LIB_SM9 56
|
||||
# endif
|
||||
|
||||
# define ERR_LIB_USER 128
|
||||
@@ -238,10 +243,15 @@ typedef struct err_state_st {
|
||||
# define TSerr(f,r) ERR_PUT_error(ERR_LIB_TS,(f),(r),__FILE__,__LINE__)
|
||||
# define HMACerr(f,r) ERR_PUT_error(ERR_LIB_HMAC,(f),(r),__FILE__,__LINE__)
|
||||
# define JPAKEerr(f,r) ERR_PUT_error(ERR_LIB_JPAKE,(f),(r),__FILE__,__LINE__)
|
||||
|
||||
# ifndef OPENSSL_NO_GMSSL
|
||||
# define ECIESerr(f,r) ERR_PUT_error(ERR_LIB_ECIES,(f),(r),__FILE__,__LINE__)
|
||||
# define CPKerr(f,r) ERR_PUT_error(ERR_LIB_CPK,(f),(r),__FILE__,__LINE__)
|
||||
# define SM2err(f,r) ERR_PUT_error(ERR_LIB_SM2,(f),(r),__FILE__,__LINE__)
|
||||
# define SKFerr(f,r) ERR_PUT_error(ERR_LIB_SKF,(f),(r),__FILE__,__LINE__)
|
||||
# define CBCMACerr(f,r) ERR_PUT_error(ERR_LIB_CBCMAC,(f),(r),__FILE__,__LINE__);
|
||||
# define OTPerr(f,r) ERR_PUT_error(ERR_LIB_OTP,(f),(r),__FILE__,__LINE__);
|
||||
# define SM9err(f,r) ERR_PUT_error(ERR_LIB_SM9,(f),(r),__FILE__,__LINE__);
|
||||
# endif
|
||||
|
||||
/*
|
||||
@@ -299,10 +309,15 @@ typedef struct err_state_st {
|
||||
# define ERR_R_ECDH_LIB ERR_LIB_ECDH/* 43 */
|
||||
# define ERR_R_STORE_LIB ERR_LIB_STORE/* 44 */
|
||||
# define ERR_R_TS_LIB ERR_LIB_TS/* 45 */
|
||||
|
||||
# ifndef OPENSSL_NO_GMSSL
|
||||
# define ERR_R_ECIES_LIB ERR_LIB_ECIES/* 50 */
|
||||
# define ERR_R_SM2_LIB ERR_LIB_SM2/* 51 */
|
||||
# define ERR_R_SKF_LIB ERR_LIB_SKF/* 52 */
|
||||
# define ERR_R_CPK_LIB ERR_LIB_CPK/* 51 */
|
||||
# define ERR_R_SM2_LIB ERR_LIB_SM2/* 52 */
|
||||
# define ERR_R_SKF_LIB ERR_LIB_SKF/* 53 */
|
||||
# define ERR_R_CBCMAC_LIB ERR_LIB_CBCMAC/* 54 */
|
||||
# define ERR_R_OTP_LIB ERR_LIB_CBCMAC/* 55 */
|
||||
# define ERR_R_SM9_LIB ERR_LIB_SM9/* 56 */
|
||||
# endif
|
||||
|
||||
# define ERR_R_NESTED_ASN1_ERROR 58
|
||||
|
||||
@@ -107,8 +107,15 @@
|
||||
#ifndef OPENSSL_NO_JPAKE
|
||||
# include <openssl/jpake.h>
|
||||
#endif
|
||||
|
||||
#ifndef OPENSSL_NO_GMSSL
|
||||
# include <openssl/sm2.h>
|
||||
# include <openssl/skf.h>
|
||||
# include <openssl/cpk.h>
|
||||
# include <openssl/ecies.h>
|
||||
# include <openssl/cbcmac.h>
|
||||
# include <openssl/otp.h>
|
||||
# include <openssl/sm9.h>
|
||||
#endif
|
||||
|
||||
void ERR_load_crypto_strings(void)
|
||||
@@ -169,7 +176,12 @@ void ERR_load_crypto_strings(void)
|
||||
# endif
|
||||
# ifndef OPENSSL_NO_GMSSL
|
||||
ERR_load_ECIES_strings();
|
||||
ERR_load_CPK_strings();
|
||||
ERR_load_SM2_strings();
|
||||
ERR_load_SKF_strings();
|
||||
ERR_load_CBCMAC_strings();
|
||||
ERR_load_OTP_strings();
|
||||
ERR_load_SM9_strings();
|
||||
# endif
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -37,7 +37,11 @@ L CMS crypto/cms/cms.h crypto/cms/cms_err.c
|
||||
L JPAKE crypto/jpake/jpake.h crypto/jpake/jpake_err.c
|
||||
L ECIES crypto/ecies/ecies.h crypto/ecies/ecies_err.c
|
||||
L SM2 crypto/sm2/sm2.h crypto/sm2/sm2_err.c
|
||||
L SKF crypto/skf/skf.h crypto/skf/skf_err.c
|
||||
L SKF crypto/skf/skf_ex.h crypto/skf/skf_err.c
|
||||
L CPK crypto/cpk/cpk.h crypto/cpk/cpk_err.c
|
||||
L CBCMAC crypto/cbcmac/cbcmac.h crypto/cbcmac/cbcmac_err.c
|
||||
L OTP crypto/otp/otp.h crypto/otp/otp_err.c
|
||||
L SM9 crypto/sm9/sm9.h crypto/sm9/sm9_err.c
|
||||
|
||||
# additional header files to be scanned for function names
|
||||
L NONE crypto/x509/x509_vfy.h NONE
|
||||
|
||||
Reference in New Issue
Block a user