diff options
Diffstat (limited to 'nearby/connections/ukey2/ukey2/src/lib.rs')
-rw-r--r-- | nearby/connections/ukey2/ukey2/src/lib.rs | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/nearby/connections/ukey2/ukey2/src/lib.rs b/nearby/connections/ukey2/ukey2/src/lib.rs new file mode 100644 index 0000000..fbb8210 --- /dev/null +++ b/nearby/connections/ukey2/ukey2/src/lib.rs @@ -0,0 +1,37 @@ +// Copyright 2023 Google LLC +// +// 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. + +//! This crate is an implementation of the UKEY2 handshake protocol +#![forbid(unsafe_code)] +#![deny( + trivial_casts, + trivial_numeric_casts, + unused_extern_crates, + unused_import_braces, + unused_results +)] + +pub mod error_handler; +mod proto_adapter; +mod state_machine; +#[cfg(test)] +mod tests; +mod ukey2_handshake; + +pub use error_handler::{ErrorHandler, Severity}; +pub use state_machine::StateMachine; +pub use ukey2_handshake::{ + CompletedHandshake, HandshakeImplementation, Ukey2Client, Ukey2ClientStage1, Ukey2Server, + Ukey2ServerStage1, Ukey2ServerStage2, WireCompatibilityLayer, +}; |