summaryrefslogtreecommitdiffstats
path: root/ssl/s3_cbc.c
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2016-10-19 17:13:13 +0100
committerMatt Caswell <matt@openssl.org>2016-11-04 12:09:46 +0000
commit2688e7a0beb0f5e76a98749f25b978ddfb40ac7f (patch)
tree961020c53af8ff662dc7ae44db42e53c270c6614 /ssl/s3_cbc.c
parent708e06c55d9fee5d59e4a4f409d115423ea1fa56 (diff)
Provide some constant time functions for dealing with size_t values
Also implement the using of them Reviewed-by: Rich Salz <rsalz@openssl.org>
Diffstat (limited to 'ssl/s3_cbc.c')
-rw-r--r--ssl/s3_cbc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/ssl/s3_cbc.c b/ssl/s3_cbc.c
index 29243f35a0..3a757455b0 100644
--- a/ssl/s3_cbc.c
+++ b/ssl/s3_cbc.c
@@ -400,8 +400,8 @@ int ssl3_cbc_digest_record(const EVP_MD_CTX *ctx,
for (i = num_starting_blocks; i <= num_starting_blocks + variance_blocks;
i++) {
unsigned char block[MAX_HASH_BLOCK_SIZE];
- unsigned char is_block_a = constant_time_eq_8(i, index_a);
- unsigned char is_block_b = constant_time_eq_8(i, index_b);
+ unsigned char is_block_a = constant_time_eq_8_s(i, index_a);
+ unsigned char is_block_b = constant_time_eq_8_s(i, index_b);
for (j = 0; j < md_block_size; j++) {
unsigned char b = 0, is_past_c, is_past_cp1;
if (k < header_length)
@@ -410,8 +410,8 @@ int ssl3_cbc_digest_record(const EVP_MD_CTX *ctx,
b = data[k - header_length];
k++;
- is_past_c = is_block_a & constant_time_ge_8(j, c);
- is_past_cp1 = is_block_a & constant_time_ge_8(j, c + 1);
+ is_past_c = is_block_a & constant_time_ge_8_s(j, c);
+ is_past_cp1 = is_block_a & constant_time_ge_8_s(j, c + 1);
/*
* If this is the block containing the end of the application
* data, and we are at the offset for the 0x80 value, then