Lines Matching refs:sm2_ctext
72 struct SM2_Ciphertext_st *sm2_ctext = NULL; in ossl_sm2_plaintext_size() local
74 sm2_ctext = d2i_SM2_Ciphertext(NULL, &ct, ct_size); in ossl_sm2_plaintext_size()
76 if (sm2_ctext == NULL) { in ossl_sm2_plaintext_size()
81 *pt_size = sm2_ctext->C2->length; in ossl_sm2_plaintext_size()
82 SM2_Ciphertext_free(sm2_ctext); in ossl_sm2_plaintext_size()
285 struct SM2_Ciphertext_st *sm2_ctext = NULL; in ossl_sm2_decrypt() local
305 sm2_ctext = d2i_SM2_Ciphertext(NULL, &ciphertext, ciphertext_len); in ossl_sm2_decrypt()
307 if (sm2_ctext == NULL) { in ossl_sm2_decrypt()
312 if (sm2_ctext->C3->length != hash_size) { in ossl_sm2_decrypt()
317 C2 = sm2_ctext->C2->data; in ossl_sm2_decrypt()
318 C3 = sm2_ctext->C3->data; in ossl_sm2_decrypt()
319 msg_len = sm2_ctext->C2->length; in ossl_sm2_decrypt()
353 if (!EC_POINT_set_affine_coordinates(group, C1, sm2_ctext->C1x, in ossl_sm2_decrypt()
354 sm2_ctext->C1y, ctx) in ossl_sm2_decrypt()
410 SM2_Ciphertext_free(sm2_ctext); in ossl_sm2_decrypt()