[Python-modules-commits] [python-rsa] 01/05: Import python-rsa_3.2.3.orig.tar.gz

Takaki Taniguchi takaki at moszumanska.debian.org
Tue Nov 24 16:11:35 UTC 2015


This is an automated email from the git hooks/post-receive script.

takaki pushed a commit to branch master
in repository python-rsa.

commit e3c62af7a3b02aaa06de0b93db370b110f6774b2
Author: TANIGUCHI Takaki <takaki at asis.media-as.org>
Date:   Wed Nov 25 00:58:24 2015 +0900

    Import python-rsa_3.2.3.orig.tar.gz
---
 PKG-INFO                      |  3 +-
 create_timing_table.py        | 15 ++++++++
 playstuff.py                  | 41 ----------------------
 rsa.egg-info/PKG-INFO         |  3 +-
 rsa.egg-info/SOURCES.txt      |  1 -
 rsa.egg-info/entry_points.txt | 10 +++---
 rsa/__init__.py               |  4 +--
 rsa/_version133.py            | 16 +++++++++
 rsa/_version200.py            | 16 +++++++++
 rsa/asn1.py                   | 16 +++++++++
 run_tests.py                  | 14 ++++++++
 setup.cfg                     |  5 ++-
 setup.py                      | 81 +++++++++++++++++++++++++------------------
 tests/constants.py            | 14 ++++++++
 tests/py2kconstants.py        | 14 ++++++++
 tests/py3kconstants.py        | 14 ++++++++
 tests/test_bigfile.py         | 16 +++++++++
 tests/test_common.py          | 14 ++++++++
 tests/test_compat.py          | 14 ++++++++
 tests/test_integers.py        | 16 +++++++++
 tests/test_load_save_keys.py  | 16 +++++++++
 tests/test_pem.py             | 15 +++++++-
 tests/test_pkcs1.py           | 16 +++++++++
 tests/test_strings.py         | 16 +++++++++
 tests/test_transform.py       | 15 +++++++-
 tests/test_varblock.py        | 16 +++++++++
 26 files changed, 334 insertions(+), 87 deletions(-)

diff --git a/PKG-INFO b/PKG-INFO
index 399ba7b..cd941f0 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: rsa
-Version: 3.1.4
+Version: 3.2.3
 Summary: Pure-Python RSA implementation
 Home-page: http://stuvel.eu/rsa
 Author: Sybren A. Stuvel
@@ -15,4 +15,5 @@ Classifier: Intended Audience :: Information Technology
 Classifier: License :: OSI Approved :: Apache Software License
 Classifier: Operating System :: OS Independent
 Classifier: Programming Language :: Python
+Classifier: Programming Language :: Python :: 3
 Classifier: Topic :: Security :: Cryptography
diff --git a/create_timing_table.py b/create_timing_table.py
index b1b2871..b6f8884 100755
--- a/create_timing_table.py
+++ b/create_timing_table.py
@@ -1,4 +1,19 @@
 #!/usr/bin/env python
+# -*- coding: utf-8 -*-
+#
+#  Copyright 2011 Sybren A. Stüvel <sybren at 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.
 
 import time
 import rsa
