This is an automated email from the ASF dual-hosted git repository.

kmccusker pushed a commit to branch update-headers
in repository https://gitbox.apache.org/repos/asf/incubator-milagro-dta.git

commit 3fcd66728d207377a099efb337729f822ab5921b
Author: Kealan McCusker <[email protected]>
AuthorDate: Wed Aug 28 08:48:21 2019 +0100

    update headers in crypto code
---
 libs/crypto/libpqnist/examples/run_aescbc.c          | 19 +++++++++++++++++++
 libs/crypto/libpqnist/examples/run_aesgcm.c          | 19 +++++++++++++++++++
 libs/crypto/libpqnist/examples/run_encap_decap.c     | 19 +++++++++++++++++++
 libs/crypto/libpqnist/examples/run_pqnist.c          | 19 +++++++++++++++++++
 libs/crypto/libpqnist/examples/run_sign_verify.c     | 19 +++++++++++++++++++
 libs/crypto/libpqnist/examples/run_sign_verify_bad.c | 19 +++++++++++++++++++
 libs/crypto/libpqnist/examples/run_sike.c            | 19 +++++++++++++++++++
 libs/crypto/libpqnist/include/pqnist/pqnist.h        | 19 +++++++++++++++++++
 libs/crypto/libpqnist/src/pqnist.c                   | 19 +++++++++++++++++++
 libs/crypto/libpqnist/test/smoke/test_aescbc.c       | 19 +++++++++++++++++++
 libs/crypto/libpqnist/test/smoke/test_aesgcm.c       | 19 +++++++++++++++++++
 libs/crypto/libpqnist/test/smoke/test_encap_decap.c  | 19 +++++++++++++++++++
 libs/crypto/libpqnist/test/smoke/test_pqnist.c       | 19 +++++++++++++++++++
 libs/crypto/libpqnist/test/smoke/test_sign_verify.c  | 19 +++++++++++++++++++
 libs/crypto/libpqnist/test/unit/test_aes_decrypt.c   | 19 +++++++++++++++++++
 libs/crypto/libpqnist/test/unit/test_aes_encrypt.c   | 19 +++++++++++++++++++
 16 files changed, 304 insertions(+)

diff --git a/libs/crypto/libpqnist/examples/run_aescbc.c 
b/libs/crypto/libpqnist/examples/run_aescbc.c
index 9ecd614..f906cad 100644
--- a/libs/crypto/libpqnist/examples/run_aescbc.c
+++ b/libs/crypto/libpqnist/examples/run_aescbc.c
@@ -1,4 +1,23 @@
 /*
+       Licensed to the Apache Software Foundation (ASF) under one
+       or more contributor license agreements.  See the NOTICE file
+       distributed with this work for additional information
+       regarding copyright ownership.  The ASF licenses this file
+       to you 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.
+*/
+
+/*
    Run AES-256 encryption and decryption in CBC mode
 */
 
diff --git a/libs/crypto/libpqnist/examples/run_aesgcm.c 
b/libs/crypto/libpqnist/examples/run_aesgcm.c
index be3b201..e5d8f1c 100644
--- a/libs/crypto/libpqnist/examples/run_aesgcm.c
+++ b/libs/crypto/libpqnist/examples/run_aesgcm.c
@@ -1,4 +1,23 @@
 /*
+       Licensed to the Apache Software Foundation (ASF) under one
+       or more contributor license agreements.  See the NOTICE file
+       distributed with this work for additional information
+       regarding copyright ownership.  The ASF licenses this file
+       to you 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.
+*/
+
+/*
    Run AES-256 encryption and decryption in GCM mode
 */
 
diff --git a/libs/crypto/libpqnist/examples/run_encap_decap.c 
b/libs/crypto/libpqnist/examples/run_encap_decap.c
index 73fe7b0..a7da06d 100644
--- a/libs/crypto/libpqnist/examples/run_encap_decap.c
+++ b/libs/crypto/libpqnist/examples/run_encap_decap.c
@@ -1,4 +1,23 @@
 /*
+       Licensed to the Apache Software Foundation (ASF) under one
+       or more contributor license agreements.  See the NOTICE file
+       distributed with this work for additional information
+       regarding copyright ownership.  The ASF licenses this file
+       to you 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.
+*/
+
+/*
    Encapsulate a secret and use the secret to encrypt a message
    Decapsulate the secret and use the secret to decrypt the encrypted message
 */
