diff --git a/include/openssl/sm2.h b/include/openssl/sm2.h index 80f1e8e6..e9b7a51b 100755 --- a/include/openssl/sm2.h +++ b/include/openssl/sm2.h @@ -119,6 +119,10 @@ SM2CiphertextValue *d2i_SM2CiphertextValue_fp(FILE *fp, SM2CiphertextValue **a); int i2d_SM2CiphertextValue_fp(FILE *fp, SM2CiphertextValue *a); #endif +int i2o_SM2CiphertextValue(const EC_GROUP *group, const SM2CiphertextValue *cv, + unsigned char **pout); +SM2CiphertextValue *o2i_SM2CiphertextValue(const EC_GROUP *group, const EVP_MD *md, + SM2CiphertextValue **cv, const unsigned char **pin, long len); int SM2_ciphertext_size(const EC_KEY *ec_key, size_t inlen); diff --git a/test/sm2test.c b/test/sm2test.c index d454efe6..de562dab 100644 --- a/test/sm2test.c +++ b/test/sm2test.c @@ -67,11 +67,6 @@ int main(int argc, char **argv) # include # include "../crypto/sm2/sm2_lcl.h" -int i2o_SM2CiphertextValue(const EC_GROUP *group, const SM2CiphertextValue *cv, - unsigned char **pout); -SM2CiphertextValue *o2i_SM2CiphertextValue(const EC_GROUP *group, const EVP_MD *md, - SM2CiphertextValue **cv, const unsigned char **pin, long len); - # define VERBOSE 1 RAND_METHOD fake_rand;