Lines Matching full:plaintext_len
1085 * @ret plaintext_len Length of plaintext record
1090 void *digest, size_t *plaintext_len ) {
1097 *plaintext_len = ( len + mac_len );
1100 plaintext = malloc ( *plaintext_len );
1120 * @ret plaintext_len Length of plaintext record
1125 void *digest, size_t *plaintext_len ) {
1141 *plaintext_len = ( iv_len + len + mac_len + padding_len + 1 );
1144 plaintext = malloc ( *plaintext_len );
1176 size_t plaintext_len;
1195 &plaintext_len );
1198 &plaintext_len );
1202 "plaintext\n", tls, plaintext_len );
1208 DBGC2_HD ( tls, plaintext, plaintext_len );
1211 ciphertext_len = ( sizeof ( *tlshdr ) + plaintext_len );
1225 tlshdr->length = htons ( plaintext_len );
1229 plaintext, iob_put ( ciphertext, plaintext_len ),
1230 plaintext_len );
1262 * @v plaintext_len Length of record
1269 void *plaintext, size_t plaintext_len,
1278 if ( plaintext_len < mac_len ) {
1280 DBGC_HD ( tls, plaintext, plaintext_len );
1283 content_len = ( plaintext_len - mac_len );
1300 * @v plaintext_len Length of record
1307 void *plaintext, size_t plaintext_len,
1321 if ( plaintext_len < 1 ) {
1323 DBGC_HD ( tls, plaintext, plaintext_len );
1332 padding_len = *( ( uint8_t * ) ( plaintext + plaintext_len - 1 ) );
1333 if ( plaintext_len < ( iv_len + mac_len + padding_len + 1 ) ) {
1335 DBGC_HD ( tls, plaintext, plaintext_len );
1338 content_len = ( plaintext_len - iv_len - mac_len - padding_len - 1 );
1348 DBGC_HD ( tls, plaintext, plaintext_len );