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

/macosx-10.10/ntp-92/sntp/
H A Dcrypto.h28 int auth_md5(char *pkt_data, int mac_size, struct key *cmp_key);
H A Dcrypto.c14 int mac_size,
12 auth_md5( char *pkt_data, int mac_size, struct key *cmp_key ) argument
/macosx-10.10/OpenSSL098-52/src/ssl/
H A Dd1_enc.c142 int bs,i,j,k,mac_size=0; local
149 mac_size=EVP_MD_size(s->write_hash);
150 if (mac_size < 0)
175 mac_size=EVP_MD_size(s->read_hash);
176 OPENSSL_assert(mac_size >= 0);
257 return tls1_cbc_remove_padding(s, rec, bs, mac_size);
H A Ds2_pkt.c133 unsigned int mac_size; local
238 mac_size = 0;
249 mac_size=EVP_MD_size(s->read_hash);
250 OPENSSL_assert(mac_size <= MAX_MAC_SIZE);
252 s->s2->ract_data= &p[mac_size];
253 if (s->s2->padding + mac_size > s->s2->rlength)
264 (s->s2->rlength >= mac_size))
267 s->s2->ract_data_length-=mac_size;
270 if ( (CRYPTO_memcmp(mac,s->s2->mac_data,mac_size) != 0) ||
515 unsigned int j,k,olen,p,mac_size,b local
[all...]
H A Ds3_pkt.c249 unsigned mac_size, orig_len; local
378 /* s->read_hash != NULL => mac_size != -1 */
381 mac_size=EVP_MD_size(s->read_hash);
382 OPENSSL_assert(mac_size <= EVP_MAX_MD_SIZE);
392 if (orig_len < mac_size ||
395 orig_len < mac_size+1))
410 ssl3_cbc_copy_mac(mac_tmp, rr, mac_size, orig_len);
411 rr->length -= mac_size;
417 * enough bytes for |mac_size| above. */
418 rr->length -= mac_size;
602 int i,mac_size,clear=0; local
[all...]
H A Dd1_pkt.c334 unsigned int mac_size, orig_len; local
390 /* s->read_hash != NULL => mac_size != -1 */
393 mac_size=EVP_MD_size(s->read_hash);
394 OPENSSL_assert(mac_size <= EVP_MAX_MD_SIZE);
404 if (orig_len < mac_size ||
407 orig_len < mac_size+1))
422 ssl3_cbc_copy_mac(mac_tmp, rr, mac_size, orig_len);
423 rr->length -= mac_size;
429 * enough bytes for |mac_size| above. */
430 rr->length -= mac_size;
1326 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.c227 unsigned int len, frag_off, mac_size, blocksize; local
275 mac_size = EVP_MD_size(s->write_hash);
277 mac_size = 0;
289 DTLS1_RT_HEADER_LENGTH - mac_size - blocksize;
298 mac_size - blocksize;
H A Ds3_enc.c450 int bs,i,mac_size=0; local
508 mac_size = EVP_MD_size(s->read_hash);
511 return ssl3_cbc_remove_padding(s, rec, bs, mac_size);
H A Dt1_enc.c545 int bs,i,j,k,pad=0,ret,mac_size=0; local
638 mac_size = EVP_MD_size(s->read_hash);
640 ret = tls1_cbc_remove_padding(s, rec, bs, mac_size);
H A Dssl_locl.h1022 unsigned mac_size);
1026 unsigned mac_size);
/macosx-10.10/CommonCrypto-60061/test/CommonCrypto/
H A DCommonCryptoSymCCM.c2416 size_t mac_size = 0;
2417 if((retval = CCCryptorGetParameter(cref, kCCParameterAuthTag, computedMac->bytes, &mac_size)) != kCCSuccess) {
2420 if(mac_size != computedMac->len) {
/macosx-10.10/bind9-45.101/bind9/bin/tests/system/
H A Dans.pl162 $prev_tsig->mac_size,
349 $prev_tsig->mac_size,
/macosx-10.10/bind9-45.101/bind9/bin/tests/system/upforwd/ans4/
H A Dans.pl149 $prev_tsig->mac_size,
300 $prev_tsig->mac_size,
/macosx-10.10/xnu-2782.1.97/EXTERNAL_HEADERS/corecrypto/
H A Dccmode.h458 size_t mac_size, size_t auth_len, size_t data_len)
460 mode->set_iv(ctx, nonce_ctx, nonce_len, nonce, mac_size, auth_len, data_len);
492 unsigned mac_size, void *mac)
497 mode->set_iv(ctx, nonce_ctx, nonce_len, nonce, mac_size, adata_len, nbytes);
456 ccccm_set_iv(const struct ccmode_ccm *mode, ccccm_ctx *ctx, ccccm_nonce *nonce_ctx, size_t nonce_len, const void *nonce, size_t mac_size, size_t auth_len, size_t data_len) argument
487 ccccm_one_shot(const struct ccmode_ccm *mode, unsigned long key_len, const void *key, unsigned nonce_len, const void *nonce, unsigned long nbytes, const void *in, void *out, unsigned adata_len, const void* adata, unsigned mac_size, void *mac) argument
H A Dccmode_impl.h154 size_t mac_size, size_t auth_len, size_t data_len);
H A Dccmode_factory.h422 size_t mac_size, size_t auth_len, size_t data_len);
452 size_t mac_size; member in struct:_ccmode_ccm_nonce
/macosx-10.10/CommonCrypto-60061/lib/
H A DcorecryptoSymmetricBridge.h87 size_t mac_size; member in struct:ccm_with_nonce_t
H A DCommonCryptor.c875 if(ctx.ccm->mac_size == (size_t) 0xffffffffffffffff ||
913 ccm->nonce_size, ccm->nonce_buf, ccm->mac_size, ccm->ad_len, ccm->total_len);
921 cryptor->ctx[cryptor->op].ccm->mac_size = dataSize;
954 CC_XMEMCPY(data, ccm->mac, ccm->mac_size);
955 *dataSize = ccm->mac_size;
H A DcorecryptoSymmetricBridge.c420 ctx.ccm->mac_size = (size_t) 0xffffffffffffffff;
433 ctx.ccm->mac_size = ctx.ccm->nonce.mac_size;

Completed in 320 milliseconds