Searched refs:mac_size (Results 1 – 7 of 7) sorted by relevance
/external/openssl/ssl/ |
D | s2_pkt.c | 133 int mac_size; in ssl2_read_internal() local 238 mac_size = 0; in ssl2_read_internal() 249 mac_size=EVP_MD_CTX_size(s->read_hash); in ssl2_read_internal() 250 if (mac_size < 0) in ssl2_read_internal() 252 OPENSSL_assert(mac_size <= MAX_MAC_SIZE); in ssl2_read_internal() 254 s->s2->ract_data= &p[mac_size]; in ssl2_read_internal() 255 if (s->s2->padding + mac_size > s->s2->rlength) in ssl2_read_internal() 266 (s->s2->rlength >= (unsigned int)mac_size)) in ssl2_read_internal() 269 s->s2->ract_data_length-=mac_size; in ssl2_read_internal() 273 (unsigned int)mac_size) != 0) || in ssl2_read_internal() [all …]
|
D | s3_pkt.c | 291 int mac_size; in ssl3_get_record() local 453 mac_size=EVP_MD_CTX_size(s->read_hash); in ssl3_get_record() 454 OPENSSL_assert(mac_size >= 0); in ssl3_get_record() 456 if (rr->length > SSL3_RT_MAX_COMPRESSED_LENGTH+extra+mac_size) in ssl3_get_record() 467 if (rr->length >= (unsigned int)mac_size) in ssl3_get_record() 469 rr->length -= mac_size; in ssl3_get_record() 485 if (i < 0 || mac == NULL || memcmp(md, mac, (size_t)mac_size) != 0) in ssl3_get_record() 657 int i,mac_size,clear=0; in do_ssl3_write() local 694 mac_size=0; in do_ssl3_write() 697 mac_size=EVP_MD_CTX_size(s->write_hash); in do_ssl3_write() [all …]
|
D | d1_pkt.c | 379 unsigned int mac_size; in dtls1_process_record() local 441 mac_size=t; in dtls1_process_record() 443 if (rr->length > SSL3_RT_MAX_COMPRESSED_LENGTH+mac_size) in dtls1_process_record() 454 if (rr->length < mac_size) in dtls1_process_record() 464 rr->length-=mac_size; in dtls1_process_record() 466 if (i < 0 || memcmp(md,&(rr->data[rr->length]),mac_size) != 0) in dtls1_process_record() 1357 int i,mac_size,clear=0; in do_dtls1_write() local 1405 mac_size=0; in do_dtls1_write() 1408 mac_size=EVP_MD_CTX_size(s->write_hash); in do_dtls1_write() 1409 if (mac_size < 0) in do_dtls1_write() [all …]
|
D | d1_both.c | 228 unsigned int len, frag_off, mac_size, blocksize; in dtls1_do_write() local 277 mac_size = EVP_MD_CTX_size(s->write_hash); in dtls1_do_write() 279 mac_size = 0; in dtls1_do_write() 291 DTLS1_RT_HEADER_LENGTH - mac_size - blocksize; in dtls1_do_write() 300 mac_size - blocksize; in dtls1_do_write()
|
/external/chromium/net/third_party/nss/ssl/ |
D | ssl3con.c | 1272 pwSpec->mac_size = pwSpec->mac_def->mac_size; in ssl3_SetupPendingCipherSpec() 1454 macLength = pwSpec->mac_size; in ssl3_InitPendingContextsBypass() 1634 macLength = pwSpec->mac_size; in ssl3_InitPendingContextsPKCS11() 1906 rv |= PK11_DigestFinal(mac_context, outbuf, outLength, spec->mac_size); in ssl3_ComputeRecordMAC() 1968 hashObj->end(write_mac_context, outbuf, outLength, spec->mac_size); in ssl3_ComputeRecordMAC() 1985 rv = HMAC_Finish(cx, outbuf, outLength, spec->mac_size); in ssl3_ComputeRecordMAC() 1992 PORT_Assert(rv != SECSuccess || *outLength == (unsigned)spec->mac_size); in ssl3_ComputeRecordMAC() 2998 key_material_params.ulMacSizeInBits = pwSpec->mac_size * BPB; in ssl3_DeriveConnectionKeysPKCS11() 8567 if (padding_length + 1 + crSpec->mac_size > plaintext->len) in ssl3_HandleRecord() 8579 if (plaintext->len >= crSpec->mac_size) in ssl3_HandleRecord() [all …]
|
D | sslimpl.h | 541 int mac_size; member 706 int mac_size; member
|
D | derive.c | 141 macSize = pwSpec->mac_size; in ssl3_KeyAndMacDeriveBypass()
|