summaryrefslogtreecommitdiff
path: root/rsa/common.py
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@stuvel.eu>2011-07-24 17:50:59 +0200
committerSybren A. Stüvel <sybren@stuvel.eu>2011-07-24 17:50:59 +0200
commit5c39df5585e56a0e5637f296ba995879b340070b (patch)
tree2c4e02c91fa5a50fdde79a21a43cf02a5eba5942 /rsa/common.py
parent8b4ae7e8e291fefea64413c4c0fb01bbd3088008 (diff)
parentdf43df7939857d1a105f70d9794539bec82e1862 (diff)
downloadrsa-git-5c39df5585e56a0e5637f296ba995879b340070b.tar.gz
Merged keygen-accurate branch to default branch
Diffstat (limited to 'rsa/common.py')
-rw-r--r--rsa/common.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/rsa/common.py b/rsa/common.py
index ecb42c9..5ae92f0 100644
--- a/rsa/common.py
+++ b/rsa/common.py
@@ -1,5 +1,22 @@
+# -*- coding: utf-8 -*-
+#
+# Copyright 2011 Sybren A. Stüvel <sybren@stuvel.eu>
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# 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.
+
'''Common functionality shared by several modules.'''
+
import math
def bit_size(number):