From a2e1f54907d880bfe48ac6030dbec52a17b67d1f Mon Sep 17 00:00:00 2001 From: Alex Gaynor Date: Sat, 10 Aug 2013 08:59:11 -0400 Subject: Some apache license headers (we need a pyflkaes check for thsi) --- cryptography/primitives/block/base.py | 13 +++++++++++++ cryptography/primitives/block/ciphers.py | 13 +++++++++++++ cryptography/primitives/block/modes.py | 13 +++++++++++++ cryptography/primitives/block/padding.py | 13 +++++++++++++ tests/primitives/test_block.py | 13 +++++++++++++ tests/primitives/test_nist.py | 13 +++++++++++++ tests/test_utils.py | 13 +++++++++++++ tests/utils.py | 13 +++++++++++++ 8 files changed, 104 insertions(+) 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 -- cgit v1.2.3