Lines Matching refs:ctext_struct
121 struct SM2_Ciphertext_st ctext_struct; in ossl_sm2_encrypt() local
137 ctext_struct.C2 = NULL; in ossl_sm2_encrypt()
138 ctext_struct.C3 = NULL; in ossl_sm2_encrypt()
241 ctext_struct.C1x = x1; in ossl_sm2_encrypt()
242 ctext_struct.C1y = y1; in ossl_sm2_encrypt()
243 ctext_struct.C3 = ASN1_OCTET_STRING_new(); in ossl_sm2_encrypt()
244 ctext_struct.C2 = ASN1_OCTET_STRING_new(); in ossl_sm2_encrypt()
246 if (ctext_struct.C3 == NULL || ctext_struct.C2 == NULL) { in ossl_sm2_encrypt()
250 if (!ASN1_OCTET_STRING_set(ctext_struct.C3, C3, C3_size) in ossl_sm2_encrypt()
251 || !ASN1_OCTET_STRING_set(ctext_struct.C2, msg_mask, (int)msg_len)) { in ossl_sm2_encrypt()
256 ciphertext_leni = i2d_SM2_Ciphertext(&ctext_struct, &ciphertext_buf); in ossl_sm2_encrypt()
268 ASN1_OCTET_STRING_free(ctext_struct.C2); in ossl_sm2_encrypt()
269 ASN1_OCTET_STRING_free(ctext_struct.C3); in ossl_sm2_encrypt()