summaryrefslogtreecommitdiff
path: root/rsa/common.py
diff options
context:
space:
mode:
authorSybren A. St?vel <sybren@stuvel.eu>2011-07-23 22:35:54 +0200
committerSybren A. St?vel <sybren@stuvel.eu>2011-07-23 22:35:54 +0200
commitb8e55020948d8122d4ea5ad134d0e3d2021fafb0 (patch)
tree9f3567ddf794d1b5e54af4c2f7222f734f2c039c /rsa/common.py
parente0cf1c7d8b57ed86cbeb58c67cf02ec2f7a0bc30 (diff)
downloadrsa-b8e55020948d8122d4ea5ad134d0e3d2021fafb0.tar.gz
Added Apache 2 license notice to source files
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 7c852b6..573c427 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):