'Remove padding from a binary string'

def removePad(self, paddedBinaryString, blockSize):

    if (not (0 < len(paddedBinaryString))):
        raise DecryptNotBlockAlignedError, 'Expected    More    Data'
    return paddedBinaryString[:(- ord(paddedBinaryString[(-1)]))]
