| /crypto/cmp/ |
| A D | cmp_msg.c | 26 msg = NULL; in OSSL_CMP_MSG_new() 28 return msg; in OSSL_CMP_MSG_new() 83 if (!ossl_assert(msg != NULL && msg->body != NULL)) in ossl_cmp_msg_set_bodytype() 92 if (!ossl_assert(msg != NULL && msg->body != NULL)) in OSSL_CMP_MSG_get_bodytype() 438 return msg; in ossl_cmp_certreq_new() 560 return msg; in ossl_cmp_certrep_new() 623 return msg; in ossl_cmp_rr_new() 668 return msg; in ossl_cmp_rp_new() 756 return msg; in gen_new() 1244 if (msg != NULL && *msg != NULL) { in d2i_OSSL_CMP_MSG() [all …]
|
| A D | cmp_vfy.c | 44 prot_part.header = msg->header; in verify_signature() 45 prot_part.body = msg->body; in verify_signature() 48 msg->header->protectionAlg, msg->protection, in verify_signature() 79 valid = msg->protection != NULL && msg->protection->length >= 0 in verify_PBMAC() 431 msg->extraCerts, NULL, msg, mode_3gpp)) in check_msg_all_certs() 560 if (ctx == NULL || msg == NULL in OSSL_CMP_validate_msg() 561 || msg->header == NULL || msg->body == NULL) { in OSSL_CMP_validate_msg() 567 || msg->protection == NULL || msg->protection->data == NULL) { in OSSL_CMP_validate_msg() 702 if (!ossl_assert(ctx != NULL && msg != NULL && msg->header != NULL)) in ossl_cmp_msg_check_update() 871 if (!ossl_assert(msg != NULL && msg->body != NULL)) in ossl_cmp_verify_popo() [all …]
|
| A D | cmp_protect.c | 39 prot_part.header = msg->header; in ossl_cmp_calc_protection() 40 prot_part.body = msg->body; in ossl_cmp_calc_protection() 42 if (msg->header->protectionAlg == NULL) { in ossl_cmp_calc_protection() 176 sk_X509_free(msg->extraCerts); in ossl_cmp_msg_add_extraCerts() 177 msg->extraCerts = NULL; in ossl_cmp_msg_add_extraCerts() 236 msg->header->protectionAlg = NULL; in ossl_cmp_msg_protect() 237 ASN1_BIT_STRING_free(msg->protection); in ossl_cmp_msg_protect() 238 msg->protection = NULL; in ossl_cmp_msg_protect() 241 if (!set_senderKID(ctx, msg, NULL)) in ossl_cmp_msg_protect() 247 if (!set_senderKID(ctx, msg, NULL)) in ossl_cmp_msg_protect() [all …]
|
| A D | cmp_util.c | 81 const char *msg = buf; in ossl_cmp_log_parse_metadata() local 103 msg = strchr(p_level, ':'); in ossl_cmp_log_parse_metadata() 104 if (msg != NULL && *++msg == ' ') in ossl_cmp_log_parse_metadata() 105 msg++; in ossl_cmp_log_parse_metadata() 110 return msg; in ossl_cmp_log_parse_metadata() 146 level_string, msg) >= 0; in OSSL_CMP_print_to_bio() 154 char msg[ERR_PRINT_BUF_SIZE]; in OSSL_CMP_print_errors_cb() local 178 BIO_snprintf(msg, sizeof(msg), "%s:%s", rs, data); in OSSL_CMP_print_errors_cb() 180 BIO_snprintf(msg, sizeof(msg), "%s", rs); in OSSL_CMP_print_errors_cb() 188 OSSL_CMP_LOG_ERR, msg); in OSSL_CMP_print_errors_cb() [all …]
|
| A D | cmp_local.h | 724 void OSSL_CMP_MSG_free(OSSL_CMP_MSG *msg); 831 # define ossl_cmp_log(level, ctx, msg) \ argument 833 OPENSSL_LINE, #level, "%s", msg) 848 # define ossl_cmp_alert(ctx, msg) ossl_cmp_log(ALERT, ctx, msg) argument 849 # define ossl_cmp_err(ctx, msg) ossl_cmp_log(ERROR, ctx, msg) argument 850 # define ossl_cmp_warn(ctx, msg) ossl_cmp_log(WARN, ctx, msg) argument 851 # define ossl_cmp_info(ctx, msg) ossl_cmp_log(INFO, ctx, msg) argument 852 # define ossl_cmp_debug(ctx, msg) ossl_cmp_log(DEBUG, ctx, msg) argument 853 # define ossl_cmp_trace(ctx, msg) ossl_cmp_log(TRACE, ctx, msg) argument 940 int ossl_cmp_msg_set_bodytype(OSSL_CMP_MSG *msg, int type); [all …]
|
| A D | cmp_server.c | 172 OSSL_CMP_MSG *msg; in delayed_delivery() local 199 return msg; in delayed_delivery() 298 if (msg == NULL) in process_cert_request() 307 return msg; in process_cert_request() 350 return msg; in process_rr() 361 OSSL_CMP_MSG *msg; in process_genm() local 371 return msg; in process_genm() 378 OSSL_CMP_MSG *msg; in process_error() local 388 return msg; in process_error() 446 return msg; in process_certConf() [all …]
|
| /crypto/bio/ |
| A D | bss_dgram.c | 1041 mh->name = msg->peer != NULL ? &msg->peer->sa : NULL; in translate_msg_win() 1079 mh->msg_name = msg->peer != NULL ? &msg->peer->sa : NULL; in translate_msg() 1490 msg[0].peer != NULL ? BIO_ADDR_sockaddr(msg[0].peer) : NULL, in dgram_sendmmsg() 1734 msg[0].peer != NULL ? &msg[0].peer->sa : NULL, in dgram_recvmmsg() 1951 struct msghdr msg; in dgram_sctp_read() local 2182 struct msghdr msg; in dgram_sctp_write() local 2224 msg.msg_iov = iov; in dgram_sctp_write() 2228 msg.msg_flags = 0; in dgram_sctp_write() 2561 struct msghdr msg; in dgram_sctp_wait_for_dry() local 2605 msg.msg_flags = 0; in dgram_sctp_wait_for_dry() [all …]
|
| A D | bio_lib.c | 394 int BIO_sendmmsg(BIO *b, BIO_MSG *msg, in BIO_sendmmsg() argument 414 args.msg = msg; in BIO_sendmmsg() 432 ret = b->method->bsendmmsg(b, msg, stride, num_msg, flags, msgs_processed); in BIO_sendmmsg() 441 int BIO_recvmmsg(BIO *b, BIO_MSG *msg, in BIO_recvmmsg() argument 461 args.msg = msg; in BIO_recvmmsg() 479 ret = b->method->brecvmmsg(b, msg, stride, num_msg, flags, msgs_processed); in BIO_recvmmsg()
|
| A D | bss_dgram_pair.c | 186 static int dgram_pair_sendmmsg(BIO *b, BIO_MSG *msg, size_t stride, 189 static int dgram_pair_recvmmsg(BIO *b, BIO_MSG *msg, size_t stride, 1054 static int dgram_pair_recvmmsg(BIO *bio, BIO_MSG *msg, in dgram_pair_recvmmsg() argument 1088 m = &BIO_MSG_N(msg, i); in dgram_pair_recvmmsg() 1306 static int dgram_pair_sendmmsg(BIO *bio, BIO_MSG *msg, in dgram_pair_sendmmsg() argument 1328 m = &BIO_MSG_N(msg, i); in dgram_pair_sendmmsg()
|
| /crypto/slh_dsa/ |
| A D | slh_dsa.c | 43 const uint8_t *msg, size_t msg_len, in slh_sign_internal() argument 148 const uint8_t *msg, size_t msg_len, in slh_verify_internal() argument 186 if (!hashf->H_MSG(hctx, r, pk_seed, pk_root, msg, msg_len, in slh_verify_internal() 231 static uint8_t *msg_encode(const uint8_t *msg, size_t msg_len, in msg_encode() argument 241 return (uint8_t *)msg; in msg_encode() 259 memcpy(&encoded[2 + ctx_len], msg, msg_len); in msg_encode() 268 const uint8_t *msg, size_t msg_len, in ossl_slh_dsa_sign() argument 284 if (m != msg && m != m_tmp) in ossl_slh_dsa_sign() 294 const uint8_t *msg, size_t msg_len, in ossl_slh_dsa_verify() argument 303 m = msg_encode(msg, msg_len, ctx, ctx_len, encode, m_tmp, sizeof(m_tmp), in ossl_slh_dsa_verify() [all …]
|
| A D | slh_dsa_local.h | 59 __owur int ossl_slh_wots_sign(SLH_DSA_HASH_CTX *ctx, const uint8_t *msg, 63 PACKET *sig_rpkt, const uint8_t *msg, 71 __owur int ossl_slh_xmss_sign(SLH_DSA_HASH_CTX *ctx, const uint8_t *msg, 76 PACKET *sig_rpkt, const uint8_t *msg, 80 __owur int ossl_slh_ht_sign(SLH_DSA_HASH_CTX *ctx, const uint8_t *msg, 84 __owur int ossl_slh_ht_verify(SLH_DSA_HASH_CTX *ctx, const uint8_t *msg,
|
| A D | slh_hypertree.c | 32 const uint8_t *msg, const uint8_t *sk_seed, in ossl_slh_ht_sign() argument 64 memcpy(root, msg, n); in ossl_slh_ht_sign() 107 int ossl_slh_ht_verify(SLH_DSA_HASH_CTX *ctx, const uint8_t *msg, PACKET *sig_pkt, in ossl_slh_ht_verify() argument 123 memcpy(node, msg, n); in ossl_slh_ht_verify()
|
| A D | slh_hash.c | 67 const uint8_t *msg, size_t msg_len, in slh_hmsg_shake() argument 75 msg, msg_len, out, m); in slh_hmsg_shake() 92 const uint8_t *opt_rand, const uint8_t *msg, size_t msg_len, in slh_prf_msg_shake() argument 99 return xof_digest_3(ctx->md_ctx, sk_prf, n, opt_rand, n, msg, msg_len, out, n) in slh_prf_msg_shake() 151 const uint8_t *pk_root, const uint8_t *msg, size_t msg_len, in slh_hmsg_sha2() argument 166 return digest_4(hctx->md_big_ctx, r, n, pk_seed, n, pk_root, n, msg, msg_len, in slh_hmsg_sha2() 174 const uint8_t *msg, size_t msg_len, WPACKET *pkt) in slh_prf_msg_sha2() argument 205 && EVP_MAC_update(mctx, msg, msg_len) == 1 in slh_prf_msg_sha2()
|
| A D | slh_xmss.c | 85 int ossl_slh_xmss_sign(SLH_DSA_HASH_CTX *ctx, const uint8_t *msg, in ossl_slh_xmss_sign() argument 105 if (!ossl_slh_wots_sign(ctx, msg, sk_seed, pk_seed, adrs, sig_wpkt)) in ossl_slh_xmss_sign() 140 PACKET *sig_rpkt, const uint8_t *msg, in ossl_slh_xmss_pk_from_sig() argument 158 if (!ossl_slh_wots_pk_from_sig(ctx, sig_rpkt, msg, pk_seed, adrs, in ossl_slh_xmss_pk_from_sig()
|
| A D | slh_hash.h | 28 const uint8_t *msg, size_t msg_len, 37 const uint8_t *msg, size_t msg_len,
|
| A D | slh_wots.c | 203 int ossl_slh_wots_sign(SLH_DSA_HASH_CTX *ctx, const uint8_t *msg, in ossl_slh_wots_sign() argument 226 slh_bytes_to_nibbles(msg, n, msg_and_csum_nibbles); in ossl_slh_wots_sign() 267 PACKET *sig_rpkt, const uint8_t *msg, in ossl_slh_wots_pk_from_sig() argument 291 slh_bytes_to_nibbles(msg, n, msg_and_csum_nibbles); in ossl_slh_wots_pk_from_sig()
|
| /crypto/ts/ |
| A D | ts_lib.c | 82 ASN1_OCTET_STRING *msg; in TS_MSG_IMPRINT_print_bio() local 87 msg = a->hashed_msg; in TS_MSG_IMPRINT_print_bio() 88 BIO_dump_indent(bio, (const char *)ASN1_STRING_get0_data(msg), in TS_MSG_IMPRINT_print_bio() 89 ASN1_STRING_length(msg), 4); in TS_MSG_IMPRINT_print_bio()
|
| A D | ts_verify_ctx.c | 143 ASN1_OCTET_STRING *msg; in TS_REQ_to_TS_VERIFY_CTX() local 164 msg = imprint->hashed_msg; in TS_REQ_to_TS_VERIFY_CTX() 165 ret->imprint_len = ASN1_STRING_length(msg); in TS_REQ_to_TS_VERIFY_CTX() 170 memcpy(ret->imprint, ASN1_STRING_get0_data(msg), ret->imprint_len); in TS_REQ_to_TS_VERIFY_CTX()
|
| /crypto/ml_dsa/ |
| A D | ml_dsa_sign.c | 119 int ossl_ml_dsa_mu_update(EVP_MD_CTX *md_ctx, const uint8_t *msg, size_t msg_len) in ossl_ml_dsa_mu_update() argument 121 return EVP_DigestUpdate(md_ctx, msg, msg_len); in ossl_ml_dsa_mu_update() 420 const uint8_t *msg, size_t msg_len, in ossl_ml_dsa_sign() argument 444 mu_ptr = msg; in ossl_ml_dsa_sign() 451 if (!ossl_ml_dsa_mu_update(md_ctx, msg, msg_len)) in ossl_ml_dsa_sign() 470 const uint8_t *msg, size_t msg_len, in ossl_ml_dsa_verify() argument 484 mu_ptr = msg; in ossl_ml_dsa_verify() 491 if (!ossl_ml_dsa_mu_update(md_ctx, msg, msg_len)) in ossl_ml_dsa_verify()
|
| /crypto/crmf/ |
| A D | crmf_pbm.c | 117 const unsigned char *msg, size_t msglen, in OSSL_CRMF_pbm_new() argument 133 || pbmp->mac->algorithm == NULL || msg == NULL || sec == NULL) { in OSSL_CRMF_pbm_new() 197 msg, msglen, mac_res, EVP_MAX_MD_SIZE, outlen) == NULL) in OSSL_CRMF_pbm_new()
|
| A D | crmf_lib.c | 41 valt *OSSL_CRMF_MSG_get0_##ctrlinf##_##atyp(const OSSL_CRMF_MSG *msg) \ 47 if (msg == NULL || msg->certReq == NULL) \ 49 controls = msg->certReq->controls; \ 58 int OSSL_CRMF_MSG_set1_##ctrlinf##_##atyp(OSSL_CRMF_MSG *msg, const valt *in) \ 62 if (msg == NULL || in == NULL) \ 70 if (!OSSL_CRMF_MSG_push0_##ctrlinf(msg, atav)) \
|
| /crypto/sm2/ |
| A D | sm2_sign.c | 153 const uint8_t *msg, size_t msg_len) in sm2_compute_msg_hash() argument 189 || !EVP_DigestUpdate(hash, msg, msg_len) in sm2_compute_msg_hash() 418 const uint8_t *msg, size_t msg_len) in ossl_sm2_do_sign() argument 423 e = sm2_compute_msg_hash(digest, key, id, id_len, msg, msg_len); in ossl_sm2_do_sign() 441 const uint8_t *msg, size_t msg_len) in ossl_sm2_do_verify() argument 446 e = sm2_compute_msg_hash(digest, key, id, id_len, msg, msg_len); in ossl_sm2_do_verify()
|
| A D | sm2_crypt.c | 57 static int is_all_zeros(const unsigned char *msg, size_t msglen) in is_all_zeros() argument 63 re |= msg[i]; in is_all_zeros() 109 const uint8_t *msg, size_t msg_len, in ossl_sm2_encrypt() argument 225 msg_mask[i] ^= msg[i]; in ossl_sm2_encrypt() 234 || EVP_DigestUpdate(hash, msg, msg_len) == 0 in ossl_sm2_encrypt()
|
| /crypto/lms/ |
| A D | lms_verify.c | 111 const unsigned char *msg, size_t msglen) in ossl_lms_sig_verify() argument 138 lms_sig->q, msg, msglen, Kc)) in ossl_lms_sig_verify()
|
| A D | lm_ots_verify.c | 40 const unsigned char *msg, size_t msglen, in ossl_lm_ots_compute_pubkey() argument 58 && EVP_DigestUpdate(ctx, msg, msglen) in ossl_lm_ots_compute_pubkey()
|