From ee62d03b5f0e4c14d9cf2b1ce838c582fd6481c4 Mon Sep 17 00:00:00 2001 From: Pushkar Kulkarni Date: Thu, 1 Aug 2024 14:54:02 +0530 Subject: [PATCH] Add copyright headers to source files --- Makefile | 17 +++++++++++++++++ gen/gen-classes.sh | 16 ++++++++++++++++ gen/template.java | 16 ++++++++++++++++ pom.xml | 17 +++++++++++++++++ ...com_canonical_openssl_cipher_OpenSSLCipher.h | 16 ++++++++++++++++ .../com_canonical_openssl_drbg_OpenSSLDrbg.h | 16 ++++++++++++++++ .../com_canonical_openssl_kdf_OpenSSLPBKDF2.h | 16 ++++++++++++++++ ...l_openssl_keyagreement_OpenSSLKeyAgreement.h | 16 ++++++++++++++++ ...psulation_OpenSSLKEMRSA_RSAKEMDecapsulator.h | 16 ++++++++++++++++ ...psulation_OpenSSLKEMRSA_RSAKEMEncapsulator.h | 16 ++++++++++++++++ .../jni/com_canonical_openssl_mac_OpenSSLMAC.h | 16 ++++++++++++++++ .../jni/com_canonical_openssl_md_OpenSSLMD.h | 16 ++++++++++++++++ ...nonical_openssl_signature_OpenSSLSignature.h | 16 ++++++++++++++++ src/include/native/cipher.h | 16 ++++++++++++++++ src/include/native/drbg.h | 16 ++++++++++++++++ src/include/native/evp_utils.h | 16 ++++++++++++++++ src/include/native/jni_utils.h | 16 ++++++++++++++++ src/include/native/jssl.h | 16 ++++++++++++++++ src/include/native/kdf.h | 16 ++++++++++++++++ src/include/native/keyagreement.h | 16 ++++++++++++++++ src/include/native/keyencapsulation.h | 16 ++++++++++++++++ src/include/native/mac.h | 16 ++++++++++++++++ src/include/native/md.h | 16 ++++++++++++++++ src/include/native/signature.h | 16 ++++++++++++++++ .../com/canonical/openssl/cipher/CipherAes.java | 16 ++++++++++++++++ .../canonical/openssl/cipher/OpenSSLCipher.java | 16 ++++++++++++++++ .../canonical/openssl/drbg/DrbgAES256CTR.java | 16 ++++++++++++++++ .../canonical/openssl/drbg/DrbgHMACSHA256.java | 16 ++++++++++++++++ .../canonical/openssl/drbg/DrbgHashSHA512.java | 16 ++++++++++++++++ .../com/canonical/openssl/drbg/OpenSSLDrbg.java | 16 ++++++++++++++++ .../canonical/openssl/kdf/OpenSSLPBKDF2.java | 16 ++++++++++++++++ .../canonical/openssl/kdf/PBKDF2withSHA512.java | 16 ++++++++++++++++ .../com/canonical/openssl/key/OpenSSLKey.java | 16 ++++++++++++++++ .../openssl/key/OpenSSLPrivateKey.java | 16 ++++++++++++++++ .../canonical/openssl/key/OpenSSLPublicKey.java | 16 ++++++++++++++++ .../openssl/keyagreement/DHKeyAgreement.java | 16 ++++++++++++++++ .../openssl/keyagreement/ECDHKeyAgreement.java | 16 ++++++++++++++++ .../keyagreement/OpenSSLKeyAgreement.java | 16 ++++++++++++++++ .../openssl/keyencapsulation/OpenSSLKEMRSA.java | 16 ++++++++++++++++ .../openssl/mac/CMACwithAes256CBC.java | 16 ++++++++++++++++ .../openssl/mac/GMACWithAes128GCM.java | 16 ++++++++++++++++ .../com/canonical/openssl/mac/HMACwithSHA1.java | 16 ++++++++++++++++ .../canonical/openssl/mac/HMACwithSHA3_512.java | 16 ++++++++++++++++ src/java/com/canonical/openssl/mac/KMAC128.java | 16 ++++++++++++++++ src/java/com/canonical/openssl/mac/KMAC256.java | 16 ++++++++++++++++ .../com/canonical/openssl/mac/OpenSSLMAC.java | 16 ++++++++++++++++ .../canonical/openssl/md/MDKeccakKemak128.java | 16 ++++++++++++++++ .../canonical/openssl/md/MDKeccakKemak256.java | 16 ++++++++++++++++ src/java/com/canonical/openssl/md/MDSHA1.java | 16 ++++++++++++++++ src/java/com/canonical/openssl/md/MDSHA224.java | 16 ++++++++++++++++ src/java/com/canonical/openssl/md/MDSHA256.java | 16 ++++++++++++++++ src/java/com/canonical/openssl/md/MDSHA384.java | 16 ++++++++++++++++ .../com/canonical/openssl/md/MDSHA3_224.java | 16 ++++++++++++++++ .../com/canonical/openssl/md/MDSHA3_256.java | 16 ++++++++++++++++ .../com/canonical/openssl/md/MDSHA3_384.java | 16 ++++++++++++++++ .../com/canonical/openssl/md/MDSHA3_512.java | 16 ++++++++++++++++ src/java/com/canonical/openssl/md/MDSHA512.java | 16 ++++++++++++++++ .../com/canonical/openssl/md/OpenSSLMD.java | 16 ++++++++++++++++ .../openssl/provider/OpenSSLFIPSProvider.java | 16 ++++++++++++++++ .../openssl/signature/OpenSSLSignature.java | 16 ++++++++++++++++ .../openssl/signature/SignatureED25519.java | 16 ++++++++++++++++ .../openssl/signature/SignatureED448.java | 16 ++++++++++++++++ .../openssl/signature/SignatureRSA.java | 16 ++++++++++++++++ .../openssl/util/NativeLibraryLoader.java | 16 ++++++++++++++++ .../openssl/util/NativeMemoryCleaner.java | 16 ++++++++++++++++ ...com_canonical_openssl_cipher_OpenSSLCipher.c | 16 ++++++++++++++++ .../com_canonical_openssl_drbg_OpenSSLDrbg.c | 16 ++++++++++++++++ .../com_canonical_openssl_kdf_OpenSSLPBKDF2.c | 16 ++++++++++++++++ ...l_openssl_keyagreement_OpenSSLKeyAgreement.c | 16 ++++++++++++++++ ...psulation_OpenSSLKEMRSA_RSAKEMDecapsulator.c | 16 ++++++++++++++++ ...psulation_OpenSSLKEMRSA_RSAKEMEncapsulator.c | 16 ++++++++++++++++ src/jni/com_canonical_openssl_mac_OpenSSLMAC.c | 16 ++++++++++++++++ src/jni/com_canonical_openssl_md_OpenSSLMD.c | 16 ++++++++++++++++ ...nonical_openssl_signature_OpenSSLSignature.c | 16 ++++++++++++++++ src/jni/jni_utils.c | 16 ++++++++++++++++ src/native/cipher.c | 16 ++++++++++++++++ src/native/drbg.c | 16 ++++++++++++++++ src/native/evp_utils.c | 16 ++++++++++++++++ src/native/init.c | 16 ++++++++++++++++ src/native/kdf.c | 16 ++++++++++++++++ src/native/keyagreement.c | 16 ++++++++++++++++ src/native/keyencapsulation.c | 16 ++++++++++++++++ src/native/mac.c | 16 ++++++++++++++++ src/native/md.c | 16 ++++++++++++++++ src/native/signature.c | 16 ++++++++++++++++ test/java/CipherApiTest.java | 16 ++++++++++++++++ test/java/CipherTest.java | 16 ++++++++++++++++ test/java/DrbgTest.java | 16 ++++++++++++++++ test/java/KeyAgreementApiTest.java | 16 ++++++++++++++++ test/java/KeyAgreementTest.java | 16 ++++++++++++++++ test/java/KeyEncapsulationApiTest.java | 16 ++++++++++++++++ test/java/KeyEncapsulationTest.java | 16 ++++++++++++++++ test/java/MDApiTest.java | 16 ++++++++++++++++ test/java/MDTest.java | 16 ++++++++++++++++ test/java/MacApiTest.java | 16 ++++++++++++++++ test/java/MacTest.java | 16 ++++++++++++++++ test/java/PBKDFTest.java | 16 ++++++++++++++++ test/java/ProviderSanityTest.java | 16 ++++++++++++++++ test/java/SecretKeyFactoryApiTest.java | 16 ++++++++++++++++ test/java/SecureRandomApiTest.java | 16 ++++++++++++++++ test/java/SignatureApiTest.java | 16 ++++++++++++++++ test/java/SignatureTest.java | 16 ++++++++++++++++ test/java/native/EdDSAPrivateKey.c | 16 ++++++++++++++++ test/java/native/EdDSAPrivateKey.h | 16 ++++++++++++++++ test/java/native/EdDSAPublicKey.c | 16 ++++++++++++++++ test/java/native/EdDSAPublicKey.h | 16 ++++++++++++++++ test/java/native/RSAKeyPairGenerator.c | 16 ++++++++++++++++ test/java/native/RSAKeyPairGenerator.h | 16 ++++++++++++++++ test/native/cipher_test.c | 16 ++++++++++++++++ test/native/drbg_test.c | 16 ++++++++++++++++ test/native/kdf.c | 16 ++++++++++++++++ test/native/keyagreement.c | 16 ++++++++++++++++ test/native/keyencapsulation.c | 16 ++++++++++++++++ test/native/mac.c | 16 ++++++++++++++++ test/native/md.c | 16 ++++++++++++++++ test/native/signature.c | 16 ++++++++++++++++ test/runner.py | 17 +++++++++++++++++ 117 files changed, 1875 insertions(+) diff --git a/Makefile b/Makefile index 1dd99e7..f961a86 100644 --- a/Makefile +++ b/Makefile @@ -1,3 +1,20 @@ +# +# Copyright (C) Canonical, Ltd. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +# + JAVA_HOME := /usr/lib/jvm/java-21-openjdk-amd64/ BUILD := ${PWD}/build diff --git a/gen/gen-classes.sh b/gen/gen-classes.sh index a89dd21..046980e 100755 --- a/gen/gen-classes.sh +++ b/gen/gen-classes.sh @@ -1,3 +1,19 @@ +# +# Copyright (C) Canonical, Ltd. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +# while IFS= read -r line do ks=$(echo $line | cut -d'-' -f2) diff --git a/gen/template.java b/gen/template.java index 46eeab4..1f4686c 100644 --- a/gen/template.java +++ b/gen/template.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.cipher; final public class AES__KS__with__MODE__padding__PADC__ extends CipherAes { diff --git a/pom.xml b/pom.xml index f24c261..46c49eb 100644 --- a/pom.xml +++ b/pom.xml @@ -1,4 +1,21 @@ + + + diff --git a/src/include/jni/com_canonical_openssl_cipher_OpenSSLCipher.h b/src/include/jni/com_canonical_openssl_cipher_OpenSSLCipher.h index 03cd6b2..d3f72b8 100644 --- a/src/include/jni/com_canonical_openssl_cipher_OpenSSLCipher.h +++ b/src/include/jni/com_canonical_openssl_cipher_OpenSSLCipher.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ /* DO NOT EDIT THIS FILE - it is machine generated */ #include /* Header for class com_canonical_openssl_cipher_OpenSSLCipher */ diff --git a/src/include/jni/com_canonical_openssl_drbg_OpenSSLDrbg.h b/src/include/jni/com_canonical_openssl_drbg_OpenSSLDrbg.h index 193817e..6480389 100644 --- a/src/include/jni/com_canonical_openssl_drbg_OpenSSLDrbg.h +++ b/src/include/jni/com_canonical_openssl_drbg_OpenSSLDrbg.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ /* DO NOT EDIT THIS FILE - it is machine generated */ #include /* Header for class com_canonical_openssl_drbg_OpenSSLDrbg */ diff --git a/src/include/jni/com_canonical_openssl_kdf_OpenSSLPBKDF2.h b/src/include/jni/com_canonical_openssl_kdf_OpenSSLPBKDF2.h index 4339df4..3d51fb5 100644 --- a/src/include/jni/com_canonical_openssl_kdf_OpenSSLPBKDF2.h +++ b/src/include/jni/com_canonical_openssl_kdf_OpenSSLPBKDF2.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ /* DO NOT EDIT THIS FILE - it is machine generated */ #include /* Header for class OpenSSLPBKDF2Spi */ diff --git a/src/include/jni/com_canonical_openssl_keyagreement_OpenSSLKeyAgreement.h b/src/include/jni/com_canonical_openssl_keyagreement_OpenSSLKeyAgreement.h index 17dfcef..3d9a0cf 100644 --- a/src/include/jni/com_canonical_openssl_keyagreement_OpenSSLKeyAgreement.h +++ b/src/include/jni/com_canonical_openssl_keyagreement_OpenSSLKeyAgreement.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ /* DO NOT EDIT THIS FILE - it is machine generated */ #include /* Header for class com_canonical_openssl_keyagreement_OpenSSLKeyAgreement */ diff --git a/src/include/jni/com_canonical_openssl_keyencapsulation_OpenSSLKEMRSA_RSAKEMDecapsulator.h b/src/include/jni/com_canonical_openssl_keyencapsulation_OpenSSLKEMRSA_RSAKEMDecapsulator.h index d621423..b221e8b 100644 --- a/src/include/jni/com_canonical_openssl_keyencapsulation_OpenSSLKEMRSA_RSAKEMDecapsulator.h +++ b/src/include/jni/com_canonical_openssl_keyencapsulation_OpenSSLKEMRSA_RSAKEMDecapsulator.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ /* DO NOT EDIT THIS FILE - it is machine generated */ #include /* Header for class com_canonical_openssl_keyencapsulation_OpenSSLKEMRSA_RSAKEMDecapsulator */ diff --git a/src/include/jni/com_canonical_openssl_keyencapsulation_OpenSSLKEMRSA_RSAKEMEncapsulator.h b/src/include/jni/com_canonical_openssl_keyencapsulation_OpenSSLKEMRSA_RSAKEMEncapsulator.h index 6531b61..fc4656e 100644 --- a/src/include/jni/com_canonical_openssl_keyencapsulation_OpenSSLKEMRSA_RSAKEMEncapsulator.h +++ b/src/include/jni/com_canonical_openssl_keyencapsulation_OpenSSLKEMRSA_RSAKEMEncapsulator.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ /* DO NOT EDIT THIS FILE - it is machine generated */ #include /* Header for class com_canonical_openssl_keyencapsulation_OpenSSLKEMRSA_RSAKEMEncapsulator */ diff --git a/src/include/jni/com_canonical_openssl_mac_OpenSSLMAC.h b/src/include/jni/com_canonical_openssl_mac_OpenSSLMAC.h index 3e4a826..b13442d 100644 --- a/src/include/jni/com_canonical_openssl_mac_OpenSSLMAC.h +++ b/src/include/jni/com_canonical_openssl_mac_OpenSSLMAC.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ /* DO NOT EDIT THIS FILE - it is machine generated */ #include /* Header for class com_canonical_openssl_mac_OpenSSLMAC */ diff --git a/src/include/jni/com_canonical_openssl_md_OpenSSLMD.h b/src/include/jni/com_canonical_openssl_md_OpenSSLMD.h index ccb59c0..9a76b88 100644 --- a/src/include/jni/com_canonical_openssl_md_OpenSSLMD.h +++ b/src/include/jni/com_canonical_openssl_md_OpenSSLMD.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ /* DO NOT EDIT THIS FILE - it is machine generated */ #include /* Header for class com_canonical_openssl_md_OpenSSLMD */ diff --git a/src/include/jni/com_canonical_openssl_signature_OpenSSLSignature.h b/src/include/jni/com_canonical_openssl_signature_OpenSSLSignature.h index 9be40df..dbe974e 100644 --- a/src/include/jni/com_canonical_openssl_signature_OpenSSLSignature.h +++ b/src/include/jni/com_canonical_openssl_signature_OpenSSLSignature.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ /* DO NOT EDIT THIS FILE - it is machine generated */ #include /* Header for class com_canonical_openssl_signature_OpenSSLSignature */ diff --git a/src/include/native/cipher.h b/src/include/native/cipher.h index 44c110f..b9dbd1f 100644 --- a/src/include/native/cipher.h +++ b/src/include/native/cipher.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include #include #include diff --git a/src/include/native/drbg.h b/src/include/native/drbg.h index c4baab8..4a5a500 100644 --- a/src/include/native/drbg.h +++ b/src/include/native/drbg.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include #include #include diff --git a/src/include/native/evp_utils.h b/src/include/native/evp_utils.h index a756f0c..486b8bd 100644 --- a/src/include/native/evp_utils.h +++ b/src/include/native/evp_utils.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include #include "jssl.h" diff --git a/src/include/native/jni_utils.h b/src/include/native/jni_utils.h index 97a858a..3432e4b 100644 --- a/src/include/native/jni_utils.h +++ b/src/include/native/jni_utils.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include #include "jssl.h" diff --git a/src/include/native/jssl.h b/src/include/native/jssl.h index 2e8421f..f71b614 100644 --- a/src/include/native/jssl.h +++ b/src/include/native/jssl.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include #include #include diff --git a/src/include/native/kdf.h b/src/include/native/kdf.h index 5528f14..0575591 100644 --- a/src/include/native/kdf.h +++ b/src/include/native/kdf.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include "jssl.h" typedef enum kdf_type { PBKDF2, HKDF } kdf_type; diff --git a/src/include/native/keyagreement.h b/src/include/native/keyagreement.h index 885729c..58bde97 100644 --- a/src/include/native/keyagreement.h +++ b/src/include/native/keyagreement.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include "jssl.h" #include diff --git a/src/include/native/keyencapsulation.h b/src/include/native/keyencapsulation.h index 53b2818..681541b 100644 --- a/src/include/native/keyencapsulation.h +++ b/src/include/native/keyencapsulation.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include "jssl.h" #include diff --git a/src/include/native/mac.h b/src/include/native/mac.h index 4f5818b..42d32ab 100644 --- a/src/include/native/mac.h +++ b/src/include/native/mac.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include #include diff --git a/src/include/native/md.h b/src/include/native/md.h index c8fd22e..b16283e 100644 --- a/src/include/native/md.h +++ b/src/include/native/md.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include #include "jssl.h" diff --git a/src/include/native/signature.h b/src/include/native/signature.h index d823749..5697575 100644 --- a/src/include/native/signature.h +++ b/src/include/native/signature.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include "jssl.h" #include diff --git a/src/java/com/canonical/openssl/cipher/CipherAes.java b/src/java/com/canonical/openssl/cipher/CipherAes.java index 22193ff..bf1a113 100644 --- a/src/java/com/canonical/openssl/cipher/CipherAes.java +++ b/src/java/com/canonical/openssl/cipher/CipherAes.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.cipher; public abstract class CipherAes extends OpenSSLCipher { diff --git a/src/java/com/canonical/openssl/cipher/OpenSSLCipher.java b/src/java/com/canonical/openssl/cipher/OpenSSLCipher.java index cc082f1..bd68996 100644 --- a/src/java/com/canonical/openssl/cipher/OpenSSLCipher.java +++ b/src/java/com/canonical/openssl/cipher/OpenSSLCipher.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.cipher; import com.canonical.openssl.util.NativeMemoryCleaner; diff --git a/src/java/com/canonical/openssl/drbg/DrbgAES256CTR.java b/src/java/com/canonical/openssl/drbg/DrbgAES256CTR.java index 6be55a6..4f357bc 100644 --- a/src/java/com/canonical/openssl/drbg/DrbgAES256CTR.java +++ b/src/java/com/canonical/openssl/drbg/DrbgAES256CTR.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.drbg; import java.security.SecureRandomParameters; diff --git a/src/java/com/canonical/openssl/drbg/DrbgHMACSHA256.java b/src/java/com/canonical/openssl/drbg/DrbgHMACSHA256.java index b1ab9af..0be165f 100644 --- a/src/java/com/canonical/openssl/drbg/DrbgHMACSHA256.java +++ b/src/java/com/canonical/openssl/drbg/DrbgHMACSHA256.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.drbg; import java.security.SecureRandomParameters; diff --git a/src/java/com/canonical/openssl/drbg/DrbgHashSHA512.java b/src/java/com/canonical/openssl/drbg/DrbgHashSHA512.java index 1fb5fba..2c4b0a1 100644 --- a/src/java/com/canonical/openssl/drbg/DrbgHashSHA512.java +++ b/src/java/com/canonical/openssl/drbg/DrbgHashSHA512.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.drbg; import java.security.SecureRandomParameters; diff --git a/src/java/com/canonical/openssl/drbg/OpenSSLDrbg.java b/src/java/com/canonical/openssl/drbg/OpenSSLDrbg.java index 527313f..6127f75 100644 --- a/src/java/com/canonical/openssl/drbg/OpenSSLDrbg.java +++ b/src/java/com/canonical/openssl/drbg/OpenSSLDrbg.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.drbg; import com.canonical.openssl.util.NativeMemoryCleaner; diff --git a/src/java/com/canonical/openssl/kdf/OpenSSLPBKDF2.java b/src/java/com/canonical/openssl/kdf/OpenSSLPBKDF2.java index 56e4f4d..4362328 100644 --- a/src/java/com/canonical/openssl/kdf/OpenSSLPBKDF2.java +++ b/src/java/com/canonical/openssl/kdf/OpenSSLPBKDF2.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.kdf; import com.canonical.openssl.util.NativeLibraryLoader; diff --git a/src/java/com/canonical/openssl/kdf/PBKDF2withSHA512.java b/src/java/com/canonical/openssl/kdf/PBKDF2withSHA512.java index 63cbb3e..14aae93 100644 --- a/src/java/com/canonical/openssl/kdf/PBKDF2withSHA512.java +++ b/src/java/com/canonical/openssl/kdf/PBKDF2withSHA512.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.kdf; // Temporary, bad hack to maintain testability while preparing diff --git a/src/java/com/canonical/openssl/key/OpenSSLKey.java b/src/java/com/canonical/openssl/key/OpenSSLKey.java index 9bc8199..f50a72b 100644 --- a/src/java/com/canonical/openssl/key/OpenSSLKey.java +++ b/src/java/com/canonical/openssl/key/OpenSSLKey.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.key; public interface OpenSSLKey { diff --git a/src/java/com/canonical/openssl/key/OpenSSLPrivateKey.java b/src/java/com/canonical/openssl/key/OpenSSLPrivateKey.java index e75617b..9c63414 100644 --- a/src/java/com/canonical/openssl/key/OpenSSLPrivateKey.java +++ b/src/java/com/canonical/openssl/key/OpenSSLPrivateKey.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.key; import java.security.PrivateKey; diff --git a/src/java/com/canonical/openssl/key/OpenSSLPublicKey.java b/src/java/com/canonical/openssl/key/OpenSSLPublicKey.java index 2198194..961343b 100644 --- a/src/java/com/canonical/openssl/key/OpenSSLPublicKey.java +++ b/src/java/com/canonical/openssl/key/OpenSSLPublicKey.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.key; import java.security.PublicKey; diff --git a/src/java/com/canonical/openssl/keyagreement/DHKeyAgreement.java b/src/java/com/canonical/openssl/keyagreement/DHKeyAgreement.java index 200411f..2bfd713 100644 --- a/src/java/com/canonical/openssl/keyagreement/DHKeyAgreement.java +++ b/src/java/com/canonical/openssl/keyagreement/DHKeyAgreement.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.keyagreement; import java.security.Key; diff --git a/src/java/com/canonical/openssl/keyagreement/ECDHKeyAgreement.java b/src/java/com/canonical/openssl/keyagreement/ECDHKeyAgreement.java index ab7d4b1..69151ca 100644 --- a/src/java/com/canonical/openssl/keyagreement/ECDHKeyAgreement.java +++ b/src/java/com/canonical/openssl/keyagreement/ECDHKeyAgreement.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.keyagreement; import java.security.Key; diff --git a/src/java/com/canonical/openssl/keyagreement/OpenSSLKeyAgreement.java b/src/java/com/canonical/openssl/keyagreement/OpenSSLKeyAgreement.java index 0c2ca95..425ac96 100644 --- a/src/java/com/canonical/openssl/keyagreement/OpenSSLKeyAgreement.java +++ b/src/java/com/canonical/openssl/keyagreement/OpenSSLKeyAgreement.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.keyagreement; import com.canonical.openssl.util.NativeMemoryCleaner; diff --git a/src/java/com/canonical/openssl/keyencapsulation/OpenSSLKEMRSA.java b/src/java/com/canonical/openssl/keyencapsulation/OpenSSLKEMRSA.java index 7dec9a8..b621bc3 100644 --- a/src/java/com/canonical/openssl/keyencapsulation/OpenSSLKEMRSA.java +++ b/src/java/com/canonical/openssl/keyencapsulation/OpenSSLKEMRSA.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.keyencapsulation; import com.canonical.openssl.util.NativeMemoryCleaner; diff --git a/src/java/com/canonical/openssl/mac/CMACwithAes256CBC.java b/src/java/com/canonical/openssl/mac/CMACwithAes256CBC.java index 9beb45f..451bc1a 100644 --- a/src/java/com/canonical/openssl/mac/CMACwithAes256CBC.java +++ b/src/java/com/canonical/openssl/mac/CMACwithAes256CBC.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.mac; public final class CMACwithAes256CBC extends OpenSSLMAC { diff --git a/src/java/com/canonical/openssl/mac/GMACWithAes128GCM.java b/src/java/com/canonical/openssl/mac/GMACWithAes128GCM.java index 464b9ac..6aef10c 100644 --- a/src/java/com/canonical/openssl/mac/GMACWithAes128GCM.java +++ b/src/java/com/canonical/openssl/mac/GMACWithAes128GCM.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.mac; public final class GMACWithAes128GCM extends OpenSSLMAC { diff --git a/src/java/com/canonical/openssl/mac/HMACwithSHA1.java b/src/java/com/canonical/openssl/mac/HMACwithSHA1.java index 8cf320d..78a0e6e 100644 --- a/src/java/com/canonical/openssl/mac/HMACwithSHA1.java +++ b/src/java/com/canonical/openssl/mac/HMACwithSHA1.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.mac; public final class HMACwithSHA1 extends OpenSSLMAC { diff --git a/src/java/com/canonical/openssl/mac/HMACwithSHA3_512.java b/src/java/com/canonical/openssl/mac/HMACwithSHA3_512.java index 453c343..f829439 100644 --- a/src/java/com/canonical/openssl/mac/HMACwithSHA3_512.java +++ b/src/java/com/canonical/openssl/mac/HMACwithSHA3_512.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.mac; public final class HMACwithSHA3_512 extends OpenSSLMAC { diff --git a/src/java/com/canonical/openssl/mac/KMAC128.java b/src/java/com/canonical/openssl/mac/KMAC128.java index 715e7d7..9c2f22f 100644 --- a/src/java/com/canonical/openssl/mac/KMAC128.java +++ b/src/java/com/canonical/openssl/mac/KMAC128.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.mac; public final class KMAC128 extends OpenSSLMAC { diff --git a/src/java/com/canonical/openssl/mac/KMAC256.java b/src/java/com/canonical/openssl/mac/KMAC256.java index a2ab11d..2d8b6db 100644 --- a/src/java/com/canonical/openssl/mac/KMAC256.java +++ b/src/java/com/canonical/openssl/mac/KMAC256.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.mac; public final class KMAC256 extends OpenSSLMAC { diff --git a/src/java/com/canonical/openssl/mac/OpenSSLMAC.java b/src/java/com/canonical/openssl/mac/OpenSSLMAC.java index 623c2cb..c1e7a17 100644 --- a/src/java/com/canonical/openssl/mac/OpenSSLMAC.java +++ b/src/java/com/canonical/openssl/mac/OpenSSLMAC.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.mac; import com.canonical.openssl.util.NativeMemoryCleaner; diff --git a/src/java/com/canonical/openssl/md/MDKeccakKemak128.java b/src/java/com/canonical/openssl/md/MDKeccakKemak128.java index d87eddd..519001e 100644 --- a/src/java/com/canonical/openssl/md/MDKeccakKemak128.java +++ b/src/java/com/canonical/openssl/md/MDKeccakKemak128.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.md; final public class MDKeccakKemak128 extends OpenSSLMD { diff --git a/src/java/com/canonical/openssl/md/MDKeccakKemak256.java b/src/java/com/canonical/openssl/md/MDKeccakKemak256.java index 4299356..0229f08 100644 --- a/src/java/com/canonical/openssl/md/MDKeccakKemak256.java +++ b/src/java/com/canonical/openssl/md/MDKeccakKemak256.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.md; final public class MDKeccakKemak256 extends OpenSSLMD { diff --git a/src/java/com/canonical/openssl/md/MDSHA1.java b/src/java/com/canonical/openssl/md/MDSHA1.java index 0be6cdb..f3c33fd 100644 --- a/src/java/com/canonical/openssl/md/MDSHA1.java +++ b/src/java/com/canonical/openssl/md/MDSHA1.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.md; final public class MDSHA1 extends OpenSSLMD { diff --git a/src/java/com/canonical/openssl/md/MDSHA224.java b/src/java/com/canonical/openssl/md/MDSHA224.java index 6b4940c..c8680de 100644 --- a/src/java/com/canonical/openssl/md/MDSHA224.java +++ b/src/java/com/canonical/openssl/md/MDSHA224.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.md; final public class MDSHA224 extends OpenSSLMD { diff --git a/src/java/com/canonical/openssl/md/MDSHA256.java b/src/java/com/canonical/openssl/md/MDSHA256.java index a63daf1..9242933 100644 --- a/src/java/com/canonical/openssl/md/MDSHA256.java +++ b/src/java/com/canonical/openssl/md/MDSHA256.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.md; final public class MDSHA256 extends OpenSSLMD { diff --git a/src/java/com/canonical/openssl/md/MDSHA384.java b/src/java/com/canonical/openssl/md/MDSHA384.java index d04acb0..d3e7e3a 100644 --- a/src/java/com/canonical/openssl/md/MDSHA384.java +++ b/src/java/com/canonical/openssl/md/MDSHA384.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.md; final public class MDSHA384 extends OpenSSLMD { diff --git a/src/java/com/canonical/openssl/md/MDSHA3_224.java b/src/java/com/canonical/openssl/md/MDSHA3_224.java index a069302..232c97e 100644 --- a/src/java/com/canonical/openssl/md/MDSHA3_224.java +++ b/src/java/com/canonical/openssl/md/MDSHA3_224.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.md; final public class MDSHA3_224 extends OpenSSLMD { diff --git a/src/java/com/canonical/openssl/md/MDSHA3_256.java b/src/java/com/canonical/openssl/md/MDSHA3_256.java index 7f8efae..a65b7eb 100644 --- a/src/java/com/canonical/openssl/md/MDSHA3_256.java +++ b/src/java/com/canonical/openssl/md/MDSHA3_256.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.md; final public class MDSHA3_256 extends OpenSSLMD { diff --git a/src/java/com/canonical/openssl/md/MDSHA3_384.java b/src/java/com/canonical/openssl/md/MDSHA3_384.java index 5bdffac..b8363c3 100644 --- a/src/java/com/canonical/openssl/md/MDSHA3_384.java +++ b/src/java/com/canonical/openssl/md/MDSHA3_384.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.md; final public class MDSHA3_384 extends OpenSSLMD { diff --git a/src/java/com/canonical/openssl/md/MDSHA3_512.java b/src/java/com/canonical/openssl/md/MDSHA3_512.java index 0d6e500..07ce04c 100644 --- a/src/java/com/canonical/openssl/md/MDSHA3_512.java +++ b/src/java/com/canonical/openssl/md/MDSHA3_512.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.md; final public class MDSHA3_512 extends OpenSSLMD { diff --git a/src/java/com/canonical/openssl/md/MDSHA512.java b/src/java/com/canonical/openssl/md/MDSHA512.java index 8d1f164..7532f26 100644 --- a/src/java/com/canonical/openssl/md/MDSHA512.java +++ b/src/java/com/canonical/openssl/md/MDSHA512.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.md; final public class MDSHA512 extends OpenSSLMD { diff --git a/src/java/com/canonical/openssl/md/OpenSSLMD.java b/src/java/com/canonical/openssl/md/OpenSSLMD.java index 44a1c68..e63b8f2 100644 --- a/src/java/com/canonical/openssl/md/OpenSSLMD.java +++ b/src/java/com/canonical/openssl/md/OpenSSLMD.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.md; import com.canonical.openssl.util.NativeMemoryCleaner; diff --git a/src/java/com/canonical/openssl/provider/OpenSSLFIPSProvider.java b/src/java/com/canonical/openssl/provider/OpenSSLFIPSProvider.java index eb502db..81d4da1 100644 --- a/src/java/com/canonical/openssl/provider/OpenSSLFIPSProvider.java +++ b/src/java/com/canonical/openssl/provider/OpenSSLFIPSProvider.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.provider; import java.security.Provider; diff --git a/src/java/com/canonical/openssl/signature/OpenSSLSignature.java b/src/java/com/canonical/openssl/signature/OpenSSLSignature.java index 3a057df..5d8c707 100644 --- a/src/java/com/canonical/openssl/signature/OpenSSLSignature.java +++ b/src/java/com/canonical/openssl/signature/OpenSSLSignature.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.signature; import com.canonical.openssl.key.*; diff --git a/src/java/com/canonical/openssl/signature/SignatureED25519.java b/src/java/com/canonical/openssl/signature/SignatureED25519.java index 287004c..d4c7f08 100644 --- a/src/java/com/canonical/openssl/signature/SignatureED25519.java +++ b/src/java/com/canonical/openssl/signature/SignatureED25519.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.signature; public final class SignatureED25519 extends OpenSSLSignature { diff --git a/src/java/com/canonical/openssl/signature/SignatureED448.java b/src/java/com/canonical/openssl/signature/SignatureED448.java index 6293521..b8089d0 100644 --- a/src/java/com/canonical/openssl/signature/SignatureED448.java +++ b/src/java/com/canonical/openssl/signature/SignatureED448.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.signature; public final class SignatureED448 extends OpenSSLSignature { diff --git a/src/java/com/canonical/openssl/signature/SignatureRSA.java b/src/java/com/canonical/openssl/signature/SignatureRSA.java index 9ea724e..6425b2f 100644 --- a/src/java/com/canonical/openssl/signature/SignatureRSA.java +++ b/src/java/com/canonical/openssl/signature/SignatureRSA.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.signature; public final class SignatureRSA extends OpenSSLSignature { diff --git a/src/java/com/canonical/openssl/util/NativeLibraryLoader.java b/src/java/com/canonical/openssl/util/NativeLibraryLoader.java index 0fe005e..5a82973 100644 --- a/src/java/com/canonical/openssl/util/NativeLibraryLoader.java +++ b/src/java/com/canonical/openssl/util/NativeLibraryLoader.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.util; import java.io.File; diff --git a/src/java/com/canonical/openssl/util/NativeMemoryCleaner.java b/src/java/com/canonical/openssl/util/NativeMemoryCleaner.java index bbdf3db..575de6b 100644 --- a/src/java/com/canonical/openssl/util/NativeMemoryCleaner.java +++ b/src/java/com/canonical/openssl/util/NativeMemoryCleaner.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ package com.canonical.openssl.util; import java.lang.ref.Cleaner; diff --git a/src/jni/com_canonical_openssl_cipher_OpenSSLCipher.c b/src/jni/com_canonical_openssl_cipher_OpenSSLCipher.c index 8c3654f..12c130c 100644 --- a/src/jni/com_canonical_openssl_cipher_OpenSSLCipher.c +++ b/src/jni/com_canonical_openssl_cipher_OpenSSLCipher.c @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include #include "jssl.h" #include "cipher.h" diff --git a/src/jni/com_canonical_openssl_drbg_OpenSSLDrbg.c b/src/jni/com_canonical_openssl_drbg_OpenSSLDrbg.c index e6f546f..5edc5ee 100644 --- a/src/jni/com_canonical_openssl_drbg_OpenSSLDrbg.c +++ b/src/jni/com_canonical_openssl_drbg_OpenSSLDrbg.c @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include "com_canonical_openssl_drbg_OpenSSLDrbg.h" #include "drbg.h" diff --git a/src/jni/com_canonical_openssl_kdf_OpenSSLPBKDF2.c b/src/jni/com_canonical_openssl_kdf_OpenSSLPBKDF2.c index 3540b52..913a994 100644 --- a/src/jni/com_canonical_openssl_kdf_OpenSSLPBKDF2.c +++ b/src/jni/com_canonical_openssl_kdf_OpenSSLPBKDF2.c @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include "jni_utils.h" #include "kdf.h" #include "com_canonical_openssl_kdf_OpenSSLPBKDF2.h" diff --git a/src/jni/com_canonical_openssl_keyagreement_OpenSSLKeyAgreement.c b/src/jni/com_canonical_openssl_keyagreement_OpenSSLKeyAgreement.c index 2797481..95deaf3 100644 --- a/src/jni/com_canonical_openssl_keyagreement_OpenSSLKeyAgreement.c +++ b/src/jni/com_canonical_openssl_keyagreement_OpenSSLKeyAgreement.c @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include #include "jssl.h" #include "keyagreement.h" diff --git a/src/jni/com_canonical_openssl_keyencapsulation_OpenSSLKEMRSA_RSAKEMDecapsulator.c b/src/jni/com_canonical_openssl_keyencapsulation_OpenSSLKEMRSA_RSAKEMDecapsulator.c index 466c133..59a05f2 100644 --- a/src/jni/com_canonical_openssl_keyencapsulation_OpenSSLKEMRSA_RSAKEMDecapsulator.c +++ b/src/jni/com_canonical_openssl_keyencapsulation_OpenSSLKEMRSA_RSAKEMDecapsulator.c @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include #include "jssl.h" #include "keyencapsulation.h" diff --git a/src/jni/com_canonical_openssl_keyencapsulation_OpenSSLKEMRSA_RSAKEMEncapsulator.c b/src/jni/com_canonical_openssl_keyencapsulation_OpenSSLKEMRSA_RSAKEMEncapsulator.c index 87dbf25..ef92ac0 100644 --- a/src/jni/com_canonical_openssl_keyencapsulation_OpenSSLKEMRSA_RSAKEMEncapsulator.c +++ b/src/jni/com_canonical_openssl_keyencapsulation_OpenSSLKEMRSA_RSAKEMEncapsulator.c @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include #include "jssl.h" #include "keyencapsulation.h" diff --git a/src/jni/com_canonical_openssl_mac_OpenSSLMAC.c b/src/jni/com_canonical_openssl_mac_OpenSSLMAC.c index a3e5af6..acea3e0 100644 --- a/src/jni/com_canonical_openssl_mac_OpenSSLMAC.c +++ b/src/jni/com_canonical_openssl_mac_OpenSSLMAC.c @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include "jssl.h" #include "mac.h" #include "com_canonical_openssl_mac_OpenSSLMAC.h" diff --git a/src/jni/com_canonical_openssl_md_OpenSSLMD.c b/src/jni/com_canonical_openssl_md_OpenSSLMD.c index 153dd20..7aaf359 100644 --- a/src/jni/com_canonical_openssl_md_OpenSSLMD.c +++ b/src/jni/com_canonical_openssl_md_OpenSSLMD.c @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include "com_canonical_openssl_md_OpenSSLMD.h" #include "jssl.h" #include "md.h" diff --git a/src/jni/com_canonical_openssl_signature_OpenSSLSignature.c b/src/jni/com_canonical_openssl_signature_OpenSSLSignature.c index 092f7e0..dd8aba6 100644 --- a/src/jni/com_canonical_openssl_signature_OpenSSLSignature.c +++ b/src/jni/com_canonical_openssl_signature_OpenSSLSignature.c @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include "jssl.h" #include "com_canonical_openssl_signature_OpenSSLSignature.h" #include "signature.h" diff --git a/src/jni/jni_utils.c b/src/jni/jni_utils.c index 1e8200b..ed8abb4 100644 --- a/src/jni/jni_utils.c +++ b/src/jni/jni_utils.c @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include #include "jssl.h" diff --git a/src/native/cipher.c b/src/native/cipher.c index 72a97c5..6beff10 100644 --- a/src/native/cipher.c +++ b/src/native/cipher.c @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include "cipher.h" #include #include diff --git a/src/native/drbg.c b/src/native/drbg.c index 2115236..592b6f8 100644 --- a/src/native/drbg.c +++ b/src/native/drbg.c @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include #include #include diff --git a/src/native/evp_utils.c b/src/native/evp_utils.c index 780af1d..82856cc 100644 --- a/src/native/evp_utils.c +++ b/src/native/evp_utils.c @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include #include diff --git a/src/native/init.c b/src/native/init.c index 68e5750..90599ed 100644 --- a/src/native/init.c +++ b/src/native/init.c @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include "jssl.h" #include #include diff --git a/src/native/kdf.c b/src/native/kdf.c index 51ec85f..918aebf 100644 --- a/src/native/kdf.c +++ b/src/native/kdf.c @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include "jssl.h" #include "kdf.h" #include diff --git a/src/native/keyagreement.c b/src/native/keyagreement.c index e5b5d24..336e230 100644 --- a/src/native/keyagreement.c +++ b/src/native/keyagreement.c @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include "keyagreement.h" key_agreement* init_key_agreement(key_agreement_algorithm algo, OSSL_LIB_CTX *libctx) { diff --git a/src/native/keyencapsulation.c b/src/native/keyencapsulation.c index 8653cab..4226ccf 100644 --- a/src/native/keyencapsulation.c +++ b/src/native/keyencapsulation.c @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include "keyencapsulation.h" #include #include diff --git a/src/native/mac.c b/src/native/mac.c index 9bed3e6..e900a56 100644 --- a/src/native/mac.c +++ b/src/native/mac.c @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include "jssl.h" #include "mac.h" #include diff --git a/src/native/md.c b/src/native/md.c index b320ebf..42d46e8 100644 --- a/src/native/md.c +++ b/src/native/md.c @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include "md.h" md_context *md_init(OSSL_LIB_CTX *libctx, const char *algorithm) { diff --git a/src/native/signature.c b/src/native/signature.c index 167a107..048c680 100644 --- a/src/native/signature.c +++ b/src/native/signature.c @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include "signature.h" #include "jssl.h" #include diff --git a/test/java/CipherApiTest.java b/test/java/CipherApiTest.java index f8703a9..9f38efa 100644 --- a/test/java/CipherApiTest.java +++ b/test/java/CipherApiTest.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ import javax.crypto.CipherSpi; import javax.crypto.Cipher; import java.security.Key; diff --git a/test/java/CipherTest.java b/test/java/CipherTest.java index b833cfd..8b46f25 100644 --- a/test/java/CipherTest.java +++ b/test/java/CipherTest.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ import com.canonical.openssl.cipher.*; import javax.crypto.CipherSpi; import javax.crypto.Cipher; diff --git a/test/java/DrbgTest.java b/test/java/DrbgTest.java index 7b03c0b..99fad0c 100644 --- a/test/java/DrbgTest.java +++ b/test/java/DrbgTest.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ import com.canonical.openssl.drbg.OpenSSLDrbg; import java.util.Arrays; import java.security.*; diff --git a/test/java/KeyAgreementApiTest.java b/test/java/KeyAgreementApiTest.java index ce403da..27d2d7d 100644 --- a/test/java/KeyAgreementApiTest.java +++ b/test/java/KeyAgreementApiTest.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ import java.security.Key; import java.security.SecureRandom; import java.security.Security; diff --git a/test/java/KeyAgreementTest.java b/test/java/KeyAgreementTest.java index 36511cf..97ad2a9 100644 --- a/test/java/KeyAgreementTest.java +++ b/test/java/KeyAgreementTest.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ import com.canonical.openssl.keyagreement.*; import java.security.Key; import java.security.SecureRandom; diff --git a/test/java/KeyEncapsulationApiTest.java b/test/java/KeyEncapsulationApiTest.java index 581d5ba..3574fb5 100644 --- a/test/java/KeyEncapsulationApiTest.java +++ b/test/java/KeyEncapsulationApiTest.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ import java.security.KeyPair; import java.security.PublicKey; import java.security.PrivateKey; diff --git a/test/java/KeyEncapsulationTest.java b/test/java/KeyEncapsulationTest.java index 1bca1da..0e775dd 100644 --- a/test/java/KeyEncapsulationTest.java +++ b/test/java/KeyEncapsulationTest.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ import com.canonical.openssl.keyencapsulation.*; import java.security.KeyPair; diff --git a/test/java/MDApiTest.java b/test/java/MDApiTest.java index a32a1e8..23fc0c2 100644 --- a/test/java/MDApiTest.java +++ b/test/java/MDApiTest.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ import java.nio.ByteBuffer; import java.security.DigestException; import java.util.Arrays; diff --git a/test/java/MDTest.java b/test/java/MDTest.java index 59cbb87..ee12c2b 100644 --- a/test/java/MDTest.java +++ b/test/java/MDTest.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ import java.nio.ByteBuffer; import java.security.DigestException; import java.util.Arrays; diff --git a/test/java/MacApiTest.java b/test/java/MacApiTest.java index 88e30d4..5da24c9 100644 --- a/test/java/MacApiTest.java +++ b/test/java/MacApiTest.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ import java.lang.FunctionalInterface; import java.util.Arrays; import java.util.function.*; diff --git a/test/java/MacTest.java b/test/java/MacTest.java index d40018c..6e01622 100644 --- a/test/java/MacTest.java +++ b/test/java/MacTest.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ import com.canonical.openssl.mac.*; import java.lang.FunctionalInterface; import java.util.Arrays; diff --git a/test/java/PBKDFTest.java b/test/java/PBKDFTest.java index 4b98628..df562fd 100644 --- a/test/java/PBKDFTest.java +++ b/test/java/PBKDFTest.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ import com.canonical.openssl.kdf.*; import java.util.Arrays; import java.security.spec.KeySpec; diff --git a/test/java/ProviderSanityTest.java b/test/java/ProviderSanityTest.java index ab5778c..ee62162 100644 --- a/test/java/ProviderSanityTest.java +++ b/test/java/ProviderSanityTest.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ import com.canonical.openssl.provider.OpenSSLFIPSProvider; import java.security.Security; import java.security.SecureRandom; diff --git a/test/java/SecretKeyFactoryApiTest.java b/test/java/SecretKeyFactoryApiTest.java index 126c0bd..4497e69 100644 --- a/test/java/SecretKeyFactoryApiTest.java +++ b/test/java/SecretKeyFactoryApiTest.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ import java.util.Arrays; import java.security.spec.KeySpec; import java.security.spec.InvalidKeySpecException; diff --git a/test/java/SecureRandomApiTest.java b/test/java/SecureRandomApiTest.java index e4ad459..f8f53a7 100644 --- a/test/java/SecureRandomApiTest.java +++ b/test/java/SecureRandomApiTest.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ import java.util.Arrays; import java.security.*; import java.security.DrbgParameters; diff --git a/test/java/SignatureApiTest.java b/test/java/SignatureApiTest.java index 468a9a7..b36300e 100644 --- a/test/java/SignatureApiTest.java +++ b/test/java/SignatureApiTest.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ import com.canonical.openssl.signature.*; import com.canonical.openssl.key.OpenSSLKey; import com.canonical.openssl.key.OpenSSLPublicKey; diff --git a/test/java/SignatureTest.java b/test/java/SignatureTest.java index dcab18b..5bd785c 100644 --- a/test/java/SignatureTest.java +++ b/test/java/SignatureTest.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ import com.canonical.openssl.signature.*; import com.canonical.openssl.key.OpenSSLKey; import com.canonical.openssl.key.OpenSSLPublicKey; diff --git a/test/java/native/EdDSAPrivateKey.c b/test/java/native/EdDSAPrivateKey.c index 3620918..4dda747 100644 --- a/test/java/native/EdDSAPrivateKey.c +++ b/test/java/native/EdDSAPrivateKey.c @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include #include "jssl.h" #include diff --git a/test/java/native/EdDSAPrivateKey.h b/test/java/native/EdDSAPrivateKey.h index d393813..56f25cf 100644 --- a/test/java/native/EdDSAPrivateKey.h +++ b/test/java/native/EdDSAPrivateKey.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ /* DO NOT EDIT THIS FILE - it is machine generated */ #include /* Header for class EdDSAPrivateKey */ diff --git a/test/java/native/EdDSAPublicKey.c b/test/java/native/EdDSAPublicKey.c index 9c66873..280e9c8 100644 --- a/test/java/native/EdDSAPublicKey.c +++ b/test/java/native/EdDSAPublicKey.c @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include #include "jssl.h" #include diff --git a/test/java/native/EdDSAPublicKey.h b/test/java/native/EdDSAPublicKey.h index f194aba..433b9f7 100644 --- a/test/java/native/EdDSAPublicKey.h +++ b/test/java/native/EdDSAPublicKey.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ /* DO NOT EDIT THIS FILE - it is machine generated */ #include /* Header for class EdDSAPublicKey */ diff --git a/test/java/native/RSAKeyPairGenerator.c b/test/java/native/RSAKeyPairGenerator.c index 41c2e44..2301e1a 100644 --- a/test/java/native/RSAKeyPairGenerator.c +++ b/test/java/native/RSAKeyPairGenerator.c @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include #include "jssl.h" #include diff --git a/test/java/native/RSAKeyPairGenerator.h b/test/java/native/RSAKeyPairGenerator.h index 83a1f07..311e6e0 100644 --- a/test/java/native/RSAKeyPairGenerator.h +++ b/test/java/native/RSAKeyPairGenerator.h @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ /* DO NOT EDIT THIS FILE - it is machine generated */ #include /* Header for class RSAKeyPairGenerator */ diff --git a/test/native/cipher_test.c b/test/native/cipher_test.c index 4a96245..9d95d80 100644 --- a/test/native/cipher_test.c +++ b/test/native/cipher_test.c @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include "jssl.h" #include "cipher.h" diff --git a/test/native/drbg_test.c b/test/native/drbg_test.c index c153c69..d170d7e 100644 --- a/test/native/drbg_test.c +++ b/test/native/drbg_test.c @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include "jssl.h" #include diff --git a/test/native/kdf.c b/test/native/kdf.c index f364fd9..4a7c8b7 100644 --- a/test/native/kdf.c +++ b/test/native/kdf.c @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include "kdf.h" #include diff --git a/test/native/keyagreement.c b/test/native/keyagreement.c index af5d5aa..f44efbb 100644 --- a/test/native/keyagreement.c +++ b/test/native/keyagreement.c @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include "jssl.h" #include "keyagreement.h" diff --git a/test/native/keyencapsulation.c b/test/native/keyencapsulation.c index 49376a1..bb93c9a 100644 --- a/test/native/keyencapsulation.c +++ b/test/native/keyencapsulation.c @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include "jssl.h" #include "keyencapsulation.h" diff --git a/test/native/mac.c b/test/native/mac.c index 307834b..2615973 100644 --- a/test/native/mac.c +++ b/test/native/mac.c @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include "jssl.h" #include "mac.h" diff --git a/test/native/md.c b/test/native/md.c index ba78311..b16977e 100644 --- a/test/native/md.c +++ b/test/native/md.c @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include "md.h" #include diff --git a/test/native/signature.c b/test/native/signature.c index a925e92..1aa6d09 100644 --- a/test/native/signature.c +++ b/test/native/signature.c @@ -1,3 +1,19 @@ +/* + * Copyright (C) Canonical, Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + * + */ #include "signature.h" #include "md.h" #include "keyencapsulation.h" diff --git a/test/runner.py b/test/runner.py index 6a74615..468344f 100755 --- a/test/runner.py +++ b/test/runner.py @@ -1,5 +1,22 @@ #!/usr/bin/python3 -u +# +# Copyright (C) Canonical, Ltd. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; version 3. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . +# +# + import os JAVA_HOME = os.environ["JAVA_HOME"]