def encrypt(self, data): """ Pad, then encrypt, the given data with AES-CTR. """ return self.cipher.encrypt(BlockCipher.pad(data))