mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-24 01:06:33 +08:00
Update CMake
This commit is contained in:
@@ -361,7 +361,7 @@ err:
|
||||
return -1;
|
||||
}
|
||||
|
||||
#ifdef ENABLE_PRIVATE_KEY_EXPORT
|
||||
#ifdef SM2_PRIVATE_KEY_EXPORT
|
||||
int sm2_private_key_info_to_pem(const SM2_KEY *key, FILE *fp)
|
||||
{
|
||||
int ret = -1;
|
||||
@@ -445,7 +445,7 @@ int sm2_public_key_info_from_der(SM2_KEY *pub_key, const uint8_t **in, size_t *i
|
||||
return 1;
|
||||
}
|
||||
|
||||
#ifdef ENABLE_PRIVATE_KEY_EXPORT
|
||||
#ifdef SM2_PRIVATE_KEY_EXPORT
|
||||
|
||||
// FIXME: side-channel of Base64
|
||||
int sm2_private_key_to_pem(const SM2_KEY *a, FILE *fp)
|
||||
|
||||
@@ -101,7 +101,7 @@ static void ctr_incr(uint8_t a[16])
|
||||
}
|
||||
}
|
||||
|
||||
#ifndef ENABLE_SM4_AESNI_AVX
|
||||
#ifndef SM4_AESNI_AVX
|
||||
void sm4_ctr_encrypt(const SM4_KEY *key, uint8_t ctr[16], const uint8_t *in, size_t inlen, uint8_t *out)
|
||||
{
|
||||
uint8_t block[16];
|
||||
|
||||
Reference in New Issue
Block a user