aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlex Gaynor <alex.gaynor@gmail.com>2013-08-10 08:59:11 -0400
committerAlex Gaynor <alex.gaynor@gmail.com>2013-08-10 08:59:11 -0400
commita2e1f54907d880bfe48ac6030dbec52a17b67d1f (patch)
tree5684272600cce47bd6269736b2747c65e754c1b2
parent250903aa4c1776a1859bbb41b9e19953e0733206 (diff)
downloadcryptography-a2e1f54907d880bfe48ac6030dbec52a17b67d1f.tar.gz
cryptography-a2e1f54907d880bfe48ac6030dbec52a17b67d1f.tar.bz2
cryptography-a2e1f54907d880bfe48ac6030dbec52a17b67d1f.zip
Some apache license headers (we need a pyflkaes check for thsi)
-rw-r--r--cryptography/primitives/block/base.py13
-rw-r--r--cryptography/primitives/block/ciphers.py13
-rw-r--r--cryptography/primitives/block/modes.py13
-rw-r--r--cryptography/primitives/block/padding.py13
-rw-r--r--tests/primitives/test_block.py13
-rw-r--r--tests/primitives/test_nist.py13
-rw-r--r--tests/test_utils.py13
-rw-r--r--tests/utils.py13
8 files changed, 104 insertions, 0 deletions
diff --git a/cryptography/primitives/block/base.py b/cryptography/primitives/block/base.py
index d52fa73e..417b1ad8 100644
--- a/cryptography/primitives/block/base.py
+++ b/cryptography/primitives/block/base.py
@@ -1,3 +1,16 @@
+# 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.
+
# TODO: which binding is used should be an option somewhere
from cryptography.bindings.openssl import api
diff --git a/cryptography/primitives/block/ciphers.py b/cryptography/primitives/block/ciphers.py
index 87dfa733..54709110 100644
--- a/cryptography/primitives/block/ciphers.py
+++ b/cryptography/primitives/block/ciphers.py
@@ -1,3 +1,16 @@
+# 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.
+
class AES(object):
name = "AES"
diff --git a/cryptography/primitives/block/modes.py b/cryptography/primitives/block/modes.py
index 08d411f4..542cdefd 100644
--- a/cryptography/primitives/block/modes.py
+++ b/cryptography/primitives/block/modes.py
@@ -1,3 +1,16 @@
+# 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.
+
class CBC(object):
name = "CBC"
diff --git a/cryptography/primitives/block/padding.py b/cryptography/primitives/block/padding.py
index 67083495..8bdc7925 100644
--- a/cryptography/primitives/block/padding.py
+++ b/cryptography/primitives/block/padding.py
@@ -1,2 +1,15 @@
+# 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.
+
class NoPadding(object):
pass
diff --git a/tests/primitives/test_block.py b/tests/primitives/test_block.py
index 79d65a0f..f5693431 100644
--- a/tests/primitives/test_block.py
+++ b/tests/primitives/test_block.py
@@ -1,3 +1,16 @@
+# 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 binascii
import pytest
diff --git a/tests/primitives/test_nist.py b/tests/primitives/test_nist.py
index 82620685..4452e936 100644
--- a/tests/primitives/test_nist.py
+++ b/tests/primitives/test_nist.py
@@ -1,3 +1,16 @@
+# 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.
+
"""
Test using the NIST Test Vectors
"""
diff --git a/tests/test_utils.py b/tests/test_utils.py
index ada524cd..fd56dd30 100644
--- a/tests/test_utils.py
+++ b/tests/test_utils.py
@@ -1,3 +1,16 @@
+# 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 textwrap
from .utils import load_nist_vectors, load_nist_vectors_from_file
diff --git a/tests/utils.py b/tests/utils.py
index 60e7caab..9362464e 100644
--- a/tests/utils.py
+++ b/tests/utils.py
@@ -1,3 +1,16 @@
+# 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.path