Home
last modified time | relevance | path

Searched refs:sm2_ctext (Results 1 – 2 of 2) sorted by relevance

/third_party/node/deps/openssl/openssl/crypto/sm2/
Dsm2_crypt.c73 struct SM2_Ciphertext_st *sm2_ctext = NULL; in ossl_sm2_plaintext_size() local
75 sm2_ctext = d2i_SM2_Ciphertext(NULL, &ct, ct_size); in ossl_sm2_plaintext_size()
77 if (sm2_ctext == NULL) { in ossl_sm2_plaintext_size()
82 *pt_size = sm2_ctext->C2->length; in ossl_sm2_plaintext_size()
83 SM2_Ciphertext_free(sm2_ctext); in ossl_sm2_plaintext_size()
280 struct SM2_Ciphertext_st *sm2_ctext = NULL; in ossl_sm2_decrypt() local
300 sm2_ctext = d2i_SM2_Ciphertext(NULL, &ciphertext, ciphertext_len); in ossl_sm2_decrypt()
302 if (sm2_ctext == NULL) { in ossl_sm2_decrypt()
307 if (sm2_ctext->C3->length != hash_size) { in ossl_sm2_decrypt()
312 C2 = sm2_ctext->C2->data; in ossl_sm2_decrypt()
[all …]
/third_party/openssl/crypto/sm2/
Dsm2_crypt.c73 struct SM2_Ciphertext_st *sm2_ctext = NULL; in ossl_sm2_plaintext_size() local
75 sm2_ctext = d2i_SM2_Ciphertext(NULL, &ct, ct_size); in ossl_sm2_plaintext_size()
77 if (sm2_ctext == NULL) { in ossl_sm2_plaintext_size()
82 *pt_size = sm2_ctext->C2->length; in ossl_sm2_plaintext_size()
83 SM2_Ciphertext_free(sm2_ctext); in ossl_sm2_plaintext_size()
280 struct SM2_Ciphertext_st *sm2_ctext = NULL; in ossl_sm2_decrypt() local
300 sm2_ctext = d2i_SM2_Ciphertext(NULL, &ciphertext, ciphertext_len); in ossl_sm2_decrypt()
302 if (sm2_ctext == NULL) { in ossl_sm2_decrypt()
307 if (sm2_ctext->C3->length != hash_size) { in ossl_sm2_decrypt()
312 C2 = sm2_ctext->C2->data; in ossl_sm2_decrypt()
[all …]