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

/freebsd-10-stable/contrib/ntp/sntp/
H A Dcrypto.h30 extern int make_mac(const void *pkt_data, int pkt_size, int mac_size,
32 extern int auth_md5(const void *pkt_data, int pkt_size, int mac_size,
H A Dcrypto.c127 int mac_size,
135 if (cmp_key->key_len > 64 || mac_size <= 0)
146 if (len > (u_int)mac_size)
147 len = (u_int)mac_size;
163 int mac_size,
171 if (mac_size <= 0 || (size_t)mac_size > sizeof(dbuf))
179 if (len > (u_int)mac_size)
180 len = (u_int)mac_size;
186 return ((u_int)mac_size
124 make_mac( const void * pkt_data, int pkt_size, int mac_size, Key_T const * cmp_key, void * digest ) argument
160 auth_md5( void const * pkt_data, int pkt_size, int mac_size, Key_T const * cmp_key ) argument
[all...]
H A Dnetworking.c109 int mac_size; local
190 mac_size = exten_len << 2;
191 if (!auth_md5(rpkt, pkt_len - mac_size,
192 mac_size - 4, pkt_key)) {
H A Dmain.c1127 int mac_size; local
1142 mac_size = make_mac(x_pkt, pkt_len, MAX_MDG_LEN,
1144 if (mac_size > 0)
1145 pkt_len += mac_size + KEY_MAC_LEN;
1148 printf("generate_pkt: mac_size is %d\n", mac_size);
/freebsd-10-stable/crypto/openssl/ssl/
H A Dd1_enc.c144 int bs, i, j, k, mac_size = 0; local
149 mac_size = EVP_MD_CTX_size(s->write_hash);
150 if (mac_size < 0)
171 mac_size = EVP_MD_CTX_size(s->read_hash);
172 OPENSSL_assert(mac_size >= 0);
248 return tls1_cbc_remove_padding(s, rec, bs, mac_size);
H A Ds2_pkt.c134 int mac_size; local
232 mac_size = 0;
240 mac_size = EVP_MD_CTX_size(s->read_hash);
241 if (mac_size < 0)
243 OPENSSL_assert(mac_size <= MAX_MAC_SIZE);
245 s->s2->ract_data = &p[mac_size];
246 if (s->s2->padding + mac_size > s->s2->rlength) {
258 (s->s2->rlength >= (unsigned int)mac_size)) {
263 s->s2->ract_data_length -= mac_size;
266 if ((CRYPTO_memcmp(mac, s->s2->mac_data, mac_size) !
489 int mac_size; local
[all...]
H A Ds3_pkt.c304 unsigned mac_size, orig_len; local
454 /* s->read_hash != NULL => mac_size != -1 */
457 mac_size = EVP_MD_CTX_size(s->read_hash);
458 OPENSSL_assert(mac_size <= EVP_MAX_MD_SIZE);
471 if (orig_len < mac_size ||
474 orig_len < mac_size + 1)) {
488 ssl3_cbc_copy_mac(mac_tmp, rr, mac_size, orig_len);
489 rr->length -= mac_size;
494 * |mac_size| above.
496 rr->length -= mac_size;
690 int i, mac_size, clear = 0; local
[all...]
H A Dd1_pkt.c449 unsigned int mac_size, orig_len; local
509 /* s->read_hash != NULL => mac_size != -1 */
512 mac_size = EVP_MD_CTX_size(s->read_hash);
513 OPENSSL_assert(mac_size <= EVP_MAX_MD_SIZE);
526 if (orig_len < mac_size ||
529 orig_len < mac_size + 1)) {
543 ssl3_cbc_copy_mac(mac_tmp, rr, mac_size, orig_len);
544 rr->length -= mac_size;
549 * |mac_size| above.
551 rr->length -= mac_size;
1554 int i, mac_size, clear = 0; local
[all...]
H A Ds3_cbc.c87 unsigned block_size, unsigned mac_size)
90 const unsigned overhead = 1 /* padding length byte */ + mac_size;
123 unsigned block_size, unsigned mac_size)
126 const unsigned overhead = 1 /* padding length byte */ + mac_size;
85 ssl3_cbc_remove_padding(const SSL *s, SSL3_RECORD *rec, unsigned block_size, unsigned mac_size) argument
121 tls1_cbc_remove_padding(const SSL *s, SSL3_RECORD *rec, unsigned block_size, unsigned mac_size) argument
H A Dd1_both.c269 unsigned int len, frag_off, mac_size, blocksize, used_len; local
283 mac_size = EVP_MD_CTX_size(s->write_hash);
285 mac_size = 0;
333 + mac_size + blocksize;
348 used_len = DTLS1_RT_HEADER_LENGTH + mac_size + blocksize;
H A Ds3_enc.c485 int bs, i, mac_size = 0; local
537 mac_size = EVP_MD_CTX_size(s->read_hash);
539 return ssl3_cbc_remove_padding(s, rec, bs, mac_size);
H A Dt1_enc.c738 int bs, i, j, k, pad = 0, ret, mac_size = 0; local
894 mac_size = EVP_MD_CTX_size(s->read_hash);
896 ret = tls1_cbc_remove_padding(s, rec, bs, mac_size);
H A Dssl_locl.h1220 unsigned block_size, unsigned mac_size);
1223 unsigned block_size, unsigned mac_size);

Completed in 239 milliseconds