Searched refs:padlen (Results 1 – 6 of 6) sorted by relevance
/mbedtls-3.5.0/library/ |
D | nist_kw.c | 144 size_t olen, padlen = 0; in mbedtls_nist_kw_wrap() local 174 padlen = (8 - (in_len % 8)); in mbedtls_nist_kw_wrap() 177 if (out_size < in_len + KW_SEMIBLOCK_LENGTH + padlen) { in mbedtls_nist_kw_wrap() 198 memset(output + KW_SEMIBLOCK_LENGTH + in_len, 0, padlen); in mbedtls_nist_kw_wrap() 200 semiblocks = ((in_len + padlen) / KW_SEMIBLOCK_LENGTH) + 1; in mbedtls_nist_kw_wrap() 373 size_t padlen = 0; in mbedtls_nist_kw_unwrap() local 422 padlen = in_len - KW_SEMIBLOCK_LENGTH - Plen; in mbedtls_nist_kw_unwrap() 423 if (padlen > 7) { in mbedtls_nist_kw_unwrap() 424 padlen &= 7; in mbedtls_nist_kw_unwrap() 430 if (i >= KW_SEMIBLOCK_LENGTH - padlen) { in mbedtls_nist_kw_unwrap() [all …]
|
D | ssl_msg.c | 1032 size_t padlen, i; in mbedtls_ssl_encrypt_buf() local 1042 padlen = transform->ivlen - (rec->data_len + 1) % transform->ivlen; in mbedtls_ssl_encrypt_buf() 1043 if (padlen == transform->ivlen) { in mbedtls_ssl_encrypt_buf() 1044 padlen = 0; in mbedtls_ssl_encrypt_buf() 1048 if (post_avail < padlen + 1) { in mbedtls_ssl_encrypt_buf() 1053 for (i = 0; i <= padlen; i++) { in mbedtls_ssl_encrypt_buf() 1054 data[rec->data_len + i] = (unsigned char) padlen; in mbedtls_ssl_encrypt_buf() 1057 rec->data_len += padlen + 1; in mbedtls_ssl_encrypt_buf() 1058 post_avail -= padlen + 1; in mbedtls_ssl_encrypt_buf() 1091 padlen + 1)); in mbedtls_ssl_encrypt_buf() [all …]
|
/mbedtls-3.5.0/tests/scripts/ |
D | run-test-suites.pl | 86 my $padlen = ( $width - length( $string ) - 2 ) / 2; 87 print $padchar x( $padlen ), " $string ", $padchar x( $padlen ), "\n";
|
/mbedtls-3.5.0/tests/suites/ |
D | test_suite_ssl.data | 2591 Decrypt CBC !EtM, AES MD5 !trunc, padlen=0 2595 Decrypt CBC !EtM, AES MD5 !trunc, padlen=240 2599 Decrypt CBC !EtM, AES MD5 !trunc, padlen=1 2603 Decrypt CBC !EtM, AES MD5 !trunc, padlen=241 2607 Decrypt CBC !EtM, AES MD5 !trunc, padlen=15 2611 Decrypt CBC !EtM, AES MD5 !trunc, padlen=255 2623 Decrypt CBC !EtM, AES SHA1 !trunc, padlen=0 2627 Decrypt CBC !EtM, AES SHA1 !trunc, padlen=240 2631 Decrypt CBC !EtM, AES SHA1 !trunc, padlen=1 2635 Decrypt CBC !EtM, AES SHA1 !trunc, padlen=241 [all …]
|
D | test_suite_nist_kw.function | 242 size_t result_len, i, padlen; 259 padlen = (msg->len % 8 != 0) ? 8 - (msg->len % 8) : 0; 261 for (i = msg->len + 8 + padlen; i < sizeof(result); i++) {
|
D | test_suite_ssl.function | 1443 unsigned char padlen; /* excluding the padding_length byte */ 1477 * The +1 is for the padding_length byte, not counted in padlen. */ 1478 padlen = block_size - (t0.maclen + 1) % block_size; 1482 padlen += block_size * ((pad_max_len - padlen) / block_size); 1485 padlen = length_selector; 1488 * The +1 is for the padding_length byte, not counted in padlen. */ 1489 plaintext_len = block_size - (padlen + t0.maclen + 1) % block_size; 1496 + padlen + 1; 1556 memset(rec.buf + rec.data_offset + rec.data_len, padlen, padlen + 1); 1557 rec.data_len += padlen + 1; [all …]
|