diff options
author | Matt Caswell <matt@openssl.org> | 2018-05-31 13:49:47 +0100 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2018-06-04 11:59:56 +0100 |
commit | e14d6cf691c9d8ad49df280b580b6836a67c6a19 (patch) | |
tree | cbf7b07a1abd22da9e711c3656ed599f5f7b7715 /crypto/include | |
parent | 44d3845d8967c66a87e4d7628552e2bfd45ac344 (diff) |
Improve use of the test framework in the SM2 internal tests
Also general clean up of those tests
Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6386)
Diffstat (limited to 'crypto/include')
-rw-r--r-- | crypto/include/internal/sm2.h | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/crypto/include/internal/sm2.h b/crypto/include/internal/sm2.h index af24c0146b..91420a520c 100644 --- a/crypto/include/internal/sm2.h +++ b/crypto/include/internal/sm2.h @@ -57,13 +57,11 @@ int SM2_verify(int type, const unsigned char *dgst, int dgstlen, /* * SM2 encryption */ -size_t SM2_ciphertext_size(const EC_KEY *key, - const EVP_MD *digest, - size_t msg_len); +int SM2_ciphertext_size(const EC_KEY *key, const EVP_MD *digest, size_t msg_len, + size_t *ct_size); -size_t SM2_plaintext_size(const EC_KEY *key, - const EVP_MD *digest, - size_t msg_len); +int SM2_plaintext_size(const EC_KEY *key, const EVP_MD *digest, size_t msg_len, + size_t *pt_size); int SM2_encrypt(const EC_KEY *key, const EVP_MD *digest, @@ -76,8 +74,6 @@ int SM2_decrypt(const EC_KEY *key, const uint8_t *ciphertext, size_t ciphertext_len, uint8_t *ptext_buf, size_t *ptext_len); -int ERR_load_SM2_strings(void); - # ifdef __cplusplus } # endif |