diff options
author | Yesudeep Mangalapilly <yesudeep@gmail.com> | 2011-08-24 16:53:39 +0530 |
---|---|---|
committer | Yesudeep Mangalapilly <yesudeep@gmail.com> | 2011-08-24 16:53:39 +0530 |
commit | 9d584615f738f6ca7673fc9aa8555d6542fe9fef (patch) | |
tree | 0d752cc34ec7b64a4b1f70caabee05b733157cf6 /rsa/core.py | |
parent | f4283ae7b366233afa29a8c62a432480cd17b706 (diff) | |
download | rsa-9d584615f738f6ca7673fc9aa8555d6542fe9fef.tar.gz |
Reverts docstring quoting syntax.
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') |