forked from google/OpenSK
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
57bf623
commit 826c380
Showing
36 changed files
with
18,534 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,175 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"name": "Debug unit tests in library 'ctap2'", | ||
"cargo": { | ||
"args": [ | ||
"test", | ||
"--no-run", | ||
"--lib", | ||
"--package=ctap2" | ||
], | ||
"filter": { | ||
"name": "ctap2", | ||
"kind": "lib" | ||
} | ||
}, | ||
"args": [], | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"name": "Debug executable 'ctap2'", | ||
"cargo": { | ||
"args": [ | ||
"build", | ||
"--bin=ctap2", | ||
"--package=ctap2" | ||
], | ||
"filter": { | ||
"name": "ctap2", | ||
"kind": "bin" | ||
} | ||
}, | ||
"args": [], | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"name": "Debug unit tests in executable 'ctap2'", | ||
"cargo": { | ||
"args": [ | ||
"test", | ||
"--no-run", | ||
"--bin=ctap2", | ||
"--package=ctap2" | ||
], | ||
"filter": { | ||
"name": "ctap2", | ||
"kind": "bin" | ||
} | ||
}, | ||
"args": [], | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"name": "Debug example 'oom_test'", | ||
"cargo": { | ||
"args": [ | ||
"build", | ||
"--example=oom_test", | ||
"--package=ctap2" | ||
], | ||
"filter": { | ||
"name": "oom_test", | ||
"kind": "example" | ||
} | ||
}, | ||
"args": [], | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"name": "Debug unit tests in example 'oom_test'", | ||
"cargo": { | ||
"args": [ | ||
"test", | ||
"--no-run", | ||
"--example=oom_test", | ||
"--package=ctap2" | ||
], | ||
"filter": { | ||
"name": "oom_test", | ||
"kind": "example" | ||
} | ||
}, | ||
"args": [], | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"name": "Debug example 'crypto_bench'", | ||
"cargo": { | ||
"args": [ | ||
"build", | ||
"--example=crypto_bench", | ||
"--package=ctap2" | ||
], | ||
"filter": { | ||
"name": "crypto_bench", | ||
"kind": "example" | ||
} | ||
}, | ||
"args": [], | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"name": "Debug unit tests in example 'crypto_bench'", | ||
"cargo": { | ||
"args": [ | ||
"test", | ||
"--no-run", | ||
"--example=crypto_bench", | ||
"--package=ctap2" | ||
], | ||
"filter": { | ||
"name": "crypto_bench", | ||
"kind": "example" | ||
} | ||
}, | ||
"args": [], | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"name": "Debug example 'panic_test'", | ||
"cargo": { | ||
"args": [ | ||
"build", | ||
"--example=panic_test", | ||
"--package=ctap2" | ||
], | ||
"filter": { | ||
"name": "panic_test", | ||
"kind": "example" | ||
} | ||
}, | ||
"args": [], | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"name": "Debug unit tests in example 'panic_test'", | ||
"cargo": { | ||
"args": [ | ||
"test", | ||
"--no-run", | ||
"--example=panic_test", | ||
"--package=ctap2" | ||
], | ||
"filter": { | ||
"name": "panic_test", | ||
"kind": "example" | ||
} | ||
}, | ||
"args": [], | ||
"cwd": "${workspaceFolder}" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"name": "Debug", | ||
"program": "${workspaceFolder}/<your program>", | ||
"args": [], | ||
"cwd": "${workspaceFolder}" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"name": "Debug executable 'sample01'", | ||
"cargo": { | ||
"args": [ | ||
"build", | ||
"--bin=sample01", | ||
"--package=sample01" | ||
], | ||
"filter": { | ||
"name": "sample01", | ||
"kind": "bin" | ||
} | ||
}, | ||
"args": [], | ||
"cwd": "${workspaceFolder}" | ||
}, | ||
{ | ||
"type": "lldb", | ||
"request": "launch", | ||
"name": "Debug unit tests in executable 'sample01'", | ||
"cargo": { | ||
"args": [ | ||
"test", | ||
"--no-run", | ||
"--bin=sample01", | ||
"--package=sample01" | ||
], | ||
"filter": { | ||
"name": "sample01", | ||
"kind": "bin" | ||
} | ||
}, | ||
"args": [], | ||
"cwd": "${workspaceFolder}" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[package] | ||
name = "sample01" | ||
version = "0.1.0" | ||
authors = ["gebo <[email protected]>"] | ||
edition = "2018" | ||
|
||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html | ||
|
||
[dependencies] | ||
cbor = { path = "libraries/cbor" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[package] | ||
name = "cbor" | ||
version = "0.1.0" | ||
authors = [ | ||
"Fabian Kaczmarczyck <[email protected]>", | ||
"Guillaume Endignoux <[email protected]>", | ||
"Jean-Michel Picod <[email protected]>", | ||
] | ||
license = "Apache-2.0" | ||
edition = "2018" | ||
|
||
[dependencies] | ||
|
||
[features] | ||
std = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Copyright 2019 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. | ||
|
||
#![cfg_attr(not(feature = "std"), no_std)] | ||
|
||
extern crate alloc; | ||
#[cfg(feature = "std")] | ||
extern crate core; | ||
|
||
#[macro_use] | ||
pub mod macros; | ||
pub mod reader; | ||
pub mod values; | ||
pub mod writer; | ||
|
||
pub use self::reader::read; | ||
pub use self::values::{KeyType, SimpleValue, Value}; | ||
pub use self::writer::write; |
Oops, something went wrong.