Lines Matching refs:signed_msg
409 uint8_t *signed_msg; in RSA_add_pkcs1_prefix() local
417 signed_msg = OPENSSL_malloc(signed_msg_len); in RSA_add_pkcs1_prefix()
418 if (!signed_msg) { in RSA_add_pkcs1_prefix()
423 memcpy(signed_msg, prefix, prefix_len); in RSA_add_pkcs1_prefix()
424 memcpy(signed_msg + prefix_len, msg, msg_len); in RSA_add_pkcs1_prefix()
426 *out_msg = signed_msg; in RSA_add_pkcs1_prefix()
441 uint8_t *signed_msg; in RSA_sign() local
450 if (!RSA_add_pkcs1_prefix(&signed_msg, &signed_msg_len, in RSA_sign()
461 if (RSA_sign_raw(rsa, &size_t_out_len, out, rsa_size, signed_msg, in RSA_sign()
469 OPENSSL_free(signed_msg); in RSA_sign()
479 uint8_t *signed_msg = NULL; in RSA_verify() local
508 if (!RSA_add_pkcs1_prefix(&signed_msg, &signed_msg_len, in RSA_verify()
513 if (len != signed_msg_len || CRYPTO_memcmp(buf, signed_msg, len) != 0) { in RSA_verify()
523 OPENSSL_free(signed_msg); in RSA_verify()