Lines Matching refs:NULL

51     if (p == NULL)
72 struct SM2_Ciphertext_st *sm2_ctext = NULL; in ossl_sm2_plaintext_size()
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()
114 BN_CTX *ctx = NULL; in ossl_sm2_encrypt()
115 BIGNUM *k = NULL; in ossl_sm2_encrypt()
116 BIGNUM *x1 = NULL; in ossl_sm2_encrypt()
117 BIGNUM *y1 = NULL; in ossl_sm2_encrypt()
118 BIGNUM *x2 = NULL; in ossl_sm2_encrypt()
119 BIGNUM *y2 = NULL; in ossl_sm2_encrypt()
125 EC_POINT *kG = NULL; in ossl_sm2_encrypt()
126 EC_POINT *kP = NULL; in ossl_sm2_encrypt()
127 uint8_t *msg_mask = NULL; in ossl_sm2_encrypt()
128 uint8_t *x2y2 = NULL; in ossl_sm2_encrypt()
129 uint8_t *C3 = NULL; in ossl_sm2_encrypt()
132 EVP_MD *fetched_digest = NULL; in ossl_sm2_encrypt()
137 ctext_struct.C2 = NULL; in ossl_sm2_encrypt()
138 ctext_struct.C3 = NULL; in ossl_sm2_encrypt()
140 if (hash == NULL || C3_size <= 0) { in ossl_sm2_encrypt()
153 if (kG == NULL || kP == NULL) { in ossl_sm2_encrypt()
158 if (ctx == NULL) { in ossl_sm2_encrypt()
170 if (y2 == NULL) { in ossl_sm2_encrypt()
178 if (x2y2 == NULL || C3 == NULL) in ossl_sm2_encrypt()
184 if (msg_mask == NULL) in ossl_sm2_encrypt()
193 if (!EC_POINT_mul(group, kG, k, NULL, NULL, ctx) in ossl_sm2_encrypt()
195 || !EC_POINT_mul(group, kP, NULL, P, k, ctx) in ossl_sm2_encrypt()
208 if (!ossl_ecdh_kdf_X9_63(msg_mask, msg_len, x2y2, 2 * field_size, NULL, 0, in ossl_sm2_encrypt()
223 if (fetched_digest == NULL) { in ossl_sm2_encrypt()
231 || EVP_DigestFinal(hash, C3, NULL) == 0) { in ossl_sm2_encrypt()
241 if (ctext_struct.C3 == NULL || ctext_struct.C2 == NULL) { in ossl_sm2_encrypt()
282 BN_CTX *ctx = NULL; in ossl_sm2_decrypt()
284 EC_POINT *C1 = NULL; in ossl_sm2_decrypt()
285 struct SM2_Ciphertext_st *sm2_ctext = NULL; in ossl_sm2_decrypt()
286 BIGNUM *x2 = NULL; in ossl_sm2_decrypt()
287 BIGNUM *y2 = NULL; in ossl_sm2_decrypt()
288 uint8_t *x2y2 = NULL; in ossl_sm2_decrypt()
289 uint8_t *computed_C3 = NULL; in ossl_sm2_decrypt()
292 uint8_t *msg_mask = NULL; in ossl_sm2_decrypt()
293 const uint8_t *C2 = NULL; in ossl_sm2_decrypt()
294 const uint8_t *C3 = NULL; in ossl_sm2_decrypt()
296 EVP_MD_CTX *hash = NULL; in ossl_sm2_decrypt()
305 sm2_ctext = d2i_SM2_Ciphertext(NULL, &ciphertext, ciphertext_len); in ossl_sm2_decrypt()
307 if (sm2_ctext == NULL) { in ossl_sm2_decrypt()
326 if (ctx == NULL) { in ossl_sm2_decrypt()
335 if (y2 == NULL) { in ossl_sm2_decrypt()
344 if (msg_mask == NULL || x2y2 == NULL || computed_C3 == NULL) in ossl_sm2_decrypt()
348 if (C1 == NULL) { in ossl_sm2_decrypt()
355 || !EC_POINT_mul(group, C1, NULL, C1, EC_KEY_get0_private_key(key), in ossl_sm2_decrypt()
365 NULL, 0, digest, libctx, propq)) { in ossl_sm2_decrypt()
379 if (hash == NULL) { in ossl_sm2_decrypt()
388 || !EVP_DigestFinal(hash, computed_C3, NULL)) { in ossl_sm2_decrypt()