Searched refs:mac_size (Results 1 - 20 of 20) sorted by relevance

/external/chromium_org/third_party/boringssl/src/ssl/
H A Dd1_enc.c138 int bs,i,j,k,mac_size=0; local
145 mac_size=EVP_MD_CTX_size(s->write_hash);
146 if (mac_size < 0)
171 mac_size=EVP_MD_CTX_size(s->read_hash);
172 assert(mac_size >= 0);
247 return tls1_cbc_remove_padding(s, rec, bs, mac_size);
H A Ds3_pkt.c301 unsigned mac_size, orig_len; local
436 /* s->read_hash != NULL => mac_size != -1 */
439 mac_size=EVP_MD_CTX_size(s->read_hash);
440 assert(mac_size <= EVP_MAX_MD_SIZE);
450 if (orig_len < mac_size ||
453 orig_len < mac_size+1))
468 ssl3_cbc_copy_mac(mac_tmp, rr, mac_size, orig_len);
469 rr->length -= mac_size;
475 * enough bytes for |mac_size| above. */
476 rr->length -= mac_size;
643 int i,mac_size; local
[all...]
H A Dd1_pkt.c375 unsigned int mac_size, orig_len; local
431 /* s->read_hash != NULL => mac_size != -1 */
434 mac_size=EVP_MD_CTX_size(s->read_hash);
435 assert(mac_size <= EVP_MAX_MD_SIZE);
445 if (orig_len < mac_size ||
448 orig_len < mac_size+1))
463 ssl3_cbc_copy_mac(mac_tmp, rr, mac_size, orig_len);
464 rr->length -= mac_size;
470 * enough bytes for |mac_size| above. */
471 rr->length -= mac_size;
1348 int i,mac_size,clear=0; local
[all...]
H A Ds3_cbc.c112 unsigned mac_size)
115 const unsigned overhead = 1 /* padding length byte */ + mac_size;
146 unsigned mac_size)
149 const unsigned overhead = 1 /* padding length byte */ + mac_size;
109 ssl3_cbc_remove_padding(const SSL* s, SSL3_RECORD *rec, unsigned block_size, unsigned mac_size) argument
143 tls1_cbc_remove_padding(const SSL* s, SSL3_RECORD *rec, unsigned block_size, unsigned mac_size) argument
H A Dd1_both.c236 unsigned int len, frag_off, mac_size, blocksize; local
286 mac_size = 0;
288 mac_size = EVP_MD_CTX_size(s->write_hash);
291 mac_size = 0;
303 DTLS1_RT_HEADER_LENGTH - mac_size - blocksize;
312 mac_size - blocksize;
H A Ds3_enc.c410 int bs,i,mac_size=0; local
468 mac_size = EVP_MD_CTX_size(s->read_hash);
470 return ssl3_cbc_remove_padding(s, rec, bs, mac_size);
H A Dt1_enc.c705 int bs,i,j,k,pad=0,ret,mac_size=0; local
955 mac_size = EVP_MD_CTX_size(s->read_hash);
957 ret = tls1_cbc_remove_padding(s, rec, bs, mac_size);
H A Dssl_locl.h1131 unsigned mac_size);
1135 unsigned mac_size);
/external/openssl/ssl/
H A Dd1_enc.c142 int bs,i,j,k,mac_size=0; local
149 mac_size=EVP_MD_CTX_size(s->write_hash);
150 if (mac_size < 0)
175 mac_size=EVP_MD_CTX_size(s->read_hash);
176 OPENSSL_assert(mac_size >= 0);
256 return tls1_cbc_remove_padding(s, rec, bs, mac_size);
H A Ds2_pkt.c133 int mac_size; local
238 mac_size = 0;
249 mac_size=EVP_MD_CTX_size(s->read_hash);
250 if (mac_size < 0)
252 OPENSSL_assert(mac_size <= MAX_MAC_SIZE);
254 s->s2->ract_data= &p[mac_size];
255 if (s->s2->padding + mac_size > s->s2->rlength)
266 (s->s2->rlength >= (unsigned int)mac_size))
269 s->s2->ract_data_length-=mac_size;
272 if ( (CRYPTO_memcmp(mac,s->s2->mac_data,mac_size) !
518 int mac_size; local
[all...]
H A Ds3_pkt.c300 unsigned mac_size, orig_len; local
433 /* s->read_hash != NULL => mac_size != -1 */
436 mac_size=EVP_MD_CTX_size(s->read_hash);
437 OPENSSL_assert(mac_size <= EVP_MAX_MD_SIZE);
447 if (orig_len < mac_size ||
450 orig_len < mac_size+1))
465 ssl3_cbc_copy_mac(mac_tmp, rr, mac_size, orig_len);
466 rr->length -= mac_size;
472 * enough bytes for |mac_size| above. */
473 rr->length -= mac_size;
697 int i,mac_size; local
[all...]
H A Dd1_pkt.c385 unsigned int mac_size, orig_len; local
441 /* s->read_hash != NULL => mac_size != -1 */
444 mac_size=EVP_MD_CTX_size(s->read_hash);
445 OPENSSL_assert(mac_size <= EVP_MAX_MD_SIZE);
455 if (orig_len < mac_size ||
458 orig_len < mac_size+1))
473 ssl3_cbc_copy_mac(mac_tmp, rr, mac_size, orig_len);
474 rr->length -= mac_size;
480 * enough bytes for |mac_size| above. */
481 rr->length -= mac_size;
1477 int i,mac_size,clear=0; local
[all...]
H A Ds3_cbc.c82 unsigned mac_size)
85 const unsigned overhead = 1 /* padding length byte */ + mac_size;
116 unsigned mac_size)
119 const unsigned overhead = 1 /* padding length byte */ + mac_size;
79 ssl3_cbc_remove_padding(const SSL* s, SSL3_RECORD *rec, unsigned block_size, unsigned mac_size) argument
113 tls1_cbc_remove_padding(const SSL* s, SSL3_RECORD *rec, unsigned block_size, unsigned mac_size) argument
H A Dd1_both.c233 unsigned int len, frag_off, mac_size, blocksize; local
281 mac_size = EVP_MD_CTX_size(s->write_hash);
283 mac_size = 0;
295 DTLS1_RT_HEADER_LENGTH - mac_size - blocksize;
304 mac_size - blocksize;
H A Ds3_enc.c482 int bs,i,mac_size=0; local
540 mac_size = EVP_MD_CTX_size(s->read_hash);
542 return ssl3_cbc_remove_padding(s, rec, bs, mac_size);
H A Dt1_enc.c689 int bs,i,j,k,pad=0,ret,mac_size=0; local
859 mac_size = EVP_MD_CTX_size(s->read_hash);
861 ret = tls1_cbc_remove_padding(s, rec, bs, mac_size);
H A Dssl_locl.h1171 unsigned mac_size);
1175 unsigned mac_size);
/external/chromium_org/net/third_party/nss/ssl/
H A Dssl3con.c519 /* mac mmech pad_size mac_size */
1466 pwSpec->mac_size = pwSpec->mac_def->mac_size;
2135 macLength = pwSpec->mac_size;
2476 hashObj->end(write_mac_context, outbuf, outLength, spec->mac_size);
2493 rv = HMAC_Finish(cx, outbuf, outLength, spec->mac_size);
2507 rv |= PK11_DigestFinal(mac_context, outbuf, outLength, spec->mac_size);
2510 PORT_Assert(rv != SECSuccess || *outLength == (unsigned)spec->mac_size);
2545 PORT_Assert(inputLen >= spec->mac_size);
2598 PORT_Assert(outputItem.len == (unsigned)spec->mac_size);
[all...]
H A Dsslimpl.h583 int mac_size; member in struct:__anon9711
791 int mac_size; member in struct:ssl3MACDefStr
H A Dderive.c113 macSize = pwSpec->mac_size;

Completed in 582 milliseconds