diff --git a/playstuff.py b/playstuff.py
deleted file mode 100755
index bfb941b..0000000
--- a/playstuff.py
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/usr/bin/env python
-
-import re
-import rsa
-
-def _logon( username, password ):
-    # Retrive the public key
-    # network stuff # req = urllib2.Request(AAA_GET_KEY, headers={'User-Agent': CLIENT_ID})
-    # network stuff # response = urllib2.urlopen(req)
-    # network stuff # html = response.read()
-    # network stuff # print response.info() # DEBUG
-    # network stuff # print html # DEBUG
-    
-    # replacement for network stuff #
-    html="<x509PublicKey>30820122300d06092a864886f70d01010105000382010f003082010a0282010100dad8e3c084137bab285e869ae99a5de9752a095753680e9128adbe981e8141225704e558b8ee437836ec8c5460514efae61550bfdd883549981458bae388c9490b5ab43475068b169b32da446b0aae2dfbb3a5f425c74b284ced3f57ed33b30ec7b4b95a8216f8b063e34af2c84fef58bab381f3b79b80d06b687e0b5fc7aaeb311a88389ab7aa1422ae0b58956bb9e91c5cbf2b98422b05e1eacb82e29938566f6f05274294a8c596677c950ce97dcd003709d008f1ae6418ce5bf55ad2bf921318c6e31b324bdda [...]
-    # end replacement for network stuff #
-    
-    # This shall pick the key 
-    hexstring = re.compile('<x509PublicKey[^>]*>([0-9a-fA-F]+)</x509PublicKey>')
-    
-    # pick the key and convert it to der format
-    hex_pub_der = hexstring.search(html).group(1)
-    pub_der = hex_pub_der.decode('hex')
-    
-    # Convert it to a public key
-    pub_key = rsa.PublicKey.load_pkcs1_openssl_der(pub_der)
-    
-    # encode the password
-    enc_pass = rsa.encrypt(password, pub_key)
-    
-    # and hex-encode it
-    hex_pass = enc_pass.encode('hex')
-
-# _logon('me', 'MyPass')
-
-import timeit
-timeit.timeit('_logon( "me", "MyPass" )',
-              setup='from __main__ import _logon',
-              number=1000)
-
-
diff --git a/rsa.egg-info/PKG-INFO b/rsa.egg-info/PKG-INFO
index 399ba7b..cd941f0 100644
--- a/rsa.egg-info/PKG-INFO
+++ b/rsa.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
 Metadata-Version: 1.1
 Name: rsa
-Version: 3.1.4
+Version: 3.2.3
 Summary: Pure-Python RSA implementation
 Home-page: http://stuvel.eu/rsa
 Author: Sybren A. Stuvel
@@ -15,4 +15,5 @@ Classifier: Intended Audience :: Information Technology
 Classifier: License :: OSI Approved :: Apache Software License
 Classifier: Operating System :: OS Independent
 Classifier: Programming Language :: Python
+Classifier: Programming Language :: Python :: 3
 Classifier: Topic :: Security :: Cryptography
diff --git a/rsa.egg-info/SOURCES.txt b/rsa.egg-info/SOURCES.txt
index 58d22b9..a26ba62 100644
--- a/rsa.egg-info/SOURCES.txt
+++ b/rsa.egg-info/SOURCES.txt
@@ -2,7 +2,6 @@ LICENSE
 MANIFEST.in
 README.rst
 create_timing_table.py
-playstuff.py
 run_tests.py
 setup.cfg
 setup.py
diff --git a/rsa.egg-info/entry_points.txt b/rsa.egg-info/entry_points.txt
index 65d0e29..55b44fb 100644
--- a/rsa.egg-info/entry_points.txt
+++ b/rsa.egg-info/entry_points.txt
@@ -1,10 +1,10 @@
 [console_scripts]
+pyrsa-encrypt-bigfile = rsa.cli:encrypt_bigfile
+pyrsa-decrypt = rsa.cli:decrypt
 pyrsa-encrypt = rsa.cli:encrypt
-pyrsa-keygen = rsa.cli:keygen
+pyrsa-decrypt-bigfile = rsa.cli:decrypt_bigfile
+pyrsa-verify = rsa.cli:verify
 pyrsa-priv2pub = rsa.util:private_to_public
+pyrsa-keygen = rsa.cli:keygen
 pyrsa-sign = rsa.cli:sign
-pyrsa-verify = rsa.cli:verify
-pyrsa-encrypt-bigfile = rsa.cli:encrypt_bigfile
-pyrsa-decrypt-bigfile = rsa.cli:decrypt_bigfile
-pyrsa-decrypt = rsa.cli:decrypt
 
