summaryrefslogtreecommitdiff
path: root/rsa/core.py
diff options
context:
space:
mode:
authorYesudeep Mangalapilly <yesudeep@gmail.com>2011-08-24 16:53:39 +0530
committerYesudeep Mangalapilly <yesudeep@gmail.com>2011-08-24 16:53:39 +0530
commitb5bab2221ad88ad49962c402eecae418db6a9eba (patch)
tree0d752cc34ec7b64a4b1f70caabee05b733157cf6 /rsa/core.py
parent245952eba1d073e7b92e7b384829cbb0386a8134 (diff)
downloadrsa-git-b5bab2221ad88ad49962c402eecae418db6a9eba.tar.gz
Reverts docstring quoting syntax.
Diffstat (limited to 'rsa/core.py')
-rw-r--r--rsa/core.py11
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')