diff --git a/libs/crypto/libpqnist/examples/run_pqnist.c 
b/libs/crypto/libpqnist/examples/run_pqnist.c
index 9923fad..a82a31d 100644
--- a/libs/crypto/libpqnist/examples/run_pqnist.c
+++ b/libs/crypto/libpqnist/examples/run_pqnist.c
@@ -1,4 +1,23 @@
 /*
+       Licensed to the Apache Software Foundation (ASF) under one
+       or more contributor license agreements.  See the NOTICE file
+       distributed with this work for additional information
+       regarding copyright ownership.  The ASF licenses this file
+       to you 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.
+*/
+
+/*
    Run through the flow of encrypting, ecapsulating and signing a message
 */
 
diff --git a/libs/crypto/libpqnist/examples/run_sign_verify.c 
b/libs/crypto/libpqnist/examples/run_sign_verify.c
index e24dc41..68eb758 100644
--- a/libs/crypto/libpqnist/examples/run_sign_verify.c
+++ b/libs/crypto/libpqnist/examples/run_sign_verify.c
@@ -1,4 +1,23 @@
 /*
+       Licensed to the Apache Software Foundation (ASF) under one
+       or more contributor license agreements.  See the NOTICE file
+       distributed with this work for additional information
+       regarding copyright ownership.  The ASF licenses this file
+       to you 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.
+*/
+
+/*
    Sign a message and verify the signature
 */
 
diff --git a/libs/crypto/libpqnist/examples/run_sign_verify_bad.c 
b/libs/crypto/libpqnist/examples/run_sign_verify_bad.c
index f99ef02..fe99eb9 100644
--- a/libs/crypto/libpqnist/examples/run_sign_verify_bad.c
+++ b/libs/crypto/libpqnist/examples/run_sign_verify_bad.c
@@ -1,4 +1,23 @@
 /*
+       Licensed to the Apache Software Foundation (ASF) under one
+       or more contributor license agreements.  See the NOTICE file
+       distributed with this work for additional information
+       regarding copyright ownership.  The ASF licenses this file
+       to you 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.
+*/
+
+/*
    Sign a message and verify the signature. Introduce errors.
 */
 
diff --git a/libs/crypto/libpqnist/examples/run_sike.c 
b/libs/crypto/libpqnist/examples/run_sike.c
index 07275fb..d3ef49f 100644
--- a/libs/crypto/libpqnist/examples/run_sike.c
+++ b/libs/crypto/libpqnist/examples/run_sike.c
@@ -1,3 +1,22 @@
+/*
+       Licensed to the Apache Software Foundation (ASF) under one
+       or more contributor license agreements.  See the NOTICE file
+       distributed with this work for additional information
+       regarding copyright ownership.  The ASF licenses this file
+       to you 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.
+*/
+
 /**
  * @file run_sike.c
  * @author Kealan McCusker
diff --git a/libs/crypto/libpqnist/include/pqnist/pqnist.h 
b/libs/crypto/libpqnist/include/pqnist/pqnist.h
index 950dc56..0989ce1 100644
--- a/libs/crypto/libpqnist/include/pqnist/pqnist.h
+++ b/libs/crypto/libpqnist/include/pqnist/pqnist.h
@@ -1,3 +1,22 @@
+/*
+       Licensed to the Apache Software Foundation (ASF) under one
+       or more contributor license agreements.  See the NOTICE file
+       distributed with this work for additional information
+       regarding copyright ownership.  The ASF licenses this file
+       to you 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.
+*/
+
 /**
  * @file pqnist.h
  * @author Kealan McCusker
diff --git a/libs/crypto/libpqnist/src/pqnist.c 
b/libs/crypto/libpqnist/src/pqnist.c
index bd077a0..7054e7e 100644
--- a/libs/crypto/libpqnist/src/pqnist.c
+++ b/libs/crypto/libpqnist/src/pqnist.c
@@ -1,3 +1,22 @@
+/*
+       Licensed to the Apache Software Foundation (ASF) under one
+       or more contributor license agreements.  See the NOTICE file
+       distributed with this work for additional information
+       regarding copyright ownership.  The ASF licenses this file
+       to you 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.
+*/
+
 #include <stdio.h>
 #include <stdlib.h>
 #include <string.h>
diff --git a/libs/crypto/libpqnist/test/smoke/test_aescbc.c 
b/libs/crypto/libpqnist/test/smoke/test_aescbc.c
index 70fa2c8..4909855 100644
--- a/libs/crypto/libpqnist/test/smoke/test_aescbc.c
+++ b/libs/crypto/libpqnist/test/smoke/test_aescbc.c
@@ -1,4 +1,23 @@
 /*
+       Licensed to the Apache Software Foundation (ASF) under one
+       or more contributor license agreements.  See the NOTICE file
+       distributed with this work for additional information
+       regarding copyright ownership.  The ASF licenses this file
+       to you 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 AES-256 encryption and decryption in CBC mode
 */
 
