Home
last modified time | relevance | path

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

/openssl/crypto/sm2/
H A Dsm2_crypt.c127 uint8_t *msg_mask = NULL; in ossl_sm2_encrypt() local
183 msg_mask = OPENSSL_zalloc(msg_len); in ossl_sm2_encrypt()
184 if (msg_mask == NULL) in ossl_sm2_encrypt()
214 if (is_all_zeros(msg_mask, msg_len)) { in ossl_sm2_encrypt()
220 msg_mask[i] ^= msg[i]; in ossl_sm2_encrypt()
265 OPENSSL_free(msg_mask); in ossl_sm2_encrypt()
292 uint8_t *msg_mask = NULL; in ossl_sm2_decrypt() local
340 msg_mask = OPENSSL_zalloc(msg_len); in ossl_sm2_decrypt()
370 if (is_all_zeros(msg_mask, msg_len)) { in ossl_sm2_decrypt()
376 ptext_buf[i] = C2[i] ^ msg_mask[i]; in ossl_sm2_decrypt()
[all …]

Completed in 4 milliseconds