#NEWLINE# def encrypt( self , bytes ) : #NEWLINE# #INDENT# 'Encrypt the passed-in bytes.\n\n        This performs PKCS1 encryption of the passed-in data.\n\n        @type bytes: L{array.array} of unsigned bytes\n        @param bytes: The value which will be encrypted.\n\n        @rtype: L{array.array} of unsigned bytes.\n        @return: A PKCS1 encryption of the passed-in data.\n        ' #NEWLINE# paddedBytes = self . _addPKCS1Padding ( bytes , 2 ) #NEWLINE# m = bytesToNumber ( paddedBytes ) #NEWLINE# if ( self >= self . n ) : #NEWLINE# #INDENT# raise ValueError ( ) #NEWLINE# #UNINDENT# c = self . _rawPublicKeyOp ( m ) #NEWLINE# encBytes = numberToBytes ( c ) #NEWLINE# return encBytes