diff options
Diffstat (limited to 'rsa/core.py')
-rw-r--r-- | rsa/core.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/rsa/core.py b/rsa/core.py index 27d829e..90dfee8 100644 --- a/rsa/core.py +++ b/rsa/core.py @@ -13,11 +13,12 @@ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. # See the License for the specific language governing permissions and # limitations under the License. -"""Core mathematical operations. + +'''Core mathematical operations. This is the actual core RSA implementation, which is only defined mathematically on integers. -""" +''' from rsa._compat import is_integer @@ -30,7 +31,7 @@ def assert_int(var, name): raise TypeError('%s should be an integer, not %s' % (name, var.__class__)) def encrypt_int(message, ekey, n): - """Encrypts a message using encryption key 'ekey', working modulo n""" + '''Encrypts a message using encryption key 'ekey', working modulo n''' assert_int(message, 'message') assert_int(ekey, 'ekey') @@ -45,8 +46,8 @@ def encrypt_int(message, ekey, n): return pow(message, ekey, n) def decrypt_int(cyphertext, dkey, n): - """Decrypts a cypher text using the decryption key 'dkey', working - modulo n""" + '''Decrypts a cypher text using the decryption key 'dkey', working + modulo n''' assert_int(cyphertext, 'cyphertext') assert_int(dkey, 'dkey') |