Adding dual license (#11)
This commit is contained in:
+1
-1
@@ -26,5 +26,5 @@ disclosure of security bugs. In those cases, please go through the process
|
|||||||
outlined on that page and do not file a public issue.
|
outlined on that page and do not file a public issue.
|
||||||
|
|
||||||
## License
|
## License
|
||||||
By contributing to opaque-ke, you agree that your contributions will be
|
By contributing to voprf, you agree that your contributions will be
|
||||||
licensed under the LICENSE file in the root directory of this source tree.
|
licensed under the LICENSE file in the root directory of this source tree.
|
||||||
|
|||||||
@@ -174,28 +174,3 @@ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|||||||
of your accepting any such warranty or additional liability.
|
of your accepting any such warranty or additional liability.
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
|
||||||
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
||||||
replaced with your own identifying information. (Don't include
|
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
|
||||||
comment syntax for the file format. We also recommend that a
|
|
||||||
file or class name and description of purpose be included on the
|
|
||||||
same "printed page" as the copyright notice for easier
|
|
||||||
identification within third-party archives.
|
|
||||||
|
|
||||||
Copyright [yyyy] [name of copyright owner]
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
||||||
|
|||||||
+4
-2
@@ -1,7 +1,9 @@
|
|||||||
// Copyright (c) Facebook, Inc. and its affiliates.
|
// Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
//
|
//
|
||||||
// This source code is licensed under the MIT license found in the
|
// This source code is licensed under both the MIT license found in the
|
||||||
// LICENSE file in the root directory of this source tree.
|
// LICENSE-MIT file in the root directory of this source tree and the Apache
|
||||||
|
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
|
||||||
|
// of this source tree.
|
||||||
|
|
||||||
//! Defines the CipherSuite trait to specify the underlying primitives for VOPRF
|
//! Defines the CipherSuite trait to specify the underlying primitives for VOPRF
|
||||||
|
|
||||||
|
|||||||
+4
-2
@@ -1,7 +1,9 @@
|
|||||||
// Copyright (c) Facebook, Inc. and its affiliates.
|
// Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
//
|
//
|
||||||
// This source code is licensed under the MIT license found in the
|
// This source code is licensed under both the MIT license found in the
|
||||||
// LICENSE file in the root directory of this source tree.
|
// LICENSE-MIT file in the root directory of this source tree and the Apache
|
||||||
|
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
|
||||||
|
// of this source tree.
|
||||||
|
|
||||||
//! A list of error types which are produced during an execution of the protocol
|
//! A list of error types which are produced during an execution of the protocol
|
||||||
use core::fmt::Debug;
|
use core::fmt::Debug;
|
||||||
|
|||||||
+4
-2
@@ -1,7 +1,9 @@
|
|||||||
// Copyright (c) Facebook, Inc. and its affiliates.
|
// Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
//
|
//
|
||||||
// This source code is licensed under the MIT license found in the
|
// This source code is licensed under both the MIT license found in the
|
||||||
// LICENSE file in the root directory of this source tree.
|
// LICENSE-MIT file in the root directory of this source tree and the Apache
|
||||||
|
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
|
||||||
|
// of this source tree.
|
||||||
|
|
||||||
use crate::errors::InternalError;
|
use crate::errors::InternalError;
|
||||||
use crate::hash::Hash;
|
use crate::hash::Hash;
|
||||||
|
|||||||
+4
-2
@@ -1,7 +1,9 @@
|
|||||||
// Copyright (c) Facebook, Inc. and its affiliates.
|
// Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
//
|
//
|
||||||
// This source code is licensed under the MIT license found in the
|
// This source code is licensed under both the MIT license found in the
|
||||||
// LICENSE file in the root directory of this source tree.
|
// LICENSE-MIT file in the root directory of this source tree and the Apache
|
||||||
|
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
|
||||||
|
// of this source tree.
|
||||||
|
|
||||||
//! Defines the Group trait to specify the underlying prime order group used in
|
//! Defines the Group trait to specify the underlying prime order group used in
|
||||||
//! OPAQUE's OPRF
|
//! OPAQUE's OPRF
|
||||||
|
|||||||
+4
-2
@@ -1,7 +1,9 @@
|
|||||||
// Copyright (c) Facebook, Inc. and its affiliates.
|
// Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
//
|
//
|
||||||
// This source code is licensed under the MIT license found in the
|
// This source code is licensed under both the MIT license found in the
|
||||||
// LICENSE file in the root directory of this source tree.
|
// LICENSE-MIT file in the root directory of this source tree and the Apache
|
||||||
|
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
|
||||||
|
// of this source tree.
|
||||||
|
|
||||||
#![allow(
|
#![allow(
|
||||||
clippy::borrow_interior_mutable_const,
|
clippy::borrow_interior_mutable_const,
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
// Copyright (c) Facebook, Inc. and its affiliates.
|
// Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
//
|
//
|
||||||
// This source code is licensed under the MIT license found in the
|
// This source code is licensed under both the MIT license found in the
|
||||||
// LICENSE file in the root directory of this source tree.
|
// LICENSE-MIT file in the root directory of this source tree and the Apache
|
||||||
|
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
|
||||||
|
// of this source tree.
|
||||||
|
|
||||||
use super::Group;
|
use super::Group;
|
||||||
use crate::errors::InternalError;
|
use crate::errors::InternalError;
|
||||||
|
|||||||
+4
-2
@@ -1,7 +1,9 @@
|
|||||||
// Copyright (c) Facebook, Inc. and its affiliates.
|
// Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
//
|
//
|
||||||
// This source code is licensed under the MIT license found in the
|
// This source code is licensed under both the MIT license found in the
|
||||||
// LICENSE file in the root directory of this source tree.
|
// LICENSE-MIT file in the root directory of this source tree and the Apache
|
||||||
|
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
|
||||||
|
// of this source tree.
|
||||||
|
|
||||||
//! Includes a series of tests for the group implementations
|
//! Includes a series of tests for the group implementations
|
||||||
|
|
||||||
|
|||||||
+4
-2
@@ -1,7 +1,9 @@
|
|||||||
// Copyright (c) Facebook, Inc. and its affiliates.
|
// Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
//
|
//
|
||||||
// This source code is licensed under the MIT license found in the
|
// This source code is licensed under both the MIT license found in the
|
||||||
// LICENSE file in the root directory of this source tree.
|
// LICENSE-MIT file in the root directory of this source tree and the Apache
|
||||||
|
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
|
||||||
|
// of this source tree.
|
||||||
|
|
||||||
//! A convenience trait for digest bounds used throughout the library
|
//! A convenience trait for digest bounds used throughout the library
|
||||||
|
|
||||||
|
|||||||
+4
-2
@@ -1,7 +1,9 @@
|
|||||||
// Copyright (c) Facebook, Inc. and its affiliates.
|
// Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
//
|
//
|
||||||
// This source code is licensed under the MIT license found in the
|
// This source code is licensed under both the MIT license found in the
|
||||||
// LICENSE file in the root directory of this source tree.
|
// LICENSE-MIT file in the root directory of this source tree and the Apache
|
||||||
|
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
|
||||||
|
// of this source tree.
|
||||||
|
|
||||||
//! An implementation of a verifiable oblivious pseudorandom function (VOPRF)
|
//! An implementation of a verifiable oblivious pseudorandom function (VOPRF)
|
||||||
//!
|
//!
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
// Copyright (c) Facebook, Inc. and its affiliates.
|
// Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
//
|
//
|
||||||
// This source code is licensed under the MIT license found in the
|
// This source code is licensed under both the MIT license found in the
|
||||||
// LICENSE file in the root directory of this source tree.
|
// LICENSE-MIT file in the root directory of this source tree and the Apache
|
||||||
|
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
|
||||||
|
// of this source tree.
|
||||||
|
|
||||||
//! Handles the serialization of each of the components used
|
//! Handles the serialization of each of the components used
|
||||||
//! in the VOPRF protocol
|
//! in the VOPRF protocol
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
// Copyright (c) Facebook, Inc. and its affiliates.
|
// Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
//
|
//
|
||||||
// This source code is licensed under the MIT license found in the
|
// This source code is licensed under both the MIT license found in the
|
||||||
// LICENSE file in the root directory of this source tree.
|
// LICENSE-MIT file in the root directory of this source tree and the Apache
|
||||||
|
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
|
||||||
|
// of this source tree.
|
||||||
|
|
||||||
use alloc::vec::Vec;
|
use alloc::vec::Vec;
|
||||||
use core::cmp::min;
|
use core::cmp::min;
|
||||||
|
|||||||
+4
-2
@@ -1,7 +1,9 @@
|
|||||||
// Copyright (c) Facebook, Inc. and its affiliates.
|
// Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
//
|
//
|
||||||
// This source code is licensed under the MIT license found in the
|
// This source code is licensed under both the MIT license found in the
|
||||||
// LICENSE file in the root directory of this source tree.
|
// LICENSE-MIT file in the root directory of this source tree and the Apache
|
||||||
|
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
|
||||||
|
// of this source tree.
|
||||||
|
|
||||||
mod mock_rng;
|
mod mock_rng;
|
||||||
mod parser;
|
mod parser;
|
||||||
|
|||||||
+4
-2
@@ -1,7 +1,9 @@
|
|||||||
// Copyright (c) Facebook, Inc. and its affiliates.
|
// Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
//
|
//
|
||||||
// This source code is licensed under the MIT license found in the
|
// This source code is licensed under both the MIT license found in the
|
||||||
// LICENSE file in the root directory of this source tree.
|
// LICENSE-MIT file in the root directory of this source tree and the Apache
|
||||||
|
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
|
||||||
|
// of this source tree.
|
||||||
|
|
||||||
use alloc::string::String;
|
use alloc::string::String;
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
// Copyright (c) Facebook, Inc. and its affiliates.
|
// Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
//
|
//
|
||||||
// This source code is licensed under the MIT license found in the
|
// This source code is licensed under both the MIT license found in the
|
||||||
// LICENSE file in the root directory of this source tree.
|
// LICENSE-MIT file in the root directory of this source tree and the Apache
|
||||||
|
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
|
||||||
|
// of this source tree.
|
||||||
|
|
||||||
use crate::{
|
use crate::{
|
||||||
ciphersuite::CipherSuite,
|
ciphersuite::CipherSuite,
|
||||||
|
|||||||
@@ -1,7 +1,9 @@
|
|||||||
// Copyright (c) Facebook, Inc. and its affiliates.
|
// Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
//
|
//
|
||||||
// This source code is licensed under the MIT license found in the
|
// This source code is licensed under both the MIT license found in the
|
||||||
// LICENSE file in the root directory of this source tree.
|
// LICENSE-MIT file in the root directory of this source tree and the Apache
|
||||||
|
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
|
||||||
|
// of this source tree.
|
||||||
|
|
||||||
//! The VOPRF test vectors taken from:
|
//! The VOPRF test vectors taken from:
|
||||||
//! https://github.com/cfrg/draft-irtf-cfrg-voprf/blob/master/draft-irtf-cfrg-voprf.md
|
//! https://github.com/cfrg/draft-irtf-cfrg-voprf/blob/master/draft-irtf-cfrg-voprf.md
|
||||||
|
|||||||
+4
-2
@@ -1,7 +1,9 @@
|
|||||||
// Copyright (c) Facebook, Inc. and its affiliates.
|
// Copyright (c) Facebook, Inc. and its affiliates.
|
||||||
//
|
//
|
||||||
// This source code is licensed under the MIT license found in the
|
// This source code is licensed under both the MIT license found in the
|
||||||
// LICENSE file in the root directory of this source tree.
|
// LICENSE-MIT file in the root directory of this source tree and the Apache
|
||||||
|
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
|
||||||
|
// of this source tree.
|
||||||
|
|
||||||
//! Contains the main VOPRF API
|
//! Contains the main VOPRF API
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user