Lines Matching refs:padding_len
462 size_t padding_len = output_len - data_len; in add_pkcs_padding() local
465 for( i = 0; i < padding_len; i++ ) in add_pkcs_padding()
466 output[data_len + i] = (unsigned char) padding_len; in add_pkcs_padding()
473 unsigned char padding_len, bad = 0; in get_pkcs_padding() local
478 padding_len = input[input_len - 1]; in get_pkcs_padding()
479 *data_len = input_len - padding_len; in get_pkcs_padding()
482 bad |= padding_len > input_len; in get_pkcs_padding()
483 bad |= padding_len == 0; in get_pkcs_padding()
487 pad_idx = input_len - padding_len; in get_pkcs_padding()
489 bad |= ( input[i] ^ padding_len ) * ( i >= pad_idx ); in get_pkcs_padding()
502 size_t padding_len = output_len - data_len; in add_one_and_zeros_padding() local
506 for( i = 1; i < padding_len; i++ ) in add_one_and_zeros_padding()
541 size_t padding_len = output_len - data_len; in add_zeros_and_len_padding() local
544 for( i = 1; i < padding_len; i++ ) in add_zeros_and_len_padding()
546 output[output_len - 1] = (unsigned char) padding_len; in add_zeros_and_len_padding()
553 unsigned char padding_len, bad = 0; in get_zeros_and_len_padding() local
558 padding_len = input[input_len - 1]; in get_zeros_and_len_padding()
559 *data_len = input_len - padding_len; in get_zeros_and_len_padding()
562 bad |= padding_len > input_len; in get_zeros_and_len_padding()
563 bad |= padding_len == 0; in get_zeros_and_len_padding()
566 pad_idx = input_len - padding_len; in get_zeros_and_len_padding()