Home | History | Annotate | Download | only in ssl

Lines Matching refs:block

65 /* MAX_HASH_BLOCK_SIZE is the maximum hash block size that we'll support.
66 * Currently SHA-384/512 has a 128-byte block size and that's the largest
104 * block_size: the block size of the cipher used to encrypt the record.
138 * block_size: the block size of the cipher used to encrypt the record.
451 void (*md_transform)(void *ctx, const unsigned char *block);
478 md_transform = (void(*)(void *ctx, const unsigned char *block)) MD5_Transform;
486 md_transform = (void(*)(void *ctx, const unsigned char *block)) SHA1_Transform;
493 md_transform = (void(*)(void *ctx, const unsigned char *block)) SHA256_Transform;
499 md_transform = (void(*)(void *ctx, const unsigned char *block)) SHA256_Transform;
507 md_transform = (void(*)(void *ctx, const unsigned char *block)) SHA512_Transform;
515 md_transform = (void(*)(void *ctx, const unsigned char *block)) SHA512_Transform;
553 * termination (0x80 + 64-bit length) don't fit in the final block, we
585 /* c is the index of the 0x80 byte in the final hash block that
588 /* index_a is the hash block number that contains the 0x80 terminating
591 /* index_b is the hash block number that contains the 64-bit hash
595 * block for the masked HMAC key, or whole of |header| in the case of
599 * at least two because the header is larger than a single block. */
609 /* Compute the initial HMAC block. For SSLv3, the padding and
611 * than a single block. */
643 /* The SSLv3 header is larger than a single block.
645 * block that the header consumes: either 7 bytes
668 /* We now process the final hash blocks. For each block, we construct
670 * bytes and zero pad etc. For each block we selectively copy it, in
674 unsigned char block[MAX_HASH_BLOCK_SIZE];
688 /* If this is the block containing the end of the
692 /* If this the the block containing the end of the
696 /* If this is index_b (the final block), but not
699 * add an extra block of zeros. */
709 block[j] = b;
712 md_transform(md_state.c, block);
713 md_final_raw(md_state.c, block);
716 mac_out[j] |= block[j]&is_block_b;
723 /* We repurpose |hmac_pad| to contain the SSLv3 pad2 block. */
766 * block length. Block length is 128 for SHA384/SHA512 and 64 otherwise.
782 * and actual lengths plus one extra block to ensure this is never a