def pad_aes256(s):
    """
    Pads an input string to a given block size.
    :param s: string
    :returns: The padded string.
    """
    if len(s) % AES.block_size == 0:
        return s

    return Padding.appendPadding(s, blocksize=AES.block_size)
def pad_aes256 ( s ) : if len ( s ) % AES . block_size == 0 : return s return Padding . appendPadding ( s , blocksize = AES . block_size )
Pads an input string to a given block size.
    :param s: string
    :returns: The padded string.