OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
defs:padding_length
(Results
1 - 2
of
2
) sorted by null
/external/boringssl/src/crypto/cipher/
e_ssl3.c
271
unsigned
padding_length
= out[total - 1];
local
272
if (total <
padding_length
+ 1 + mac_len) {
277
if (
padding_length
+ 1 > EVP_CIPHER_CTX_block_size(&ssl3_ctx->cipher_ctx)) {
281
data_len = total -
padding_length
- 1 - mac_len;
tls_cbc.c
78
unsigned
padding_length
, good, to_check, i;
local
86
padding_length
= in[in_len - 1];
88
good = constant_time_ge(in_len, overhead +
padding_length
);
94
* We can't check just |
padding_length
+1| bytes because that leaks
104
uint8_t mask = constant_time_ge_8(
padding_length
, i);
106
/* The final |
padding_length
+1| bytes should all have the value
107
* |
padding_length
|. Therefore the XOR should be zero. */
108
good &= ~(mask & (
padding_length
^ b));
111
/* If any of the final |
padding_length
+1| bytes had the wrong value,
115
/* Always treat |
padding_length
| as zero on error. If, assuming block size o
[
all
...]
Completed in 68 milliseconds