diff --git a/rsa/__init__.py b/rsa/__init__.py
index 2d01c12..99fd668 100644
--- a/rsa/__init__.py
+++ b/rsa/__init__.py
@@ -28,8 +28,8 @@ If you want to have a more secure implementation, use the functions from the
 """
 
 __author__ = "Sybren Stuvel, Barry Mead and Yesudeep Mangalapilly"
-__date__ = "2014-02-22"
-__version__ = '3.1.4'
+__date__ = "2015-11-05"
+__version__ = '3.2.3'
 
 from rsa.key import newkeys, PrivateKey, PublicKey
 from rsa.pkcs1 import encrypt, decrypt, sign, verify, DecryptionError, \
diff --git a/rsa/_version133.py b/rsa/_version133.py
index 230a03c..dff0dda 100644
--- a/rsa/_version133.py
+++ b/rsa/_version133.py
@@ -1,3 +1,19 @@
+# -*- coding: utf-8 -*-
+#
+#  Copyright 2011 Sybren A. Stüvel <sybren at 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.
+
 """RSA module
 pri = k[1]                               	//Private part of keys d,p,q
 
diff --git a/rsa/_version200.py b/rsa/_version200.py
index f915653..28f3601 100644
--- a/rsa/_version200.py
+++ b/rsa/_version200.py
@@ -1,3 +1,19 @@
+# -*- coding: utf-8 -*-
+#
+#  Copyright 2011 Sybren A. Stüvel <sybren at 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.
+
 """RSA module
 
 Module for calculating large primes, and RSA encryption, decryption,
diff --git a/rsa/asn1.py b/rsa/asn1.py
index 706e6cf..6eb6da5 100644
--- a/rsa/asn1.py
+++ b/rsa/asn1.py
@@ -1,3 +1,19 @@
+# -*- coding: utf-8 -*-
+#
+#  Copyright 2011 Sybren A. Stüvel <sybren at 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.
+
 '''ASN.1 definitions.
 
 Not all ASN.1-handling code use these definitions, but when it does, they should be here.
diff --git a/run_tests.py b/run_tests.py
index e0f2490..10451d1 100644
--- a/run_tests.py
+++ b/run_tests.py
@@ -1,5 +1,19 @@
 #!/usr/bin/env python
 # -*- coding: utf-8 -*-
+#
+#  Copyright 2011 Sybren A. Stüvel <sybren at 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.
 
 import os
 import sys
diff --git a/setup.cfg b/setup.cfg
index 2675c27..3709bd0 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,8 +1,11 @@
 [nosetests]
 verbosity = 2
 
+[bdist_wheel]
+universal = 1
+
 [egg_info]
 tag_date = 0
-tag_build = 
 tag_svn_revision = 0
+tag_build = 
 
diff --git a/setup.py b/setup.py
index 8a2df8d..bd14b21 100755
--- a/setup.py
+++ b/setup.py
@@ -1,41 +1,56 @@
 #!/usr/bin/env python
+# -*- coding: utf-8 -*-
+#  Copyright 2011 Sybren A. Stüvel <sybren at 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.
 
 from setuptools import setup
 
 import rsa
 
 setup(name='rsa',
-	version=rsa.__version__,
-    description='Pure-Python RSA implementation', 
-    author='Sybren A. Stuvel',
-    author_email='sybren at stuvel.eu', 
-    maintainer='Sybren A. Stuvel',
-    maintainer_email='sybren at stuvel.eu',
-	url='http://stuvel.eu/rsa',
-	packages=['rsa'],
-    license='ASL 2',
-    classifiers=[
-        'Development Status :: 5 - Production/Stable',
-        'Intended Audience :: Developers',
-        'Intended Audience :: Education',
-        'Intended Audience :: Information Technology',
-        'License :: OSI Approved :: Apache Software License',
-        'Operating System :: OS Independent',
-        'Programming Language :: Python',
-        'Topic :: Security :: Cryptography',
-    ],
-    install_requires=[
-        'pyasn1 >= 0.1.3',
-    ],
-    entry_points={ 'console_scripts': [
-        'pyrsa-priv2pub = rsa.util:private_to_public',
-        'pyrsa-keygen = rsa.cli:keygen',
-        'pyrsa-encrypt = rsa.cli:encrypt',
-        'pyrsa-decrypt = rsa.cli:decrypt',
-        'pyrsa-sign = rsa.cli:sign',
-        'pyrsa-verify = rsa.cli:verify',
-        'pyrsa-encrypt-bigfile = rsa.cli:encrypt_bigfile',
-        'pyrsa-decrypt-bigfile = rsa.cli:decrypt_bigfile',
-    ]},
+      version=rsa.__version__,
+      description='Pure-Python RSA implementation',
+      author='Sybren A. Stuvel',
+      author_email='sybren at stuvel.eu',
+      maintainer='Sybren A. Stuvel',
+      maintainer_email='sybren at stuvel.eu',
+      url='http://stuvel.eu/rsa',
+      packages=['rsa'],
+      license='ASL 2',
+      classifiers=[
+          'Development Status :: 5 - Production/Stable',
+          'Intended Audience :: Developers',
+          'Intended Audience :: Education',
+          'Intended Audience :: Information Technology',
+          'License :: OSI Approved :: Apache Software License',
+          'Operating System :: OS Independent',
+          'Programming Language :: Python',
+          'Programming Language :: Python :: 3',
+          'Topic :: Security :: Cryptography',
+      ],
+      install_requires=[
+          'pyasn1 >= 0.1.3',
+      ],
+      entry_points={'console_scripts': [
+          'pyrsa-priv2pub = rsa.util:private_to_public',
+          'pyrsa-keygen = rsa.cli:keygen',
+          'pyrsa-encrypt = rsa.cli:encrypt',
+          'pyrsa-decrypt = rsa.cli:decrypt',
+          'pyrsa-sign = rsa.cli:sign',
+          'pyrsa-verify = rsa.cli:verify',
+          'pyrsa-encrypt-bigfile = rsa.cli:encrypt_bigfile',
+          'pyrsa-decrypt-bigfile = rsa.cli:decrypt_bigfile',
+      ]},
 
-)
+      )
diff --git a/tests/constants.py b/tests/constants.py
index 6a0d081..5eab9f2 100644
--- a/tests/constants.py
+++ b/tests/constants.py
@@ -1,4 +1,18 @@
 # -*- coding: utf-8 -*-
+#
+#  Copyright 2011 Sybren A. Stüvel <sybren at 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.
 
 from rsa._compat import have_python3
 
diff --git a/tests/py2kconstants.py b/tests/py2kconstants.py
index 5f695dd..0b53a78 100644
--- a/tests/py2kconstants.py
+++ b/tests/py2kconstants.py
@@ -1,3 +1,17 @@
 # -*- coding: utf-8 -*-
+#
+#  Copyright 2011 Sybren A. Stüvel <sybren at 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.
 
 unicode_string = u"Euro=\u20ac ABCDEFGHIJKLMNOPQRSTUVWXYZ"
diff --git a/tests/py3kconstants.py b/tests/py3kconstants.py
index 83b6712..c12a39b 100644
--- a/tests/py3kconstants.py
+++ b/tests/py3kconstants.py
@@ -1,3 +1,17 @@
 # -*- coding: utf-8 -*-
+#
+#  Copyright 2011 Sybren A. Stüvel <sybren at 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.
 
 unicode_string = "Euro=\u20ac ABCDEFGHIJKLMNOPQRSTUVWXYZ"
diff --git a/tests/test_bigfile.py b/tests/test_bigfile.py
index 86bcbba..6c3de00 100644
--- a/tests/test_bigfile.py
+++ b/tests/test_bigfile.py
@@ -1,3 +1,19 @@
+# -*- coding: utf-8 -*-
+#
+#  Copyright 2011 Sybren A. Stüvel <sybren at 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.
+
 '''Tests block operations.'''
 from rsa._compat import b
 
diff --git a/tests/test_common.py b/tests/test_common.py
index d105dc0..eba5d27 100644
--- a/tests/test_common.py
+++ b/tests/test_common.py
@@ -1,5 +1,19 @@
 #!/usr/bin/env python
 # -*- coding: utf-8 -*-
+#
+#  Copyright 2011 Sybren A. Stüvel <sybren at 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.
 
 import unittest2
 import struct
diff --git a/tests/test_compat.py b/tests/test_compat.py
index 3652c82..1788ff0 100644
--- a/tests/test_compat.py
+++ b/tests/test_compat.py
@@ -1,4 +1,18 @@
 # -*- coding: utf-8 -*-
+#
+#  Copyright 2011 Sybren A. Stüvel <sybren at 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.
 
 import unittest2
 import struct
diff --git a/tests/test_integers.py b/tests/test_integers.py
index 0a712aa..f504e45 100644
--- a/tests/test_integers.py
+++ b/tests/test_integers.py
@@ -1,3 +1,19 @@
+# -*- coding: utf-8 -*-
+#
+#  Copyright 2011 Sybren A. Stüvel <sybren at 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.
+
 '''Tests integer operations.'''
 
 import unittest2
diff --git a/tests/test_load_save_keys.py b/tests/test_load_save_keys.py
index fc1a1aa..1a4ee23 100644
--- a/tests/test_load_save_keys.py
+++ b/tests/test_load_save_keys.py
@@ -1,3 +1,19 @@
+# -*- coding: utf-8 -*-
+#
+#  Copyright 2011 Sybren A. Stüvel <sybren at 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.
+
 '''Unittest for saving and loading keys.'''
 
 import base64
diff --git a/tests/test_pem.py b/tests/test_pem.py
index 867f678..d1dcf3a 100644
--- a/tests/test_pem.py
+++ b/tests/test_pem.py
@@ -1,6 +1,19 @@
 #!/usr/bin/env python
 # -*- coding: utf-8 -*-
-
+#
+#  Copyright 2011 Sybren A. Stüvel <sybren at 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.
 
 import unittest2
 from rsa._compat import b
diff --git a/tests/test_pkcs1.py b/tests/test_pkcs1.py
index d5882df..6150215 100644
--- a/tests/test_pkcs1.py
+++ b/tests/test_pkcs1.py
@@ -1,3 +1,19 @@
+# -*- coding: utf-8 -*-
+#
+#  Copyright 2011 Sybren A. Stüvel <sybren at 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.
+
 '''Tests string operations.'''
 
 import struct
diff --git a/tests/test_strings.py b/tests/test_strings.py
index 4af0629..fe60055 100644
--- a/tests/test_strings.py
+++ b/tests/test_strings.py
@@ -1,3 +1,19 @@
+# -*- coding: utf-8 -*-
+#
+#  Copyright 2011 Sybren A. Stüvel <sybren at 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.
+
 '''Tests string operations.'''
 
 from __future__ import absolute_import
diff --git a/tests/test_transform.py b/tests/test_transform.py
index ffd9ec8..ed3e38b 100644
--- a/tests/test_transform.py
+++ b/tests/test_transform.py
@@ -1,5 +1,18 @@
 # -*- coding: utf-8 -*-
-
+#
+#  Copyright 2011 Sybren A. Stüvel <sybren at 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.
 
 import unittest2
 from rsa._compat import b
diff --git a/tests/test_varblock.py b/tests/test_varblock.py
index 24ea50f..c6f2485 100644
--- a/tests/test_varblock.py
+++ b/tests/test_varblock.py
@@ -1,3 +1,19 @@
+# -*- coding: utf-8 -*-
+#
+#  Copyright 2011 Sybren A. Stüvel <sybren at 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.
+
 '''Tests varblock operations.'''
 
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-rsa.git



More information about the Python-modules-commits mailing list