diff --git a/rust_bindings/build.rs b/rust_bindings/build.rs index 9a804a5..e25ded8 100644 --- a/rust_bindings/build.rs +++ b/rust_bindings/build.rs @@ -1,3 +1,28 @@ +/* +MIT License + +Copyright (c) 2021-2024 Prysmatic Labs + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +*/ + + use std::env; use std::path::PathBuf; use std::process::Command; diff --git a/rust_bindings/examples/basic_usage.rs b/rust_bindings/examples/basic_usage.rs index 45539f1..e1c5b2f 100644 --- a/rust_bindings/examples/basic_usage.rs +++ b/rust_bindings/examples/basic_usage.rs @@ -1,3 +1,28 @@ +/* +MIT License + +Copyright (c) 2021-2024 Prysmatic Labs + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +*/ + + extern crate hashtree_rs; fn main() { diff --git a/rust_bindings/src/lib.rs b/rust_bindings/src/lib.rs index acefb70..18da110 100644 --- a/rust_bindings/src/lib.rs +++ b/rust_bindings/src/lib.rs @@ -6,6 +6,31 @@ //! considered as chunks of 64 bytes each, and another slice where the digests of each chunk will //! be written consecutively //! + +/* +MIT License + +Copyright (c) 2021-2024 Prysmatic Labs + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +*/ + extern crate libc; use libc::c_int; use std::ptr; diff --git a/src/hashtree.c b/src/hashtree.c index da88271..97769a7 100644 --- a/src/hashtree.c +++ b/src/hashtree.c @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) 2021-2023 Prysmatic Labs +Copyright (c) 2021-2024 Prysmatic Labs Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/src/hashtree.h b/src/hashtree.h index d39cd4e..67f7582 100644 --- a/src/hashtree.h +++ b/src/hashtree.h @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) 2021-2023 Prysmatic Labs +Copyright (c) 2021-2024 Prysmatic Labs Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/src/sha256_armv8_crypto.S b/src/sha256_armv8_crypto.S index b97f56f..4893cb2 100644 --- a/src/sha256_armv8_crypto.S +++ b/src/sha256_armv8_crypto.S @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) 2021-2023 Prysmatic Labs +Copyright (c) 2021-2024 Prysmatic Labs Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/src/sha256_armv8_neon_x1.S b/src/sha256_armv8_neon_x1.S index df598b3..6d278b9 100644 --- a/src/sha256_armv8_neon_x1.S +++ b/src/sha256_armv8_neon_x1.S @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) 2021 Prysmatic Labs +Copyright (c) 2021-2024 Prysmatic Labs Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/src/sha256_armv8_neon_x4.S b/src/sha256_armv8_neon_x4.S index 7a2007a..5524c37 100644 --- a/src/sha256_armv8_neon_x4.S +++ b/src/sha256_armv8_neon_x4.S @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) 2021 Prysmatic Labs +Copyright (c) 2021-2024 Prysmatic Labs Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/src/sha256_avx_x1.S b/src/sha256_avx_x1.S index ff5ee1a..98910c0 100644 --- a/src/sha256_avx_x1.S +++ b/src/sha256_avx_x1.S @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) 2021 Prysmatic Labs +Copyright (c) 2021-2024 Prysmatic Labs Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -23,8 +23,8 @@ SOFTWARE. This code is based on Intel's implementation found in https://github.com/intel/intel-ipsec-mb -Copied parts are - Copyright (c) 2012-2021, Intel Corporation +Such software is licensed under the BSD 3-Clause License and is +Copyright (c) 2012-2023, Intel Corporation */ #ifdef __x86_64__ diff --git a/src/sha256_avx_x16.S b/src/sha256_avx_x16.S index d67eae7..8bdff6b 100644 --- a/src/sha256_avx_x16.S +++ b/src/sha256_avx_x16.S @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) 2021 Prysmatic Labs +Copyright (c) 2021-2024 Prysmatic Labs Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -23,8 +23,8 @@ SOFTWARE. This code is based on Intel's implementation found in https://github.com/intel/intel-ipsec-mb -Copied parts are - Copyright (c) 2012-2021, Intel Corporation +Such software is licensed under the BSD 3-Clause License and is +Copyright (c) 2012-2023, Intel Corporation */ #ifdef __x86_64__ diff --git a/src/sha256_avx_x4.S b/src/sha256_avx_x4.S index 345191e..fe7fbe9 100644 --- a/src/sha256_avx_x4.S +++ b/src/sha256_avx_x4.S @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) 2021 Prysmatic Labs +Copyright (c) 2021-2024 Prysmatic Labs Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -23,8 +23,8 @@ SOFTWARE. This code is based on Intel's implementation found in https://github.com/intel/intel-ipsec-mb -Copied parts are - Copyright (c) 2012-2021, Intel Corporation +Such software is licensed under the BSD 3-Clause License and is +Copyright (c) 2012-2023, Intel Corporation */ #ifdef __x86_64__ diff --git a/src/sha256_avx_x8.S b/src/sha256_avx_x8.S index a9fe4da..7daa173 100644 --- a/src/sha256_avx_x8.S +++ b/src/sha256_avx_x8.S @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) 2021 Prysmatic Labs +Copyright (c) 2021-2024 Prysmatic Labs Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal @@ -23,8 +23,8 @@ SOFTWARE. This code is based on Intel's implementation found in https://github.com/intel/intel-ipsec-mb -Copied parts are - Copyright (c) 2012-2021, Intel Corporation +Such software is licensed under the BSD 3-Clause License and is +Copyright (c) 2012-2023, Intel Corporation */ #ifdef __x86_64__ diff --git a/src/sha256_shani.S b/src/sha256_shani.S index 6599e02..8b67017 100644 --- a/src/sha256_shani.S +++ b/src/sha256_shani.S @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) 2021 Prysmatic Labs +Copyright (c) 2021-2024 Prysmatic Labs Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/src/sha256_sse_x1.S b/src/sha256_sse_x1.S index 05d92b1..460e841 100644 --- a/src/sha256_sse_x1.S +++ b/src/sha256_sse_x1.S @@ -1,7 +1,7 @@ /* MIT License -Copyright (c) 2021 Prysmatic Labs +Copyright (c) 2021-2024 Prysmatic Labs Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/src/test.c b/src/test.c index b6d0038..98ed510 100644 --- a/src/test.c +++ b/src/test.c @@ -1,7 +1,7 @@ /* MIT License - Copyright (c) 2021 Prysmatic Labs + Copyright (c) 2021-2024 Prysmatic Labs Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal