Home
last modified time | relevance | path

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

/third_party/openssl/crypto/sm2/
Dsm2_crypt.c121 uint8_t *msg_mask = NULL; in sm2_encrypt() local
191 msg_mask = OPENSSL_zalloc(msg_len); in sm2_encrypt()
192 if (msg_mask == NULL) { in sm2_encrypt()
198 if (!ecdh_KDF_X9_63(msg_mask, msg_len, x2y2, 2 * field_size, NULL, 0, in sm2_encrypt()
205 msg_mask[i] ^= msg[i]; in sm2_encrypt()
226 || !ASN1_OCTET_STRING_set(ctext_struct.C2, msg_mask, msg_len)) { in sm2_encrypt()
244 OPENSSL_free(msg_mask); in sm2_encrypt()
271 uint8_t *msg_mask = NULL; in sm2_decrypt() local
313 msg_mask = OPENSSL_zalloc(msg_len); in sm2_decrypt()
317 if (msg_mask == NULL || x2y2 == NULL || computed_C3 == NULL) { in sm2_decrypt()
[all …]