Home
last modified time | relevance | path

Searched refs:mac_size (Results 1 – 25 of 25) sorted by relevance

/external/openssl/ssl/
Ds2_pkt.c133 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()
272 if ( (CRYPTO_memcmp(mac,s->s2->mac_data,mac_size) != 0) || in ssl2_read_internal()
[all …]
Dd1_enc.c142 int bs,i,j,k,mac_size=0; in dtls1_enc() local
149 mac_size=EVP_MD_CTX_size(s->write_hash); in dtls1_enc()
150 if (mac_size < 0) in dtls1_enc()
175 mac_size=EVP_MD_CTX_size(s->read_hash); in dtls1_enc()
176 OPENSSL_assert(mac_size >= 0); in dtls1_enc()
256 return tls1_cbc_remove_padding(s, rec, bs, mac_size); in dtls1_enc()
Ds3_pkt.c293 unsigned mac_size, orig_len; in ssl3_get_record() local
428 mac_size=EVP_MD_CTX_size(s->read_hash); in ssl3_get_record()
429 OPENSSL_assert(mac_size <= EVP_MAX_MD_SIZE); in ssl3_get_record()
439 if (orig_len < mac_size || in ssl3_get_record()
442 orig_len < mac_size+1)) in ssl3_get_record()
457 ssl3_cbc_copy_mac(mac_tmp, rr, mac_size, orig_len); in ssl3_get_record()
458 rr->length -= mac_size; in ssl3_get_record()
465 rr->length -= mac_size; in ssl3_get_record()
470 if (i < 0 || mac == NULL || CRYPTO_memcmp(md, mac, (size_t)mac_size) != 0) in ssl3_get_record()
472 if (rr->length > SSL3_RT_MAX_COMPRESSED_LENGTH+extra+mac_size) in ssl3_get_record()
[all …]
Dd1_pkt.c382 unsigned int mac_size, orig_len; in dtls1_process_record() local
441 mac_size=EVP_MD_CTX_size(s->read_hash); in dtls1_process_record()
442 OPENSSL_assert(mac_size <= EVP_MAX_MD_SIZE); in dtls1_process_record()
452 if (orig_len < mac_size || in dtls1_process_record()
455 orig_len < mac_size+1)) in dtls1_process_record()
470 ssl3_cbc_copy_mac(mac_tmp, rr, mac_size, orig_len); in dtls1_process_record()
471 rr->length -= mac_size; in dtls1_process_record()
478 rr->length -= mac_size; in dtls1_process_record()
483 if (i < 0 || mac == NULL || CRYPTO_memcmp(md, mac, (size_t)mac_size) != 0) in dtls1_process_record()
485 if (rr->length > SSL3_RT_MAX_COMPRESSED_LENGTH+mac_size) in dtls1_process_record()
[all …]
Ds3_cbc.c112 unsigned mac_size) in ssl3_cbc_remove_padding() argument
115 const unsigned overhead = 1 /* padding length byte */ + mac_size; in ssl3_cbc_remove_padding()
146 unsigned mac_size) in tls1_cbc_remove_padding() argument
149 const unsigned overhead = 1 /* padding length byte */ + mac_size; in tls1_cbc_remove_padding()
Ds3_enc.c483 int bs,i,mac_size=0; in ssl3_enc() local
541 mac_size = EVP_MD_CTX_size(s->read_hash); in ssl3_enc()
543 return ssl3_cbc_remove_padding(s, rec, bs, mac_size); in ssl3_enc()
Dd1_both.c227 unsigned int len, frag_off, mac_size, blocksize; in dtls1_do_write() local
275 mac_size = EVP_MD_CTX_size(s->write_hash); in dtls1_do_write()
277 mac_size = 0; in dtls1_do_write()
289 DTLS1_RT_HEADER_LENGTH - mac_size - blocksize; in dtls1_do_write()
298 mac_size - blocksize; in dtls1_do_write()
Dt1_enc.c684 int bs,i,j,k,pad=0,ret,mac_size=0; in tls1_enc() local
854 mac_size = EVP_MD_CTX_size(s->read_hash); in tls1_enc()
856 ret = tls1_cbc_remove_padding(s, rec, bs, mac_size); in tls1_enc()
Dssl_locl.h1156 unsigned mac_size);
1160 unsigned mac_size);
/external/chromium_org/third_party/openssl/openssl/ssl/
Ds2_pkt.c133 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()
272 if ( (CRYPTO_memcmp(mac,s->s2->mac_data,mac_size) != 0) || in ssl2_read_internal()
[all …]
Dd1_enc.c142 int bs,i,j,k,mac_size=0; in dtls1_enc() local
149 mac_size=EVP_MD_CTX_size(s->write_hash); in dtls1_enc()
150 if (mac_size < 0) in dtls1_enc()
175 mac_size=EVP_MD_CTX_size(s->read_hash); in dtls1_enc()
176 OPENSSL_assert(mac_size >= 0); in dtls1_enc()
256 return tls1_cbc_remove_padding(s, rec, bs, mac_size); in dtls1_enc()
Ds3_pkt.c293 unsigned mac_size, orig_len; in ssl3_get_record() local
428 mac_size=EVP_MD_CTX_size(s->read_hash); in ssl3_get_record()
429 OPENSSL_assert(mac_size <= EVP_MAX_MD_SIZE); in ssl3_get_record()
439 if (orig_len < mac_size || in ssl3_get_record()
442 orig_len < mac_size+1)) in ssl3_get_record()
457 ssl3_cbc_copy_mac(mac_tmp, rr, mac_size, orig_len); in ssl3_get_record()
458 rr->length -= mac_size; in ssl3_get_record()
465 rr->length -= mac_size; in ssl3_get_record()
470 if (i < 0 || mac == NULL || CRYPTO_memcmp(md, mac, (size_t)mac_size) != 0) in ssl3_get_record()
472 if (rr->length > SSL3_RT_MAX_COMPRESSED_LENGTH+extra+mac_size) in ssl3_get_record()
[all …]
Dd1_pkt.c382 unsigned int mac_size, orig_len; in dtls1_process_record() local
441 mac_size=EVP_MD_CTX_size(s->read_hash); in dtls1_process_record()
442 OPENSSL_assert(mac_size <= EVP_MAX_MD_SIZE); in dtls1_process_record()
452 if (orig_len < mac_size || in dtls1_process_record()
455 orig_len < mac_size+1)) in dtls1_process_record()
470 ssl3_cbc_copy_mac(mac_tmp, rr, mac_size, orig_len); in dtls1_process_record()
471 rr->length -= mac_size; in dtls1_process_record()
478 rr->length -= mac_size; in dtls1_process_record()
483 if (i < 0 || mac == NULL || CRYPTO_memcmp(md, mac, (size_t)mac_size) != 0) in dtls1_process_record()
485 if (rr->length > SSL3_RT_MAX_COMPRESSED_LENGTH+mac_size) in dtls1_process_record()
[all …]
Ds3_cbc.c112 unsigned mac_size) in ssl3_cbc_remove_padding() argument
115 const unsigned overhead = 1 /* padding length byte */ + mac_size; in ssl3_cbc_remove_padding()
146 unsigned mac_size) in tls1_cbc_remove_padding() argument
149 const unsigned overhead = 1 /* padding length byte */ + mac_size; in tls1_cbc_remove_padding()
Ds3_enc.c489 int bs,i,mac_size=0; in ssl3_enc() local
547 mac_size = EVP_MD_CTX_size(s->read_hash); in ssl3_enc()
549 return ssl3_cbc_remove_padding(s, rec, bs, mac_size); in ssl3_enc()
Dd1_both.c227 unsigned int len, frag_off, mac_size, blocksize; in dtls1_do_write() local
275 mac_size = EVP_MD_CTX_size(s->write_hash); in dtls1_do_write()
277 mac_size = 0; in dtls1_do_write()
289 DTLS1_RT_HEADER_LENGTH - mac_size - blocksize; in dtls1_do_write()
298 mac_size - blocksize; in dtls1_do_write()
Dt1_enc.c813 int bs,i,j,k,pad=0,ret,mac_size=0; in tls1_enc() local
1111 mac_size = EVP_MD_CTX_size(s->read_hash); in tls1_enc()
1113 ret = tls1_cbc_remove_padding(s, rec, bs, mac_size); in tls1_enc()
Dssl_locl.h1189 unsigned mac_size);
1193 unsigned mac_size);
/external/chromium_org/net/third_party/nss/patches/
Dcbc.patch64 + rv |= PK11_DigestFinal(mac_context, outbuf, outLen, spec->mac_size);
68 + PORT_Assert(rv != SECSuccess || *outLen == (unsigned)spec->mac_size);
76 - PORT_Assert(outputItem.len == (unsigned)spec->mac_size);
Daesgcm.patch156 int mac_size;
360 /* mac mmech pad_size mac_size */
630 macLength = pwSpec->mac_size;
766 rv = HMAC_Finish(cx, outbuf, outLength, spec->mac_size);
775 rv |= PK11_DigestFinal(mac_context, outbuf, outLength, spec->mac_size);
798 PORT_Assert(inputLen >= spec->mac_size);
815 - recordLength = inputLen - spec->mac_size;
848 inputLen -= spec->mac_size;
1180 - const unsigned int macSize = crSpec->mac_size;
1184 + const unsigned int macSize = crSpec->mac_size;
[all …]
/external/chromium_org/net/third_party/nss/ssl/
Dssl3con.c1455 pwSpec->mac_size = pwSpec->mac_def->mac_size; in ssl3_SetupPendingCipherSpec()
2123 macLength = pwSpec->mac_size; in ssl3_InitPendingContextsPKCS11()
2464 hashObj->end(write_mac_context, outbuf, outLength, spec->mac_size); in ssl3_ComputeRecordMAC()
2481 rv = HMAC_Finish(cx, outbuf, outLength, spec->mac_size); in ssl3_ComputeRecordMAC()
2495 rv |= PK11_DigestFinal(mac_context, outbuf, outLength, spec->mac_size); in ssl3_ComputeRecordMAC()
2498 PORT_Assert(rv != SECSuccess || *outLength == (unsigned)spec->mac_size); in ssl3_ComputeRecordMAC()
2548 PORT_Assert(inputLen >= spec->mac_size); in ssl3_ComputeRecordMACConstantTime()
2588 rv |= PK11_DigestFinal(mac_context, outbuf, outLen, spec->mac_size); in ssl3_ComputeRecordMACConstantTime()
2591 PORT_Assert(rv != SECSuccess || *outLen == (unsigned)spec->mac_size); in ssl3_ComputeRecordMACConstantTime()
2602 inputLen -= spec->mac_size; in ssl3_ComputeRecordMACConstantTime()
[all …]
Dsslimpl.h581 int mac_size; member
769 int mac_size; member
Dderive.c113 macSize = pwSpec->mac_size; in ssl3_KeyAndMacDeriveBypass()
/external/chromium_org/third_party/openssl/openssl/patches/
Daead_ssl_support.patch565 int bs,i,j,k,pad=0,ret,mac_size=0;
/external/chromium_org/third_party/openssl/patches.chromium/
D0007-chacha.patch654 + int bs,i,j,k,pad=0,ret,mac_size=0;