diff --git a/build.rs b/build.rs index babcdb1..c2cc891 100644 --- a/build.rs +++ b/build.rs @@ -1,4 +1,13 @@ - +/* + * Copyright (c) 2024 The NAMIB Project Developers. + * Licensed under the Apache License, Version 2.0 or the MIT license + * , at your + * option. This file may not be copied, modified, or distributed + * except according to those terms. + * + * SPDX-License-Identifier: MIT OR Apache-2.0 + */ use cfg_aliases::cfg_aliases; fn main() { diff --git a/src/common/cbor_map/mod.rs b/src/common/cbor_map/mod.rs index d65dfba..21acff5 100644 --- a/src/common/cbor_map/mod.rs +++ b/src/common/cbor_map/mod.rs @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 The NAMIB Project Developers. + * Copyright (c) 2022, 2024 The NAMIB Project Developers. * Licensed under the Apache License, Version 2.0 or the MIT license * , at your diff --git a/src/common/cbor_values/mod.rs b/src/common/cbor_values/mod.rs index f758f27..701ff51 100644 --- a/src/common/cbor_values/mod.rs +++ b/src/common/cbor_values/mod.rs @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 The NAMIB Project Developers. + * Copyright (c) 2022, 2024 The NAMIB Project Developers. * Licensed under the Apache License, Version 2.0 or the MIT license * , at your diff --git a/src/common/cbor_values/tests.rs b/src/common/cbor_values/tests.rs index 8a72582..bd6a8f0 100644 --- a/src/common/cbor_values/tests.rs +++ b/src/common/cbor_values/tests.rs @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 The NAMIB Project Developers. + * Copyright (c) 2022, 2024 The NAMIB Project Developers. * Licensed under the Apache License, Version 2.0 or the MIT license * , at your diff --git a/src/common/mod.rs b/src/common/mod.rs index 3817f59..4e80823 100644 --- a/src/common/mod.rs +++ b/src/common/mod.rs @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 The NAMIB Project Developers. + * Copyright (c) 2022, 2024 The NAMIB Project Developers. * Licensed under the Apache License, Version 2.0 or the MIT license * , at your diff --git a/src/common/scope/mod.rs b/src/common/scope/mod.rs index b51948d..02b9736 100644 --- a/src/common/scope/mod.rs +++ b/src/common/scope/mod.rs @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 The NAMIB Project Developers. + * Copyright (c) 2022, 2024 The NAMIB Project Developers. * Licensed under the Apache License, Version 2.0 or the MIT license * , at your diff --git a/src/common/scope/tests.rs b/src/common/scope/tests.rs index 879ae3d..0058c6c 100644 --- a/src/common/scope/tests.rs +++ b/src/common/scope/tests.rs @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 The NAMIB Project Developers. + * Copyright (c) 2022, 2024 The NAMIB Project Developers. * Licensed under the Apache License, Version 2.0 or the MIT license * , at your diff --git a/src/common/test_helper.rs b/src/common/test_helper.rs index 0137a06..07a2c17 100644 --- a/src/common/test_helper.rs +++ b/src/common/test_helper.rs @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 The NAMIB Project Developers. + * Copyright (c) 2022-2024 The NAMIB Project Developers. * Licensed under the Apache License, Version 2.0 or the MIT license * , at your diff --git a/src/endpoints/creation_hint/mod.rs b/src/endpoints/creation_hint/mod.rs index 13a2a69..1b9dbbb 100644 --- a/src/endpoints/creation_hint/mod.rs +++ b/src/endpoints/creation_hint/mod.rs @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 The NAMIB Project Developers. + * Copyright (c) 2022, 2024 The NAMIB Project Developers. * Licensed under the Apache License, Version 2.0 or the MIT license * , at your diff --git a/src/endpoints/creation_hint/tests.rs b/src/endpoints/creation_hint/tests.rs index 2c5c9a5..dcab8f9 100644 --- a/src/endpoints/creation_hint/tests.rs +++ b/src/endpoints/creation_hint/tests.rs @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 The NAMIB Project Developers. + * Copyright (c) 2022, 2024 The NAMIB Project Developers. * Licensed under the Apache License, Version 2.0 or the MIT license * , at your diff --git a/src/endpoints/token_req/mod.rs b/src/endpoints/token_req/mod.rs index 42f9806..bf60781 100644 --- a/src/endpoints/token_req/mod.rs +++ b/src/endpoints/token_req/mod.rs @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 The NAMIB Project Developers. + * Copyright (c) 2022, 2024 The NAMIB Project Developers. * Licensed under the Apache License, Version 2.0 or the MIT license * , at your diff --git a/src/endpoints/token_req/tests.rs b/src/endpoints/token_req/tests.rs index 0a49a28..e5ebbdb 100644 --- a/src/endpoints/token_req/tests.rs +++ b/src/endpoints/token_req/tests.rs @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 The NAMIB Project Developers. + * Copyright (c) 2022, 2024 The NAMIB Project Developers. * Licensed under the Apache License, Version 2.0 or the MIT license * , at your diff --git a/src/error/mod.rs b/src/error/mod.rs index 5191e89..8405c8b 100644 --- a/src/error/mod.rs +++ b/src/error/mod.rs @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 The NAMIB Project Developers. + * Copyright (c) 2022, 2024 The NAMIB Project Developers. * Licensed under the Apache License, Version 2.0 or the MIT license * , at your diff --git a/src/lib.rs b/src/lib.rs index c268460..1520fc9 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,5 +1,5 @@ /* - * Copyright (c) 2022 The NAMIB Project Developers. + * Copyright (c) 2022-2024 The NAMIB Project Developers. * Licensed under the Apache License, Version 2.0 or the MIT license * , at your diff --git a/src/token/cose/crypto_impl/rustcrypto/encrypt/aes_gcm.rs b/src/token/cose/crypto_impl/rustcrypto/encrypt/aes_gcm.rs index c85dc8c..7a01124 100644 --- a/src/token/cose/crypto_impl/rustcrypto/encrypt/aes_gcm.rs +++ b/src/token/cose/crypto_impl/rustcrypto/encrypt/aes_gcm.rs @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2024 The NAMIB Project Developers. + * Licensed under the Apache License, Version 2.0 or the MIT license + * , at your + * option. This file may not be copied, modified, or distributed + * except according to those terms. + * + * SPDX-License-Identifier: MIT OR Apache-2.0 + */ use aead::{Aead, AeadCore, Key, KeyInit, Nonce, Payload}; use aes::Aes192; use aes_gcm::{Aes128Gcm, Aes256Gcm, AesGcm}; diff --git a/src/token/cose/crypto_impl/rustcrypto/encrypt/mod.rs b/src/token/cose/crypto_impl/rustcrypto/encrypt/mod.rs index 281b8e7..daa2910 100644 --- a/src/token/cose/crypto_impl/rustcrypto/encrypt/mod.rs +++ b/src/token/cose/crypto_impl/rustcrypto/encrypt/mod.rs @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2024 The NAMIB Project Developers. + * Licensed under the Apache License, Version 2.0 or the MIT license + * , at your + * option. This file may not be copied, modified, or distributed + * except according to those terms. + * + * SPDX-License-Identifier: MIT OR Apache-2.0 + */ use coset::iana; use rand::{CryptoRng, RngCore}; diff --git a/src/token/cose/crypto_impl/rustcrypto/key_distribution/aes_key_wrap.rs b/src/token/cose/crypto_impl/rustcrypto/key_distribution/aes_key_wrap.rs index e6ae32a..c76866b 100644 --- a/src/token/cose/crypto_impl/rustcrypto/key_distribution/aes_key_wrap.rs +++ b/src/token/cose/crypto_impl/rustcrypto/key_distribution/aes_key_wrap.rs @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2024 The NAMIB Project Developers. + * Licensed under the Apache License, Version 2.0 or the MIT license + * , at your + * option. This file may not be copied, modified, or distributed + * except according to those terms. + * + * SPDX-License-Identifier: MIT OR Apache-2.0 + */ use aes::cipher::{BlockCipher, BlockDecrypt, BlockEncrypt, BlockSizeUser}; use aes::{Aes128, Aes192, Aes256}; use aes_kw::Kek; diff --git a/src/token/cose/crypto_impl/rustcrypto/key_distribution/mod.rs b/src/token/cose/crypto_impl/rustcrypto/key_distribution/mod.rs index 7c276eb..589f8b3 100644 --- a/src/token/cose/crypto_impl/rustcrypto/key_distribution/mod.rs +++ b/src/token/cose/crypto_impl/rustcrypto/key_distribution/mod.rs @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2024 The NAMIB Project Developers. + * Licensed under the Apache License, Version 2.0 or the MIT license + * , at your + * option. This file may not be copied, modified, or distributed + * except according to those terms. + * + * SPDX-License-Identifier: MIT OR Apache-2.0 + */ use coset::iana; use rand::{CryptoRng, RngCore}; diff --git a/src/token/cose/crypto_impl/rustcrypto/mac/hmac.rs b/src/token/cose/crypto_impl/rustcrypto/mac/hmac.rs index 74876ba..3c58f99 100644 --- a/src/token/cose/crypto_impl/rustcrypto/mac/hmac.rs +++ b/src/token/cose/crypto_impl/rustcrypto/mac/hmac.rs @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2024 The NAMIB Project Developers. + * Licensed under the Apache License, Version 2.0 or the MIT license + * , at your + * option. This file may not be copied, modified, or distributed + * except according to those terms. + * + * SPDX-License-Identifier: MIT OR Apache-2.0 + */ use coset::{iana, Algorithm}; use digest::{FixedOutput, Mac, MacMarker, Update}; use hmac::Hmac; diff --git a/src/token/cose/crypto_impl/rustcrypto/mac/mod.rs b/src/token/cose/crypto_impl/rustcrypto/mac/mod.rs index 78a47c7..d0e3805 100644 --- a/src/token/cose/crypto_impl/rustcrypto/mac/mod.rs +++ b/src/token/cose/crypto_impl/rustcrypto/mac/mod.rs @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2024 The NAMIB Project Developers. + * Licensed under the Apache License, Version 2.0 or the MIT license + * , at your + * option. This file may not be copied, modified, or distributed + * except according to those terms. + * + * SPDX-License-Identifier: MIT OR Apache-2.0 + */ use coset::iana::Algorithm; use crate::error::CoseCipherError; diff --git a/src/token/cose/crypto_impl/rustcrypto/mod.rs b/src/token/cose/crypto_impl/rustcrypto/mod.rs index 2b89b99..7f7ffd4 100644 --- a/src/token/cose/crypto_impl/rustcrypto/mod.rs +++ b/src/token/cose/crypto_impl/rustcrypto/mod.rs @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2024 The NAMIB Project Developers. + * Licensed under the Apache License, Version 2.0 or the MIT license + * , at your + * option. This file may not be copied, modified, or distributed + * except according to those terms. + * + * SPDX-License-Identifier: MIT OR Apache-2.0 + */ use rand::{CryptoRng, RngCore}; use strum_macros::Display; diff --git a/src/token/cose/crypto_impl/rustcrypto/sign/ecdsa.rs b/src/token/cose/crypto_impl/rustcrypto/sign/ecdsa.rs index 15a8db8..03a7218 100644 --- a/src/token/cose/crypto_impl/rustcrypto/sign/ecdsa.rs +++ b/src/token/cose/crypto_impl/rustcrypto/sign/ecdsa.rs @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2024 The NAMIB Project Developers. + * Licensed under the Apache License, Version 2.0 or the MIT license + * , at your + * option. This file may not be copied, modified, or distributed + * except according to those terms. + * + * SPDX-License-Identifier: MIT OR Apache-2.0 + */ use core::ops::Add; use coset::{iana, Algorithm}; diff --git a/src/token/cose/crypto_impl/rustcrypto/sign/mod.rs b/src/token/cose/crypto_impl/rustcrypto/sign/mod.rs index d1f3ffc..46b5aec 100644 --- a/src/token/cose/crypto_impl/rustcrypto/sign/mod.rs +++ b/src/token/cose/crypto_impl/rustcrypto/sign/mod.rs @@ -1,3 +1,13 @@ +/* + * Copyright (c) 2024 The NAMIB Project Developers. + * Licensed under the Apache License, Version 2.0 or the MIT license + * , at your + * option. This file may not be copied, modified, or distributed + * except according to those terms. + * + * SPDX-License-Identifier: MIT OR Apache-2.0 + */ use coset::iana; use rand::{CryptoRng, RngCore};