diff --git a/libs/crypto/libpqnist/test/smoke/test_aesgcm.c 
b/libs/crypto/libpqnist/test/smoke/test_aesgcm.c
index f9d5488..5e80716 100644
--- a/libs/crypto/libpqnist/test/smoke/test_aesgcm.c
+++ b/libs/crypto/libpqnist/test/smoke/test_aesgcm.c
@@ -1,4 +1,23 @@
 /*
+       Licensed to the Apache Software Foundation (ASF) under one
+       or more contributor license agreements.  See the NOTICE file
+       distributed with this work for additional information
+       regarding copyright ownership.  The ASF licenses this file
+       to you 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 AES-256 encryption and decryption in GCM mode
 */
 
diff --git a/libs/crypto/libpqnist/test/smoke/test_encap_decap.c 
b/libs/crypto/libpqnist/test/smoke/test_encap_decap.c
index ca817bc..304572c 100644
--- a/libs/crypto/libpqnist/test/smoke/test_encap_decap.c
+++ b/libs/crypto/libpqnist/test/smoke/test_encap_decap.c
@@ -1,4 +1,23 @@
 /*
+       Licensed to the Apache Software Foundation (ASF) under one
+       or more contributor license agreements.  See the NOTICE file
+       distributed with this work for additional information
+       regarding copyright ownership.  The ASF licenses this file
+       to you 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.
+*/
+
+/*
    Encapsulate a secret and use the secret to encrypt a message
    Decapsulate the secret and use the secret to decrypt the encrypted message
 */
diff --git a/libs/crypto/libpqnist/test/smoke/test_pqnist.c 
b/libs/crypto/libpqnist/test/smoke/test_pqnist.c
index cbfa82d..3b21ee9 100644
--- a/libs/crypto/libpqnist/test/smoke/test_pqnist.c
+++ b/libs/crypto/libpqnist/test/smoke/test_pqnist.c
@@ -1,4 +1,23 @@
 /*
+       Licensed to the Apache Software Foundation (ASF) under one
+       or more contributor license agreements.  See the NOTICE file
+       distributed with this work for additional information
+       regarding copyright ownership.  The ASF licenses this file
+       to you 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.
+*/
+
+/*
    Run through the flow of encrypting, ecapsulating and signing a message
 */
 
diff --git a/libs/crypto/libpqnist/test/smoke/test_sign_verify.c 
b/libs/crypto/libpqnist/test/smoke/test_sign_verify.c
index 967cf46..c28b5b0 100644
--- a/libs/crypto/libpqnist/test/smoke/test_sign_verify.c
+++ b/libs/crypto/libpqnist/test/smoke/test_sign_verify.c
@@ -1,4 +1,23 @@
 /*
+       Licensed to the Apache Software Foundation (ASF) under one
+       or more contributor license agreements.  See the NOTICE file
+       distributed with this work for additional information
+       regarding copyright ownership.  The ASF licenses this file
+       to you 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.
+*/
+
+/*
    Sign a message and verify the signature
 */
 
diff --git a/libs/crypto/libpqnist/test/unit/test_aes_decrypt.c 
b/libs/crypto/libpqnist/test/unit/test_aes_decrypt.c
index a6f8410..88a36b7 100644
--- a/libs/crypto/libpqnist/test/unit/test_aes_decrypt.c
+++ b/libs/crypto/libpqnist/test/unit/test_aes_decrypt.c
@@ -1,3 +1,22 @@
+/*
+       Licensed to the Apache Software Foundation (ASF) under one
+       or more contributor license agreements.  See the NOTICE file
+       distributed with this work for additional information
+       regarding copyright ownership.  The ASF licenses this file
+       to you 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.
+*/
+
 /**
  * @file test_aes_decrypto.c
  * @author Kealan McCusker
diff --git a/libs/crypto/libpqnist/test/unit/test_aes_encrypt.c 
b/libs/crypto/libpqnist/test/unit/test_aes_encrypt.c
index 5e549e7..5864590 100644
--- a/libs/crypto/libpqnist/test/unit/test_aes_encrypt.c
+++ b/libs/crypto/libpqnist/test/unit/test_aes_encrypt.c
@@ -1,3 +1,22 @@
+/*
+       Licensed to the Apache Software Foundation (ASF) under one
+       or more contributor license agreements.  See the NOTICE file
+       distributed with this work for additional information
+       regarding copyright ownership.  The ASF licenses this file
+       to you 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.
+*/
+
 /**
  * @file test_aes_encrypt.c
  * @author Kealan McCusker

Reply via email to