pub fn add_padding(input_len: usize, output: &mut [u8]) -> usize {
    let rem = input_len % 3;
    let mut bytes_written = 0;
    for _ in 0..((3 - rem) % 3) {
        output[bytes_written] = PAD_BYTE;
        bytes_written += 1;
    }

    bytes_written
}
/// Write padding characters.
/// `output` is the slice where padding should be written, of length at least 2.
///
/// Returns the number of padding bytes written.
Write padding characters.
`output` is the slice where padding should be written, of length at least 2.

Returns the number of padding bytes written.
Write padding characters . ` output ` is the slice where padding should be written of length at least 2 . Returns the number of padding bytes written .
pub fn add_padding(input_len: usize, output: &mut [u8]) -> usize {
    let rem = input_len % 3;
    let mut bytes_written = 0;
    for _ in 0..((3 - rem) % 3) {
        output[bytes_written] = PAD_BYTE;
        bytes_written += 1;
    }
    bytes_written
}
pub fn add_padding ( input_len : usize , output : & mut [ u8 ] ) -> usize { let rem = input_len % 3 ; let mut bytes_written = 0 ; for _ in 0 .. ( ( 3 - rem ) % 3 ) { output [ bytes_written ] = PAD_BYTE ; bytes_written += 1 ; } bytes_written }
Write padding characters.
Write padding characters .
input_len
usize
output
&mut [u8]
input_len
usize
output
&mut [u8]