From 11b1ca6b6bc21610f8991f5fc5e109d31f0c1ac9 Mon Sep 17 00:00:00 2001 From: Kevin Lewi Date: Sun, 21 May 2023 17:57:02 -0700 Subject: [PATCH] Updating dual-license language --- .cargo/license.rs | 8 ++++---- CONTRIBUTING.md | 3 ++- LICENSE | 12 ------------ README.md | 4 +++- benches/opaque.rs | 8 ++++---- examples/digital_locker.rs | 8 ++++---- examples/simple_login.rs | 8 ++++---- scripts/digital_locker.exp | 9 ++++++--- scripts/simple_login.exp | 9 ++++++--- src/ciphersuite.rs | 8 ++++---- src/envelope.rs | 8 ++++---- src/errors.rs | 8 ++++---- src/hash.rs | 8 ++++---- src/key_exchange/group/curve25519.rs | 8 ++++---- src/key_exchange/group/elliptic_curve.rs | 8 ++++---- src/key_exchange/group/mod.rs | 8 ++++---- src/key_exchange/group/ristretto255.rs | 8 ++++---- src/key_exchange/mod.rs | 8 ++++---- src/key_exchange/traits.rs | 8 ++++---- src/key_exchange/tripledh.rs | 8 ++++---- src/keypair.rs | 8 ++++---- src/ksf.rs | 8 ++++---- src/lib.rs | 8 ++++---- src/messages.rs | 8 ++++---- src/opaque.rs | 8 ++++---- src/serialization/mod.rs | 8 ++++---- src/serialization/tests.rs | 8 ++++---- src/tests/full_test.rs | 8 ++++---- src/tests/mock_rng.rs | 8 ++++---- src/tests/mod.rs | 8 ++++---- src/tests/opaque_vectors.rs | 8 ++++---- src/tests/parser.rs | 8 ++++---- src/tests/test_opaque_vectors.rs | 8 ++++---- src/util.rs | 8 ++++---- 34 files changed, 133 insertions(+), 136 deletions(-) delete mode 100644 LICENSE diff --git a/.cargo/license.rs b/.cargo/license.rs index 3fa8d9fc..7feb10ce 100644 --- a/.cargo/license.rs +++ b/.cargo/license.rs @@ -1,6 +1,6 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // -// This source code is licensed under both the MIT license found in the -// LICENSE-MIT file in the root directory of this source tree and the Apache +// This source code is dual-licensed under either the MIT license found in the +// LICENSE-MIT file in the root directory of this source tree or the Apache // License, Version 2.0 found in the LICENSE-APACHE file in the root directory -// of this source tree. +// of this source tree. You may select, at your option, one of the above-listed licenses. diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f4043ae6..145a05a4 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -27,4 +27,5 @@ outlined on that page and do not file a public issue. ## License By contributing to opaque-ke, you agree that your contributions will be -licensed under the LICENSE file in the root directory of this source tree. +licensed under both the LICENSE-MIT and LICENSE-APACHE files in the root +directory of this source tree. diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 09250ca8..00000000 --- a/LICENSE +++ /dev/null @@ -1,12 +0,0 @@ -## License - -Licensed under either of - * Apache License, Version 2.0 ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0) - * MIT license ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT) -at your option. - -### Contribution - -Unless you explicitly state otherwise, any contribution intentionally submitted -for inclusion in the work by you, as defined in the Apache-2.0 license, shall -be dual licensed as above, without any additional terms or conditions. diff --git a/README.md b/README.md index 89d69994..3a711f53 100644 --- a/README.md +++ b/README.md @@ -60,4 +60,6 @@ improvements to the library. License ------- -This project is [licensed](./LICENSE) under either Apache 2.0 or MIT, at your option. +This project is dual-licensed under either the [MIT license](./LICENSE-MIT) +or the [Apache License, Version 2.0](./LICENSE-APACHE). +You may select, at your option, one of the above-listed licenses. diff --git a/benches/opaque.rs b/benches/opaque.rs index 4cb76ef7..385184ec 100644 --- a/benches/opaque.rs +++ b/benches/opaque.rs @@ -1,9 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // -// This source code is licensed under both the MIT license found in the -// LICENSE-MIT file in the root directory of this source tree and the Apache +// This source code is dual-licensed under either the MIT license found in the +// LICENSE-MIT file in the root directory of this source tree or the Apache // License, Version 2.0 found in the LICENSE-APACHE file in the root directory -// of this source tree. +// of this source tree. You may select, at your option, one of the above-listed licenses. #[macro_use] extern crate criterion; diff --git a/examples/digital_locker.rs b/examples/digital_locker.rs index c1a8d92c..9aeed87f 100644 --- a/examples/digital_locker.rs +++ b/examples/digital_locker.rs @@ -1,9 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // -// This source code is licensed under both the MIT license found in the -// LICENSE-MIT file in the root directory of this source tree and the Apache +// This source code is dual-licensed under either the MIT license found in the +// LICENSE-MIT file in the root directory of this source tree or the Apache // License, Version 2.0 found in the LICENSE-APACHE file in the root directory -// of this source tree. +// of this source tree. You may select, at your option, one of the above-listed licenses. //! Demonstrates an implementation of a server-side secured digital locker using //! the client's OPAQUE export key, over a command-line interface diff --git a/examples/simple_login.rs b/examples/simple_login.rs index 7e82c52d..de54ef61 100644 --- a/examples/simple_login.rs +++ b/examples/simple_login.rs @@ -1,9 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // -// This source code is licensed under both the MIT license found in the -// LICENSE-MIT file in the root directory of this source tree and the Apache +// This source code is dual-licensed under either the MIT license found in the +// LICENSE-MIT file in the root directory of this source tree or the Apache // License, Version 2.0 found in the LICENSE-APACHE file in the root directory -// of this source tree. +// of this source tree. You may select, at your option, one of the above-listed licenses. //! Demonstrates a simple client-server password-based login protocol using //! OPAQUE, over a command-line interface diff --git a/scripts/digital_locker.exp b/scripts/digital_locker.exp index c36c8ac7..8e3cbb31 100644 --- a/scripts/digital_locker.exp +++ b/scripts/digital_locker.exp @@ -1,8 +1,11 @@ #!/bin/expect -f -# Copyright (c) Facebook, Inc. and its affiliates. + +# Copyright (c) Meta Platforms, Inc. and affiliates. # -# This source code is licensed under the MIT license found in the -# LICENSE file in the root directory of this source tree. +# This source code is dual-licensed under either the MIT license found in the +# LICENSE-MIT file in the root directory of this source tree or the Apache +# License, Version 2.0 found in the LICENSE-APACHE file in the root directory +# of this source tree. You may select, at your option, one of the above-listed licenses. set timeout 1 spawn cargo run --example digital_locker diff --git a/scripts/simple_login.exp b/scripts/simple_login.exp index c112a628..075d1e09 100644 --- a/scripts/simple_login.exp +++ b/scripts/simple_login.exp @@ -1,8 +1,11 @@ #!/bin/expect -f -# Copyright (c) Facebook, Inc. and its affiliates. + +# Copyright (c) Meta Platforms, Inc. and affiliates. # -# This source code is licensed under the MIT license found in the -# LICENSE file in the root directory of this source tree. +# This source code is dual-licensed under either the MIT license found in the +# LICENSE-MIT file in the root directory of this source tree or the Apache +# License, Version 2.0 found in the LICENSE-APACHE file in the root directory +# of this source tree. You may select, at your option, one of the above-listed licenses. set timeout 1 spawn cargo run --example simple_login diff --git a/src/ciphersuite.rs b/src/ciphersuite.rs index c6143793..8a88ea7b 100644 --- a/src/ciphersuite.rs +++ b/src/ciphersuite.rs @@ -1,9 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // -// This source code is licensed under both the MIT license found in the -// LICENSE-MIT file in the root directory of this source tree and the Apache +// This source code is dual-licensed under either the MIT license found in the +// LICENSE-MIT file in the root directory of this source tree or the Apache // License, Version 2.0 found in the LICENSE-APACHE file in the root directory -// of this source tree. +// of this source tree. You may select, at your option, one of the above-listed licenses. //! Defines the CipherSuite trait to specify the underlying primitives for //! OPAQUE diff --git a/src/envelope.rs b/src/envelope.rs index 5c08ed02..b640ebbd 100644 --- a/src/envelope.rs +++ b/src/envelope.rs @@ -1,9 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // -// This source code is licensed under both the MIT license found in the -// LICENSE-MIT file in the root directory of this source tree and the Apache +// This source code is dual-licensed under either the MIT license found in the +// LICENSE-MIT file in the root directory of this source tree or the Apache // License, Version 2.0 found in the LICENSE-APACHE file in the root directory -// of this source tree. +// of this source tree. You may select, at your option, one of the above-listed licenses. use core::convert::TryFrom; use core::ops::Add; diff --git a/src/errors.rs b/src/errors.rs index 1780c0e8..7e17dd72 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -1,9 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // -// This source code is licensed under both the MIT license found in the -// LICENSE-MIT file in the root directory of this source tree and the Apache +// This source code is dual-licensed under either the MIT license found in the +// LICENSE-MIT file in the root directory of this source tree or the Apache // License, Version 2.0 found in the LICENSE-APACHE file in the root directory -// of this source tree. +// of this source tree. You may select, at your option, one of the above-listed licenses. //! A list of error types which are produced during an execution of the protocol use core::convert::Infallible; diff --git a/src/hash.rs b/src/hash.rs index 20fdfc98..c59047c2 100644 --- a/src/hash.rs +++ b/src/hash.rs @@ -1,9 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // -// This source code is licensed under both the MIT license found in the -// LICENSE-MIT file in the root directory of this source tree and the Apache +// This source code is dual-licensed under either the MIT license found in the +// LICENSE-MIT file in the root directory of this source tree or the Apache // License, Version 2.0 found in the LICENSE-APACHE file in the root directory -// of this source tree. +// of this source tree. You may select, at your option, one of the above-listed licenses. //! A convenience trait for digest bounds used throughout the library diff --git a/src/key_exchange/group/curve25519.rs b/src/key_exchange/group/curve25519.rs index 8a1094ce..17ddd9b1 100644 --- a/src/key_exchange/group/curve25519.rs +++ b/src/key_exchange/group/curve25519.rs @@ -1,9 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // -// This source code is licensed under both the MIT license found in the -// LICENSE-MIT file in the root directory of this source tree and the Apache +// This source code is dual-licensed under either the MIT license found in the +// LICENSE-MIT file in the root directory of this source tree or the Apache // License, Version 2.0 found in the LICENSE-APACHE file in the root directory -// of this source tree. +// of this source tree. You may select, at your option, one of the above-listed licenses. //! Key Exchange group implementation for Curve25519 diff --git a/src/key_exchange/group/elliptic_curve.rs b/src/key_exchange/group/elliptic_curve.rs index f2a1b5ee..9cd6b374 100644 --- a/src/key_exchange/group/elliptic_curve.rs +++ b/src/key_exchange/group/elliptic_curve.rs @@ -1,9 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // -// This source code is licensed under both the MIT license found in the -// LICENSE-MIT file in the root directory of this source tree and the Apache +// This source code is dual-licensed under either the MIT license found in the +// LICENSE-MIT file in the root directory of this source tree or the Apache // License, Version 2.0 found in the LICENSE-APACHE file in the root directory -// of this source tree. +// of this source tree. You may select, at your option, one of the above-listed licenses. use digest::core_api::BlockSizeUser; use digest::{FixedOutput, HashMarker}; diff --git a/src/key_exchange/group/mod.rs b/src/key_exchange/group/mod.rs index b9a80157..95933ff8 100644 --- a/src/key_exchange/group/mod.rs +++ b/src/key_exchange/group/mod.rs @@ -1,9 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // -// This source code is licensed under both the MIT license found in the -// LICENSE-MIT file in the root directory of this source tree and the Apache +// This source code is dual-licensed under either the MIT license found in the +// LICENSE-MIT file in the root directory of this source tree or the Apache // License, Version 2.0 found in the LICENSE-APACHE file in the root directory -// of this source tree. +// of this source tree. You may select, at your option, one of the above-listed licenses. //! Includes the KeGroup trait and definitions for the key exchange groups diff --git a/src/key_exchange/group/ristretto255.rs b/src/key_exchange/group/ristretto255.rs index abacca82..7c64449c 100644 --- a/src/key_exchange/group/ristretto255.rs +++ b/src/key_exchange/group/ristretto255.rs @@ -1,9 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // -// This source code is licensed under both the MIT license found in the -// LICENSE-MIT file in the root directory of this source tree and the Apache +// This source code is dual-licensed under either the MIT license found in the +// LICENSE-MIT file in the root directory of this source tree or the Apache // License, Version 2.0 found in the LICENSE-APACHE file in the root directory -// of this source tree. +// of this source tree. You may select, at your option, one of the above-listed licenses. //! Key Exchange group implementation for ristretto255 diff --git a/src/key_exchange/mod.rs b/src/key_exchange/mod.rs index a4cfd515..49e148bc 100644 --- a/src/key_exchange/mod.rs +++ b/src/key_exchange/mod.rs @@ -1,9 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // -// This source code is licensed under both the MIT license found in the -// LICENSE-MIT file in the root directory of this source tree and the Apache +// This source code is dual-licensed under either the MIT license found in the +// LICENSE-MIT file in the root directory of this source tree or the Apache // License, Version 2.0 found in the LICENSE-APACHE file in the root directory -// of this source tree. +// of this source tree. You may select, at your option, one of the above-listed licenses. //! Includes instantiations of key exchange protocols used in the login step for //! OPAQUE diff --git a/src/key_exchange/traits.rs b/src/key_exchange/traits.rs index 2cf95265..299187a5 100644 --- a/src/key_exchange/traits.rs +++ b/src/key_exchange/traits.rs @@ -1,9 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // -// This source code is licensed under both the MIT license found in the -// LICENSE-MIT file in the root directory of this source tree and the Apache +// This source code is dual-licensed under either the MIT license found in the +// LICENSE-MIT file in the root directory of this source tree or the Apache // License, Version 2.0 found in the LICENSE-APACHE file in the root directory -// of this source tree. +// of this source tree. You may select, at your option, one of the above-listed licenses. use digest::core_api::BlockSizeUser; use digest::Output; diff --git a/src/key_exchange/tripledh.rs b/src/key_exchange/tripledh.rs index 1335d358..74b81b17 100644 --- a/src/key_exchange/tripledh.rs +++ b/src/key_exchange/tripledh.rs @@ -1,9 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // -// This source code is licensed under both the MIT license found in the -// LICENSE-MIT file in the root directory of this source tree and the Apache +// This source code is dual-licensed under either the MIT license found in the +// LICENSE-MIT file in the root directory of this source tree or the Apache // License, Version 2.0 found in the LICENSE-APACHE file in the root directory -// of this source tree. +// of this source tree. You may select, at your option, one of the above-listed licenses. //! An implementation of the Triple Diffie-Hellman key exchange protocol use core::convert::TryFrom; diff --git a/src/keypair.rs b/src/keypair.rs index 9b06e8cc..3af07f2c 100644 --- a/src/keypair.rs +++ b/src/keypair.rs @@ -1,9 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // -// This source code is licensed under both the MIT license found in the -// LICENSE-MIT file in the root directory of this source tree and the Apache +// This source code is dual-licensed under either the MIT license found in the +// LICENSE-MIT file in the root directory of this source tree or the Apache // License, Version 2.0 found in the LICENSE-APACHE file in the root directory -// of this source tree. +// of this source tree. You may select, at your option, one of the above-listed licenses. //! Contains the keypair types that must be supplied for the OPAQUE API diff --git a/src/ksf.rs b/src/ksf.rs index 677c75cd..1e9ae811 100644 --- a/src/ksf.rs +++ b/src/ksf.rs @@ -1,9 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // -// This source code is licensed under both the MIT license found in the -// LICENSE-MIT file in the root directory of this source tree and the Apache +// This source code is dual-licensed under either the MIT license found in the +// LICENSE-MIT file in the root directory of this source tree or the Apache // License, Version 2.0 found in the LICENSE-APACHE file in the root directory -// of this source tree. +// of this source tree. You may select, at your option, one of the above-listed licenses. //! Trait specifying a key stretching function diff --git a/src/lib.rs b/src/lib.rs index 8a911cba..4ae065f3 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1,9 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // -// This source code is licensed under both the MIT license found in the -// LICENSE-MIT file in the root directory of this source tree and the Apache +// This source code is dual-licensed under either the MIT license found in the +// LICENSE-MIT file in the root directory of this source tree or the Apache // License, Version 2.0 found in the LICENSE-APACHE file in the root directory -// of this source tree. +// of this source tree. You may select, at your option, one of the above-listed licenses. //! An implementation of the OPAQUE asymmetric password authentication key //! exchange protocol diff --git a/src/messages.rs b/src/messages.rs index daca5bee..ef0d5e66 100644 --- a/src/messages.rs +++ b/src/messages.rs @@ -1,9 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // -// This source code is licensed under both the MIT license found in the -// LICENSE-MIT file in the root directory of this source tree and the Apache +// This source code is dual-licensed under either the MIT license found in the +// LICENSE-MIT file in the root directory of this source tree or the Apache // License, Version 2.0 found in the LICENSE-APACHE file in the root directory -// of this source tree. +// of this source tree. You may select, at your option, one of the above-listed licenses. //! Contains the messages used for OPAQUE diff --git a/src/opaque.rs b/src/opaque.rs index b9d21540..cdbaaf87 100644 --- a/src/opaque.rs +++ b/src/opaque.rs @@ -1,9 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // -// This source code is licensed under both the MIT license found in the -// LICENSE-MIT file in the root directory of this source tree and the Apache +// This source code is dual-licensed under either the MIT license found in the +// LICENSE-MIT file in the root directory of this source tree or the Apache // License, Version 2.0 found in the LICENSE-APACHE file in the root directory -// of this source tree. +// of this source tree. You may select, at your option, one of the above-listed licenses. //! Provides the main OPAQUE API diff --git a/src/serialization/mod.rs b/src/serialization/mod.rs index a5305087..7f377b2b 100644 --- a/src/serialization/mod.rs +++ b/src/serialization/mod.rs @@ -1,9 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // -// This source code is licensed under both the MIT license found in the -// LICENSE-MIT file in the root directory of this source tree and the Apache +// This source code is dual-licensed under either the MIT license found in the +// LICENSE-MIT file in the root directory of this source tree or the Apache // License, Version 2.0 found in the LICENSE-APACHE file in the root directory -// of this source tree. +// of this source tree. You may select, at your option, one of the above-listed licenses. use core::marker::PhantomData; diff --git a/src/serialization/tests.rs b/src/serialization/tests.rs index 58364807..67cdef19 100644 --- a/src/serialization/tests.rs +++ b/src/serialization/tests.rs @@ -1,9 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // -// This source code is licensed under both the MIT license found in the -// LICENSE-MIT file in the root directory of this source tree and the Apache +// This source code is dual-licensed under either the MIT license found in the +// LICENSE-MIT file in the root directory of this source tree or the Apache // License, Version 2.0 found in the LICENSE-APACHE file in the root directory -// of this source tree. +// of this source tree. You may select, at your option, one of the above-listed licenses. use core::ops::Add; use std::vec; diff --git a/src/tests/full_test.rs b/src/tests/full_test.rs index 59100792..ca101847 100644 --- a/src/tests/full_test.rs +++ b/src/tests/full_test.rs @@ -1,9 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // -// This source code is licensed under both the MIT license found in the -// LICENSE-MIT file in the root directory of this source tree and the Apache +// This source code is dual-licensed under either the MIT license found in the +// LICENSE-MIT file in the root directory of this source tree or the Apache // License, Version 2.0 found in the LICENSE-APACHE file in the root directory -// of this source tree. +// of this source tree. You may select, at your option, one of the above-listed licenses. #![allow(unsafe_code)] diff --git a/src/tests/mock_rng.rs b/src/tests/mock_rng.rs index 82ed310e..16756c25 100644 --- a/src/tests/mock_rng.rs +++ b/src/tests/mock_rng.rs @@ -1,9 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // -// This source code is licensed under both the MIT license found in the -// LICENSE-MIT file in the root directory of this source tree and the Apache +// This source code is dual-licensed under either the MIT license found in the +// LICENSE-MIT file in the root directory of this source tree or the Apache // License, Version 2.0 found in the LICENSE-APACHE file in the root directory -// of this source tree. +// of this source tree. You may select, at your option, one of the above-listed licenses. use core::cmp::min; use std::vec::Vec; diff --git a/src/tests/mod.rs b/src/tests/mod.rs index 94863d52..d4457480 100644 --- a/src/tests/mod.rs +++ b/src/tests/mod.rs @@ -1,9 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // -// This source code is licensed under both the MIT license found in the -// LICENSE-MIT file in the root directory of this source tree and the Apache +// This source code is dual-licensed under either the MIT license found in the +// LICENSE-MIT file in the root directory of this source tree or the Apache // License, Version 2.0 found in the LICENSE-APACHE file in the root directory -// of this source tree. +// of this source tree. You may select, at your option, one of the above-listed licenses. mod full_test; pub mod mock_rng; diff --git a/src/tests/opaque_vectors.rs b/src/tests/opaque_vectors.rs index 6eca93c6..7747419b 100644 --- a/src/tests/opaque_vectors.rs +++ b/src/tests/opaque_vectors.rs @@ -1,9 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // -// This source code is licensed under both the MIT license found in the -// LICENSE-MIT file in the root directory of this source tree and the Apache +// This source code is dual-licensed under either the MIT license found in the +// LICENSE-MIT file in the root directory of this source tree or the Apache // License, Version 2.0 found in the LICENSE-APACHE file in the root directory -// of this source tree. +// of this source tree. You may select, at your option, one of the above-listed licenses. //! The OPAQUE test vectors taken from https://github.com/cfrg/draft-irtf-cfrg-opaque/blob/master/draft-irtf-cfrg-opaque.md, //! which are presented in https://www.ietf.org/archive/id/draft-irtf-cfrg-opaque-08.txt diff --git a/src/tests/parser.rs b/src/tests/parser.rs index 6cff162d..3494663d 100644 --- a/src/tests/parser.rs +++ b/src/tests/parser.rs @@ -1,9 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // -// This source code is licensed under both the MIT license found in the -// LICENSE-MIT file in the root directory of this source tree and the Apache +// This source code is dual-licensed under either the MIT license found in the +// LICENSE-MIT file in the root directory of this source tree or the Apache // License, Version 2.0 found in the LICENSE-APACHE file in the root directory -// of this source tree. +// of this source tree. You may select, at your option, one of the above-listed licenses. use std::string::{String, ToString}; use std::vec::Vec; diff --git a/src/tests/test_opaque_vectors.rs b/src/tests/test_opaque_vectors.rs index 02a4cef7..c940a95f 100644 --- a/src/tests/test_opaque_vectors.rs +++ b/src/tests/test_opaque_vectors.rs @@ -1,9 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // -// This source code is licensed under both the MIT license found in the -// LICENSE-MIT file in the root directory of this source tree and the Apache +// This source code is dual-licensed under either the MIT license found in the +// LICENSE-MIT file in the root directory of this source tree or the Apache // License, Version 2.0 found in the LICENSE-APACHE file in the root directory -// of this source tree. +// of this source tree. You may select, at your option, one of the above-listed licenses. use core::ops::Add; use std::vec; diff --git a/src/util.rs b/src/util.rs index 2aaff7d9..94de4556 100644 --- a/src/util.rs +++ b/src/util.rs @@ -1,9 +1,9 @@ -// Copyright (c) Facebook, Inc. and its affiliates. +// Copyright (c) Meta Platforms, Inc. and affiliates. // -// This source code is licensed under both the MIT license found in the -// LICENSE-MIT file in the root directory of this source tree and the Apache +// This source code is dual-licensed under either the MIT license found in the +// LICENSE-MIT file in the root directory of this source tree or the Apache // License, Version 2.0 found in the LICENSE-APACHE file in the root directory -// of this source tree. +// of this source tree. You may select, at your option, one of the above-listed licenses. //! Utility functions.