/openssl-master/crypto/evp/ |
A D | mac_meth.c | 12 EVP_MAC *mac = vmac; in evp_mac_up_ref() local 15 CRYPTO_UP_REF(&mac->refcnt, &ref, mac->lock); in evp_mac_up_ref() 21 EVP_MAC *mac = vmac; in evp_mac_free() local 24 if (mac == NULL) in evp_mac_free() 27 CRYPTO_DOWN_REF(&mac->refcnt, &ref, mac->lock); in evp_mac_free() 33 OPENSSL_free(mac); in evp_mac_free() 38 EVP_MAC *mac = NULL; in evp_mac_new() local 40 if ((mac = OPENSSL_zalloc(sizeof(*mac))) == NULL in evp_mac_new() 46 mac->refcnt = 1; in evp_mac_new() 48 return mac; in evp_mac_new() [all …]
|
A D | mac_lib.c | 27 || (ctx->algctx = mac->newctx(ossl_provider_ctx(mac->prov))) == NULL in EVP_MAC_CTX_new() 28 || !EVP_MAC_up_ref(mac)) { in EVP_MAC_CTX_new() 35 ctx->meth = mac; in EVP_MAC_CTX_new() 214 return mac->name_id; in evp_mac_get_number() 219 return mac->type_name; in EVP_MAC_get0_name() 224 return mac->description; in EVP_MAC_get0_description() 229 return evp_is_a(mac->prov, mac->name_id, NULL, name); in EVP_MAC_is_a() 236 if (mac->prov != NULL) in EVP_MAC_names_do_all() 237 return evp_names_do_all(mac->prov, mac->name_id, fn, data); in EVP_MAC_names_do_all() 257 if (mac == NULL) in EVP_Q_mac() [all …]
|
/openssl-master/test/ssl-tests/ |
A D | 19-mac-then-encrypt.cnf | 5 test-0 = 0-disable-encrypt-then-mac-server-sha 6 test-1 = 1-disable-encrypt-then-mac-client-sha 7 test-2 = 2-disable-encrypt-then-mac-both-sha 8 test-3 = 3-disable-encrypt-then-mac-server-sha2 10 test-5 = 5-disable-encrypt-then-mac-both-sha2 16 [0-disable-encrypt-then-mac-server-sha] 19 [0-disable-encrypt-then-mac-server-sha-ssl] 41 [1-disable-encrypt-then-mac-client-sha] 66 [2-disable-encrypt-then-mac-both-sha] 92 [3-disable-encrypt-then-mac-server-sha2] [all …]
|
A D | 19-mac-then-encrypt.cnf.in | 20 name => "disable-encrypt-then-mac-server-sha", 33 name => "disable-encrypt-then-mac-client-sha", 46 name => "disable-encrypt-then-mac-both-sha", 63 name => "disable-encrypt-then-mac-server-sha2", 76 name => "disable-encrypt-then-mac-client-sha2", 89 name => "disable-encrypt-then-mac-both-sha2", 106 name => "disable-encrypt-then-mac-server-sha-tls1", 121 name => "disable-encrypt-then-mac-client-sha-tls1", 136 name => "disable-encrypt-then-mac-both-sha-tls1",
|
/openssl-master/test/recipes/30-test_evp_data/ |
A D | evpkdf_ss.txt | 433 Ctrl.mac = mac:HMAC 441 Ctrl.mac = mac:HMAC 449 Ctrl.mac = mac:HMAC 457 Ctrl.mac = mac:HMAC 465 Ctrl.mac = mac:HMAC 473 Ctrl.mac = mac:HMAC 481 Ctrl.mac = mac:HMAC 489 Ctrl.mac = mac:HMAC 497 Ctrl.mac = mac:HMAC 505 Ctrl.mac = mac:HMAC [all …]
|
/openssl-master/crypto/pkcs12/ |
A D | p12_mutl.c | 26 return p12->mac ? 1 : 0; in PKCS12_mac_present() 35 if (p12->mac) { in PKCS12_get0_mac() 38 *psalt = p12->mac->salt; in PKCS12_get0_mac() 40 *piter = p12->mac->iter; in PKCS12_get0_mac() 101 salt = p12->mac->salt->data; in pkcs12_gen_mac() 102 saltlen = p12->mac->salt->length; in pkcs12_gen_mac() 103 if (p12->mac->iter == NULL) in pkcs12_gen_mac() 181 if (p12->mac == NULL) { in PKCS12_verify_mac() 237 PKCS12_MAC_DATA_free(p12->mac); in PKCS12_setup_mac() 238 p12->mac = NULL; in PKCS12_setup_mac() [all …]
|
/openssl-master/ssl/record/ |
A D | tls_pad.c | 27 unsigned char **mac, 37 unsigned char **mac, 45 unsigned char **mac, 71 unsigned char **mac, in ssl3_cbc_remove_padding_and_mac() argument 116 unsigned char **mac, in tls1_cbc_remove_padding_and_mac() argument 200 unsigned char **mac, in ssl3_cbc_copy_mac() argument 246 if (mac != NULL) in ssl3_cbc_copy_mac() 247 *mac = &recdata[*reclen]; in ssl3_cbc_copy_mac() 257 if (!ossl_assert(mac != NULL && alloced != NULL)) in ssl3_cbc_copy_mac() 259 *mac = out = OPENSSL_malloc(mac_size); in ssl3_cbc_copy_mac() [all …]
|
/openssl-master/crypto/poly1305/asm/ |
A D | poly1305-mips.pl | 401 sb $in0,0($mac) 403 sb $tmp0,1($mac) 405 sb $tmp1,2($mac) 407 sb $tmp2,3($mac) 409 sb $tmp3,4($mac) 411 sb $tmp0,5($mac) 413 sb $tmp1,6($mac) 415 sb $tmp2,7($mac) 417 sb $in1,8($mac) 419 sb $tmp3,9($mac) [all …]
|
A D | poly1305-sparcv9.pl | 410 stb $r0,[$mac+1] 412 stb $r1,[$mac+2] 413 stb $r2,[$mac+3] 416 stb $h1,[$mac+4] 418 stb $r0,[$mac+5] 420 stb $r1,[$mac+6] 421 stb $r2,[$mac+7] 424 stb $h2,[$mac+8] 426 stb $r0,[$mac+9] 428 stb $r1,[$mac+10] [all …]
|
A D | poly1305-armv4.pl | 395 str $h0,[$mac,#0] 396 str $h1,[$mac,#4] 397 str $h2,[$mac,#8] 398 str $h3,[$mac,#12] 400 strb $h0,[$mac,#0] 402 strb $h1,[$mac,#4] 404 strb $h2,[$mac,#8] 409 strb $h0,[$mac,#1] 411 strb $h1,[$mac,#5] 413 strb $h2,[$mac,#9] [all …]
|
/openssl-master/test/ |
A D | pkcs12_format_test.c | 460 sprintf(fname, "1cert_mac-%s_iter-%d.p12", OBJ_nid2sn(mac->nid), mac->iter); in test_single_cert_mac() 491 PKCS12_ENC mac; in test_single_cert_mac_alg() local 493 mac.nid = mac_nids[z]; in test_single_cert_mac_alg() 494 mac.pass = mac_default.pass; in test_single_cert_mac_alg() 495 mac.iter = mac_default.iter; in test_single_cert_mac_alg() 502 PKCS12_ENC mac; in test_single_cert_mac_pass() local 504 mac.nid = mac_default.nid; in test_single_cert_mac_pass() 505 mac.pass = passwords[z]; in test_single_cert_mac_pass() 513 PKCS12_ENC mac; in test_single_cert_mac_iter() local 515 mac.nid = mac_default.nid; in test_single_cert_mac_iter() [all …]
|
A D | cmactest.c | 39 const char *mac; member 123 if (!TEST_str_eq(p, test[0].mac)) in test_cmac_run() 133 if (!TEST_str_eq(p, test[1].mac)) in test_cmac_run() 141 if (!TEST_str_eq(p, test[2].mac)) in test_cmac_run() 149 if (!TEST_str_eq(p, test[2].mac)) in test_cmac_run() 159 if (!TEST_str_eq(p, test[2].mac)) in test_cmac_run() 189 if (!TEST_str_eq(p, test[0].mac)) in test_cmac_copy()
|
A D | cipher_overhead_test.c | 37 size_t mac, in, blk, ex; in cipher_overhead() local 47 if (!TEST_true(ssl_cipher_get_overhead(ciph, &mac, &in, &blk, &ex))) { in cipher_overhead() 52 ciph->name, mac, in, blk, ex); in cipher_overhead()
|
/openssl-master/providers/implementations/signature/ |
A D | mac_legacy_sig.c | 53 EVP_MAC *mac = NULL; in mac_newctx() local 68 mac = EVP_MAC_fetch(pmacctx->libctx, macname, propq); in mac_newctx() 69 if (mac == NULL) in mac_newctx() 72 pmacctx->macctx = EVP_MAC_CTX_new(mac); in mac_newctx() 76 EVP_MAC_free(mac); in mac_newctx() 83 EVP_MAC_free(mac); in mac_newctx() 161 return EVP_MAC_final(pmacctx->macctx, mac, maclen, macsize); in mac_digest_sign_final() 221 EVP_MAC *mac = EVP_MAC_fetch(PROV_LIBCTX_OF(provctx), macname, in mac_settable_ctx_params() local 225 if (mac == NULL) in mac_settable_ctx_params() 228 params = EVP_MAC_settable_ctx_params(mac); in mac_settable_ctx_params() [all …]
|
/openssl-master/test/helpers/ |
A D | pkcs12.c | 141 generate_p12(pb, mac); in end_pkcs12_with_mac() 169 if (mac != NULL) { in generate_p12() 171 md = (EVP_MD *)EVP_get_digestbynid(mac->nid); in generate_p12() 175 if (!TEST_true(PKCS12_set_mac(p12, mac->pass, strlen(mac->pass), in generate_p12() 223 if (mac == NULL) { in from_bio_p12() 227 if (!check_p12_mac(p12, mac)) in from_bio_p12() 249 if (mac == NULL) { in read_p12() 253 if (!check_p12_mac(p12, mac)) in read_p12() 265 && TEST_true(PKCS12_verify_mac(p12, mac->pass, strlen(mac->pass))); in check_p12_mac() 687 p12 = from_bio_p12(pb->p12bio, mac); in start_check_pkcs12_with_mac() [all …]
|
/openssl-master/demos/mac/ |
A D | gmac.c | 61 EVP_MAC *mac = NULL; in main() local 75 mac = EVP_MAC_fetch(library_context, "GMAC", propq); in main() 76 if (mac == NULL) { in main() 82 mctx = EVP_MAC_CTX_new(mac); in main() 140 EVP_MAC_free(mac); in main()
|
/openssl-master/providers/implementations/kdfs/ |
A D | sskdf.c | 102 unsigned char mac[EVP_MAX_MD_SIZE]; in SSKDF_hash_kdm() local 144 if (!EVP_DigestFinal_ex(ctx, mac, NULL)) in SSKDF_hash_kdm() 146 memcpy(out, mac, len); in SSKDF_hash_kdm() 154 OPENSSL_cleanse(mac, sizeof(mac)); in SSKDF_hash_kdm() 225 unsigned char *mac = mac_buf, *kmac_buffer = NULL; in SSKDF_mac_kdm() local 236 mac = kmac_buffer; in SSKDF_mac_kdm() 266 if (!EVP_MAC_final(ctx, mac, NULL, out_len)) in SSKDF_mac_kdm() 268 memcpy(out, mac, len); in SSKDF_mac_kdm() 365 EVP_MAC *mac = EVP_MAC_CTX_get0_mac(ctx->macctx); in sskdf_derive() local 367 if (EVP_MAC_is_a(mac, OSSL_MAC_NAME_HMAC)) { in sskdf_derive() [all …]
|
/openssl-master/doc/man7/ |
A D | provider-mac.pod | 5 provider-mac - The mac library E<lt>-E<gt> provider functions 46 The MAC operation enables providers to implement mac algorithms and make 85 A mac algorithm implementation may not implement all of these functions. 94 structure for holding context information during a mac operation. 95 A pointer to this context will be passed back in a number of the other mac 106 OSSL_FUNC_mac_dupctx() should duplicate the provider side mac context in the 116 initialised mac operation. 138 provider side mac context I<mctx> to I<params>. 143 associated with the given provider side mac context I<mctx> and stores them 205 provider side mac context, or NULL on failure. [all …]
|
/openssl-master/providers/implementations/ciphers/ |
A D | ciphercommon_block.c | 22 unsigned char **mac, 30 unsigned char **mac, 161 unsigned char **mac, int *alloced, size_t macsize, in ossl_cipher_tlsunpadblock() argument 168 return ssl3_cbc_remove_padding_and_mac(buflen, *buflen, buf, mac, in ossl_cipher_tlsunpadblock() 182 ret = tls1_cbc_remove_padding_and_mac(buflen, *buflen, buf, mac, in ossl_cipher_tlsunpadblock()
|
/openssl-master/crypto/modes/ |
A D | siv128.c | 179 EVP_MAC_free(ctx->mac); in ossl_siv128_init() 180 ctx->mac = NULL; in ossl_siv128_init() 195 || (ctx->mac = in ossl_siv128_init() 197 || (ctx->mac_ctx_init = EVP_MAC_CTX_new(ctx->mac)) == NULL in ossl_siv128_init() 207 EVP_MAC_free(ctx->mac); in ossl_siv128_init() 235 dest->mac = src->mac; in ossl_siv128_copy_ctx() 236 if (dest->mac != NULL) in ossl_siv128_copy_ctx() 237 EVP_MAC_up_ref(dest->mac); in ossl_siv128_copy_ctx() 377 EVP_MAC_free(ctx->mac); in ossl_siv128_cleanup() 378 ctx->mac = NULL; in ossl_siv128_cleanup()
|
/openssl-master/crypto/crmf/ |
A D | crmf_pbm.c | 104 if (!X509_ALGOR_set0(pbm->mac, OBJ_nid2obj(macnid), V_ASN1_UNDEF, NULL)) { in OSSL_CRMF_pbmp_new() 145 if (out == NULL || pbmp == NULL || pbmp->mac == NULL in OSSL_CRMF_pbm_new() 146 || pbmp->mac->algorithm == NULL || msg == NULL || sec == NULL) { in OSSL_CRMF_pbm_new() 200 mac_nid = OBJ_obj2nid(pbmp->mac->algorithm); in OSSL_CRMF_pbm_new() 226 if (pbmp != NULL && pbmp->mac != NULL) { in OSSL_CRMF_pbm_new() 229 if (OBJ_obj2txt(buf, sizeof(buf), pbmp->mac->algorithm, 0)) in OSSL_CRMF_pbm_new()
|
/openssl-master/apps/ |
A D | mac.c | 78 EVP_MAC *mac = NULL; in mac_main() local 145 mac = EVP_MAC_fetch(app_get0_libctx(), argv[0], app_get0_propq()); in mac_main() 146 if (mac == NULL) { in mac_main() 151 ctx = EVP_MAC_CTX_new(mac); in mac_main() 159 EVP_MAC_settable_ctx_params(mac)); in mac_main() 238 EVP_MAC_free(mac); in mac_main()
|
/openssl-master/doc/man3/ |
A D | EVP_MAC.pod | 25 int EVP_MAC_up_ref(EVP_MAC *mac); 26 void EVP_MAC_free(EVP_MAC *mac); 36 EVP_MAC_CTX *EVP_MAC_CTX_new(EVP_MAC *mac); 167 I<mac>. 222 of the given I<mac>. 238 of the mac implementation. 425 if (mac == NULL 446 EVP_MAC_free(mac); 451 EVP_MAC_free(mac); 478 L<provider-mac(7)>, [all …]
|
/openssl-master/crypto/poly1305/ |
A D | poly1305_ppc.c | 18 void poly1305_emit(void *ctx, unsigned char mac[16], 23 void poly1305_emit_fpu(void *ctx, unsigned char mac[16], 28 void poly1305_emit_vsx(void *ctx, unsigned char mac[16],
|
A D | poly1305.c | 213 static void poly1305_emit(void *ctx, unsigned char mac[16], in poly1305_emit() 243 U64TO8(mac + 0, h0); in poly1305_emit() 244 U64TO8(mac + 8, h1); in poly1305_emit() 379 static void poly1305_emit(void *ctx, unsigned char mac[16], in poly1305_emit() 419 U32TO8(mac + 0, h0); in poly1305_emit() 420 U32TO8(mac + 4, h1); in poly1305_emit() 421 U32TO8(mac + 8, h2); in poly1305_emit() 422 U32TO8(mac + 12, h3); in poly1305_emit() 429 void poly1305_emit(void *ctx, unsigned char mac[16], 510 void Poly1305_Final(POLY1305 *ctx, unsigned char mac[16]) in Poly1305_Final() [all …]
|