Searched refs:hmac_pad (Results 1 – 2 of 2) sorted by relevance
/external/chromium_org/third_party/boringssl/src/ssl/ |
D | s3_cbc.c | 408 unsigned char hmac_pad[MAX_HASH_BLOCK_SIZE]; in ssl3_cbc_digest_record() local 535 memset(hmac_pad, 0, md_block_size); in ssl3_cbc_digest_record() 536 assert(mac_secret_length <= sizeof(hmac_pad)); in ssl3_cbc_digest_record() 537 memcpy(hmac_pad, mac_secret, mac_secret_length); in ssl3_cbc_digest_record() 539 hmac_pad[i] ^= 0x36; in ssl3_cbc_digest_record() 541 md_transform(md_state.c, hmac_pad); in ssl3_cbc_digest_record() 634 memset(hmac_pad, 0x5c, sslv3_pad_length); in ssl3_cbc_digest_record() 637 EVP_DigestUpdate(&md_ctx, hmac_pad, sslv3_pad_length); in ssl3_cbc_digest_record() 644 hmac_pad[i] ^= 0x6a; in ssl3_cbc_digest_record() 646 EVP_DigestUpdate(&md_ctx, hmac_pad, md_block_size); in ssl3_cbc_digest_record()
|
/external/openssl/ssl/ |
D | s3_cbc.c | 423 unsigned char hmac_pad[MAX_HASH_BLOCK_SIZE]; in ssl3_cbc_digest_record() local 577 memset(hmac_pad, 0, md_block_size); in ssl3_cbc_digest_record() 578 OPENSSL_assert(mac_secret_length <= sizeof(hmac_pad)); in ssl3_cbc_digest_record() 579 memcpy(hmac_pad, mac_secret, mac_secret_length); in ssl3_cbc_digest_record() 581 hmac_pad[i] ^= 0x36; in ssl3_cbc_digest_record() 583 md_transform(md_state.c, hmac_pad); in ssl3_cbc_digest_record() 689 memset(hmac_pad, 0x5c, sslv3_pad_length); in ssl3_cbc_digest_record() 692 EVP_DigestUpdate(&md_ctx, hmac_pad, sslv3_pad_length); in ssl3_cbc_digest_record() 699 hmac_pad[i] ^= 0x6a; in ssl3_cbc_digest_record() 701 EVP_DigestUpdate(&md_ctx, hmac_pad, md_block_size); in ssl3_cbc_digest_record()
|