Add sm2utl and sm9utl commands

This commit is contained in:
Zhi Guan
2018-12-25 14:49:12 +08:00
parent 0e38e3e7a3
commit 786d6f0205
15 changed files with 6500 additions and 5419 deletions

View File

@@ -121,6 +121,16 @@ int SM2_ciphertext_size(const EC_KEY *ec_key, size_t inlen)
return ret;
}
int i2d_SM2CiphertextValue_bio(BIO *bp, SM2CiphertextValue *a)
{
return ASN1_item_i2d_bio(ASN1_ITEM_rptr(SM2CiphertextValue), bp, a);
}
SM2CiphertextValue *d2i_SM2CiphertextValue_bio(BIO *bp, SM2CiphertextValue **a)
{
return ASN1_item_d2i_bio(ASN1_ITEM_rptr(SM2CiphertextValue), bp, a);
}
#ifndef OPENSSL_NO_STDIO
SM2CiphertextValue *d2i_SM2CiphertextValue_fp(FILE *fp, SM2CiphertextValue **a)
{