Searched refs:padding_len (Results 1 – 1 of 1) sorted by relevance
462 size_t padding_len = output_len - data_len; in add_pkcs_padding() local465 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() local478 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()[all …]