Lines Matching refs:ctext_struct
122 struct SM2_Ciphertext_st ctext_struct; in ossl_sm2_encrypt() local
138 ctext_struct.C2 = NULL; in ossl_sm2_encrypt()
139 ctext_struct.C3 = NULL; in ossl_sm2_encrypt()
231 ctext_struct.C1x = x1; in ossl_sm2_encrypt()
232 ctext_struct.C1y = y1; in ossl_sm2_encrypt()
233 ctext_struct.C3 = ASN1_OCTET_STRING_new(); in ossl_sm2_encrypt()
234 ctext_struct.C2 = ASN1_OCTET_STRING_new(); in ossl_sm2_encrypt()
236 if (ctext_struct.C3 == NULL || ctext_struct.C2 == NULL) { in ossl_sm2_encrypt()
240 if (!ASN1_OCTET_STRING_set(ctext_struct.C3, C3, C3_size) in ossl_sm2_encrypt()
241 || !ASN1_OCTET_STRING_set(ctext_struct.C2, msg_mask, msg_len)) { in ossl_sm2_encrypt()
246 ciphertext_leni = i2d_SM2_Ciphertext(&ctext_struct, &ciphertext_buf); in ossl_sm2_encrypt()
258 ASN1_OCTET_STRING_free(ctext_struct.C2); in ossl_sm2_encrypt()
259 ASN1_OCTET_STRING_free(ctext_struct.C3); in ossl_sm2_encrypt()