File tree 34 files changed +162
-136
lines changed
34 files changed +162
-136
lines changed Original file line number Diff line number Diff line change 1
- // Copyright (c) Facebook , Inc. and its affiliates.
1
+ // Copyright (c) Meta Platforms , Inc. and affiliates.
2
2
//
3
- // This source code is licensed under both the MIT license found in the
4
- // LICENSE-MIT file in the root directory of this source tree and the Apache
3
+ // This source code is dual- licensed under either the MIT license found in the
4
+ // LICENSE-MIT file in the root directory of this source tree or the Apache
5
5
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
6
- // of this source tree.
6
+ // of this source tree. You may select, at your option, one of the above-listed
7
+ // licenses.
Original file line number Diff line number Diff line change @@ -27,4 +27,5 @@ outlined on that page and do not file a public issue.
27
27
28
28
## License
29
29
By contributing to opaque-ke, you agree that your contributions will be
30
- licensed under the LICENSE file in the root directory of this source tree.
30
+ licensed under both the LICENSE-MIT and LICENSE-APACHE files in the root
31
+ directory of this source tree.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -60,4 +60,6 @@ improvements to the library.
60
60
License
61
61
-------
62
62
63
- This project is [ licensed] ( ./LICENSE ) under either Apache 2.0 or MIT, at your option.
63
+ This project is dual-licensed under either the [ MIT license] ( ./LICENSE-MIT )
64
+ or the [ Apache License, Version 2.0] ( ./LICENSE-APACHE ) .
65
+ You may select, at your option, one of the above-listed licenses.
Original file line number Diff line number Diff line change 1
- // Copyright (c) Facebook , Inc. and its affiliates.
1
+ // Copyright (c) Meta Platforms , Inc. and affiliates.
2
2
//
3
- // This source code is licensed under both the MIT license found in the
4
- // LICENSE-MIT file in the root directory of this source tree and the Apache
3
+ // This source code is dual- licensed under either the MIT license found in the
4
+ // LICENSE-MIT file in the root directory of this source tree or the Apache
5
5
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
6
- // of this source tree.
6
+ // of this source tree. You may select, at your option, one of the above-listed
7
+ // licenses.
7
8
8
9
#[ macro_use]
9
10
extern crate criterion;
Original file line number Diff line number Diff line change 1
- // Copyright (c) Facebook , Inc. and its affiliates.
1
+ // Copyright (c) Meta Platforms , Inc. and affiliates.
2
2
//
3
- // This source code is licensed under both the MIT license found in the
4
- // LICENSE-MIT file in the root directory of this source tree and the Apache
3
+ // This source code is dual- licensed under either the MIT license found in the
4
+ // LICENSE-MIT file in the root directory of this source tree or the Apache
5
5
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
6
- // of this source tree.
6
+ // of this source tree. You may select, at your option, one of the above-listed
7
+ // licenses.
7
8
8
9
//! Demonstrates an implementation of a server-side secured digital locker using
9
10
//! the client's OPAQUE export key, over a command-line interface
Original file line number Diff line number Diff line change 1
- // Copyright (c) Facebook , Inc. and its affiliates.
1
+ // Copyright (c) Meta Platforms , Inc. and affiliates.
2
2
//
3
- // This source code is licensed under both the MIT license found in the
4
- // LICENSE-MIT file in the root directory of this source tree and the Apache
3
+ // This source code is dual- licensed under either the MIT license found in the
4
+ // LICENSE-MIT file in the root directory of this source tree or the Apache
5
5
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
6
- // of this source tree.
6
+ // of this source tree. You may select, at your option, one of the above-listed
7
+ // licenses.
7
8
8
9
//! Demonstrates a simple client-server password-based login protocol using
9
10
//! OPAQUE, over a command-line interface
Original file line number Diff line number Diff line change 1
1
#!/bin/expect -f
2
- # Copyright (c) Facebook, Inc. and its affiliates.
2
+
3
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
3
4
#
4
- # This source code is licensed under the MIT license found in the
5
- # LICENSE file in the root directory of this source tree.
5
+ # This source code is dual-licensed under either the MIT license found in the
6
+ # LICENSE-MIT file in the root directory of this source tree or the Apache
7
+ # License, Version 2.0 found in the LICENSE-APACHE file in the root directory
8
+ # of this source tree. You may select, at your option, one of the above-listed licenses.
6
9
7
10
set timeout 1
8
11
spawn cargo run --example digital_locker
Original file line number Diff line number Diff line change 1
1
#!/bin/expect -f
2
- # Copyright (c) Facebook, Inc. and its affiliates.
2
+
3
+ # Copyright (c) Meta Platforms, Inc. and affiliates.
3
4
#
4
- # This source code is licensed under the MIT license found in the
5
- # LICENSE file in the root directory of this source tree.
5
+ # This source code is dual-licensed under either the MIT license found in the
6
+ # LICENSE-MIT file in the root directory of this source tree or the Apache
7
+ # License, Version 2.0 found in the LICENSE-APACHE file in the root directory
8
+ # of this source tree. You may select, at your option, one of the above-listed licenses.
6
9
7
10
set timeout 1
8
11
spawn cargo run --example simple_login
Original file line number Diff line number Diff line change 1
- // Copyright (c) Facebook , Inc. and its affiliates.
1
+ // Copyright (c) Meta Platforms , Inc. and affiliates.
2
2
//
3
- // This source code is licensed under both the MIT license found in the
4
- // LICENSE-MIT file in the root directory of this source tree and the Apache
3
+ // This source code is dual- licensed under either the MIT license found in the
4
+ // LICENSE-MIT file in the root directory of this source tree or the Apache
5
5
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
6
- // of this source tree.
6
+ // of this source tree. You may select, at your option, one of the above-listed
7
+ // licenses.
7
8
8
9
//! Defines the CipherSuite trait to specify the underlying primitives for
9
10
//! OPAQUE
Original file line number Diff line number Diff line change 1
- // Copyright (c) Facebook , Inc. and its affiliates.
1
+ // Copyright (c) Meta Platforms , Inc. and affiliates.
2
2
//
3
- // This source code is licensed under both the MIT license found in the
4
- // LICENSE-MIT file in the root directory of this source tree and the Apache
3
+ // This source code is dual- licensed under either the MIT license found in the
4
+ // LICENSE-MIT file in the root directory of this source tree or the Apache
5
5
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
6
- // of this source tree.
6
+ // of this source tree. You may select, at your option, one of the above-listed
7
+ // licenses.
7
8
8
9
use core:: convert:: TryFrom ;
9
10
use core:: ops:: Add ;
Original file line number Diff line number Diff line change 1
- // Copyright (c) Facebook , Inc. and its affiliates.
1
+ // Copyright (c) Meta Platforms , Inc. and affiliates.
2
2
//
3
- // This source code is licensed under both the MIT license found in the
4
- // LICENSE-MIT file in the root directory of this source tree and the Apache
3
+ // This source code is dual- licensed under either the MIT license found in the
4
+ // LICENSE-MIT file in the root directory of this source tree or the Apache
5
5
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
6
- // of this source tree.
6
+ // of this source tree. You may select, at your option, one of the above-listed
7
+ // licenses.
7
8
8
9
//! A list of error types which are produced during an execution of the protocol
9
10
use core:: convert:: Infallible ;
Original file line number Diff line number Diff line change 1
- // Copyright (c) Facebook , Inc. and its affiliates.
1
+ // Copyright (c) Meta Platforms , Inc. and affiliates.
2
2
//
3
- // This source code is licensed under both the MIT license found in the
4
- // LICENSE-MIT file in the root directory of this source tree and the Apache
3
+ // This source code is dual- licensed under either the MIT license found in the
4
+ // LICENSE-MIT file in the root directory of this source tree or the Apache
5
5
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
6
- // of this source tree.
6
+ // of this source tree. You may select, at your option, one of the above-listed
7
+ // licenses.
7
8
8
9
//! A convenience trait for digest bounds used throughout the library
9
10
Original file line number Diff line number Diff line change 1
- // Copyright (c) Facebook , Inc. and its affiliates.
1
+ // Copyright (c) Meta Platforms , Inc. and affiliates.
2
2
//
3
- // This source code is licensed under both the MIT license found in the
4
- // LICENSE-MIT file in the root directory of this source tree and the Apache
3
+ // This source code is dual- licensed under either the MIT license found in the
4
+ // LICENSE-MIT file in the root directory of this source tree or the Apache
5
5
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
6
- // of this source tree.
6
+ // of this source tree. You may select, at your option, one of the above-listed
7
+ // licenses.
7
8
8
9
//! Key Exchange group implementation for Curve25519
9
10
Original file line number Diff line number Diff line change 1
- // Copyright (c) Facebook , Inc. and its affiliates.
1
+ // Copyright (c) Meta Platforms , Inc. and affiliates.
2
2
//
3
- // This source code is licensed under both the MIT license found in the
4
- // LICENSE-MIT file in the root directory of this source tree and the Apache
3
+ // This source code is dual- licensed under either the MIT license found in the
4
+ // LICENSE-MIT file in the root directory of this source tree or the Apache
5
5
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
6
- // of this source tree.
6
+ // of this source tree. You may select, at your option, one of the above-listed
7
+ // licenses.
7
8
8
9
use digest:: core_api:: BlockSizeUser ;
9
10
use digest:: { FixedOutput , HashMarker } ;
Original file line number Diff line number Diff line change 1
- // Copyright (c) Facebook , Inc. and its affiliates.
1
+ // Copyright (c) Meta Platforms , Inc. and affiliates.
2
2
//
3
- // This source code is licensed under both the MIT license found in the
4
- // LICENSE-MIT file in the root directory of this source tree and the Apache
3
+ // This source code is dual- licensed under either the MIT license found in the
4
+ // LICENSE-MIT file in the root directory of this source tree or the Apache
5
5
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
6
- // of this source tree.
6
+ // of this source tree. You may select, at your option, one of the above-listed
7
+ // licenses.
7
8
8
9
//! Includes the KeGroup trait and definitions for the key exchange groups
9
10
Original file line number Diff line number Diff line change 1
- // Copyright (c) Facebook , Inc. and its affiliates.
1
+ // Copyright (c) Meta Platforms , Inc. and affiliates.
2
2
//
3
- // This source code is licensed under both the MIT license found in the
4
- // LICENSE-MIT file in the root directory of this source tree and the Apache
3
+ // This source code is dual- licensed under either the MIT license found in the
4
+ // LICENSE-MIT file in the root directory of this source tree or the Apache
5
5
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
6
- // of this source tree.
6
+ // of this source tree. You may select, at your option, one of the above-listed
7
+ // licenses.
7
8
8
9
//! Key Exchange group implementation for ristretto255
9
10
Original file line number Diff line number Diff line change 1
- // Copyright (c) Facebook , Inc. and its affiliates.
1
+ // Copyright (c) Meta Platforms , Inc. and affiliates.
2
2
//
3
- // This source code is licensed under both the MIT license found in the
4
- // LICENSE-MIT file in the root directory of this source tree and the Apache
3
+ // This source code is dual- licensed under either the MIT license found in the
4
+ // LICENSE-MIT file in the root directory of this source tree or the Apache
5
5
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
6
- // of this source tree.
6
+ // of this source tree. You may select, at your option, one of the above-listed
7
+ // licenses.
7
8
8
9
//! Includes instantiations of key exchange protocols used in the login step for
9
10
//! OPAQUE
Original file line number Diff line number Diff line change 1
- // Copyright (c) Facebook , Inc. and its affiliates.
1
+ // Copyright (c) Meta Platforms , Inc. and affiliates.
2
2
//
3
- // This source code is licensed under both the MIT license found in the
4
- // LICENSE-MIT file in the root directory of this source tree and the Apache
3
+ // This source code is dual- licensed under either the MIT license found in the
4
+ // LICENSE-MIT file in the root directory of this source tree or the Apache
5
5
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
6
- // of this source tree.
6
+ // of this source tree. You may select, at your option, one of the above-listed
7
+ // licenses.
7
8
8
9
use digest:: core_api:: BlockSizeUser ;
9
10
use digest:: Output ;
Original file line number Diff line number Diff line change 1
- // Copyright (c) Facebook , Inc. and its affiliates.
1
+ // Copyright (c) Meta Platforms , Inc. and affiliates.
2
2
//
3
- // This source code is licensed under both the MIT license found in the
4
- // LICENSE-MIT file in the root directory of this source tree and the Apache
3
+ // This source code is dual- licensed under either the MIT license found in the
4
+ // LICENSE-MIT file in the root directory of this source tree or the Apache
5
5
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
6
- // of this source tree.
6
+ // of this source tree. You may select, at your option, one of the above-listed
7
+ // licenses.
7
8
8
9
//! An implementation of the Triple Diffie-Hellman key exchange protocol
9
10
use core:: convert:: TryFrom ;
Original file line number Diff line number Diff line change 1
- // Copyright (c) Facebook , Inc. and its affiliates.
1
+ // Copyright (c) Meta Platforms , Inc. and affiliates.
2
2
//
3
- // This source code is licensed under both the MIT license found in the
4
- // LICENSE-MIT file in the root directory of this source tree and the Apache
3
+ // This source code is dual- licensed under either the MIT license found in the
4
+ // LICENSE-MIT file in the root directory of this source tree or the Apache
5
5
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
6
- // of this source tree.
6
+ // of this source tree. You may select, at your option, one of the above-listed
7
+ // licenses.
7
8
8
9
//! Contains the keypair types that must be supplied for the OPAQUE API
9
10
Original file line number Diff line number Diff line change 1
- // Copyright (c) Facebook , Inc. and its affiliates.
1
+ // Copyright (c) Meta Platforms , Inc. and affiliates.
2
2
//
3
- // This source code is licensed under both the MIT license found in the
4
- // LICENSE-MIT file in the root directory of this source tree and the Apache
3
+ // This source code is dual- licensed under either the MIT license found in the
4
+ // LICENSE-MIT file in the root directory of this source tree or the Apache
5
5
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
6
- // of this source tree.
6
+ // of this source tree. You may select, at your option, one of the above-listed
7
+ // licenses.
7
8
8
9
//! Trait specifying a key stretching function
9
10
Original file line number Diff line number Diff line change 1
- // Copyright (c) Facebook , Inc. and its affiliates.
1
+ // Copyright (c) Meta Platforms , Inc. and affiliates.
2
2
//
3
- // This source code is licensed under both the MIT license found in the
4
- // LICENSE-MIT file in the root directory of this source tree and the Apache
3
+ // This source code is dual- licensed under either the MIT license found in the
4
+ // LICENSE-MIT file in the root directory of this source tree or the Apache
5
5
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
6
- // of this source tree.
6
+ // of this source tree. You may select, at your option, one of the above-listed
7
+ // licenses.
7
8
8
9
//! An implementation of the OPAQUE asymmetric password authentication key
9
10
//! exchange protocol
Original file line number Diff line number Diff line change 1
- // Copyright (c) Facebook , Inc. and its affiliates.
1
+ // Copyright (c) Meta Platforms , Inc. and affiliates.
2
2
//
3
- // This source code is licensed under both the MIT license found in the
4
- // LICENSE-MIT file in the root directory of this source tree and the Apache
3
+ // This source code is dual- licensed under either the MIT license found in the
4
+ // LICENSE-MIT file in the root directory of this source tree or the Apache
5
5
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
6
- // of this source tree.
6
+ // of this source tree. You may select, at your option, one of the above-listed
7
+ // licenses.
7
8
8
9
//! Contains the messages used for OPAQUE
9
10
Original file line number Diff line number Diff line change 1
- // Copyright (c) Facebook , Inc. and its affiliates.
1
+ // Copyright (c) Meta Platforms , Inc. and affiliates.
2
2
//
3
- // This source code is licensed under both the MIT license found in the
4
- // LICENSE-MIT file in the root directory of this source tree and the Apache
3
+ // This source code is dual- licensed under either the MIT license found in the
4
+ // LICENSE-MIT file in the root directory of this source tree or the Apache
5
5
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
6
- // of this source tree.
6
+ // of this source tree. You may select, at your option, one of the above-listed
7
+ // licenses.
7
8
8
9
//! Provides the main OPAQUE API
9
10
Original file line number Diff line number Diff line change 1
- // Copyright (c) Facebook , Inc. and its affiliates.
1
+ // Copyright (c) Meta Platforms , Inc. and affiliates.
2
2
//
3
- // This source code is licensed under both the MIT license found in the
4
- // LICENSE-MIT file in the root directory of this source tree and the Apache
3
+ // This source code is dual- licensed under either the MIT license found in the
4
+ // LICENSE-MIT file in the root directory of this source tree or the Apache
5
5
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
6
- // of this source tree.
6
+ // of this source tree. You may select, at your option, one of the above-listed
7
+ // licenses.
7
8
8
9
use core:: marker:: PhantomData ;
9
10
Original file line number Diff line number Diff line change 1
- // Copyright (c) Facebook , Inc. and its affiliates.
1
+ // Copyright (c) Meta Platforms , Inc. and affiliates.
2
2
//
3
- // This source code is licensed under both the MIT license found in the
4
- // LICENSE-MIT file in the root directory of this source tree and the Apache
3
+ // This source code is dual- licensed under either the MIT license found in the
4
+ // LICENSE-MIT file in the root directory of this source tree or the Apache
5
5
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
6
- // of this source tree.
6
+ // of this source tree. You may select, at your option, one of the above-listed
7
+ // licenses.
7
8
8
9
use core:: ops:: Add ;
9
10
use std:: vec;
Original file line number Diff line number Diff line change 1
- // Copyright (c) Facebook , Inc. and its affiliates.
1
+ // Copyright (c) Meta Platforms , Inc. and affiliates.
2
2
//
3
- // This source code is licensed under both the MIT license found in the
4
- // LICENSE-MIT file in the root directory of this source tree and the Apache
3
+ // This source code is dual- licensed under either the MIT license found in the
4
+ // LICENSE-MIT file in the root directory of this source tree or the Apache
5
5
// License, Version 2.0 found in the LICENSE-APACHE file in the root directory
6
- // of this source tree.
6
+ // of this source tree. You may select, at your option, one of the above-listed
7
+ // licenses.
7
8
8
9
#![ allow( unsafe_code) ]
9
10
You can’t perform that action at this time.
0 commit comments