Skip to content

Commit

Permalink
deploy: 7b065dd
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey committed Aug 6, 2024
1 parent e537511 commit eb8cde1
Show file tree
Hide file tree
Showing 57 changed files with 88 additions and 248 deletions.
2 changes: 1 addition & 1 deletion search-index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion search.desc/trussed/trussed-desc-0-.js

Large diffs are not rendered by default.

34 changes: 0 additions & 34 deletions src/trussed/service/attest.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -778,23 +778,6 @@
<a href="#778" id="778">778</a>
<a href="#779" id="779">779</a>
<a href="#780" id="780">780</a>
<a href="#781" id="781">781</a>
<a href="#782" id="782">782</a>
<a href="#783" id="783">783</a>
<a href="#784" id="784">784</a>
<a href="#785" id="785">785</a>
<a href="#786" id="786">786</a>
<a href="#787" id="787">787</a>
<a href="#788" id="788">788</a>
<a href="#789" id="789">789</a>
<a href="#790" id="790">790</a>
<a href="#791" id="791">791</a>
<a href="#792" id="792">792</a>
<a href="#793" id="793">793</a>
<a href="#794" id="794">794</a>
<a href="#795" id="795">795</a>
<a href="#796" id="796">796</a>
<a href="#797" id="797">797</a>
</pre></div><pre class="rust"><code><span class="kw">use </span>flexiber::{
Encodable, EncodableHeapless, Encoder, Length <span class="kw">as </span>BerLength, <span class="prelude-ty">Result </span><span class="kw">as </span>BerResult, Tag,
TaggedSlice, TaggedValue,
Expand Down Expand Up @@ -1270,23 +1253,6 @@
}
}

<span class="attr">#[derive(Clone, Copy, Eq, PartialEq)]
</span><span class="doccomment">/// Currently unconstructable.
</span><span class="kw">pub enum </span>Extension {}

<span class="attr">#[derive(Clone, Copy, Eq, PartialEq)]
</span><span class="doccomment">/// Only empty slices possible currently.
</span><span class="kw">pub struct </span>Extensions&lt;<span class="lifetime">'l</span>&gt;(<span class="kw-2">&amp;</span><span class="lifetime">'l </span>[Extension]);

<span class="kw">impl </span>Encodable <span class="kw">for </span>Extensions&lt;<span class="lifetime">'_</span>&gt; {
<span class="kw">fn </span>encoded_length(<span class="kw-2">&amp;</span><span class="self">self</span>) -&gt; BerResult&lt;BerLength&gt; {
<span class="prelude-val">Ok</span>(<span class="number">0u8</span>.into())
}
<span class="kw">fn </span>encode(<span class="kw-2">&amp;</span><span class="self">self</span>, _encoder: <span class="kw-2">&amp;mut </span>Encoder&lt;<span class="lifetime">'_</span>&gt;) -&gt; BerResult&lt;()&gt; {
<span class="prelude-val">Ok</span>(())
}
}

<span class="kw">pub struct </span>ParsedDatetime {
year: u16,
month: u8,
Expand Down
12 changes: 3 additions & 9 deletions src/trussed/store.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -650,9 +650,6 @@
<a href="#650" id="650">650</a>
<a href="#651" id="651">651</a>
<a href="#652" id="652">652</a>
<a href="#653" id="653">653</a>
<a href="#654" id="654">654</a>
<a href="#655" id="655">655</a>
</pre></div><pre class="rust"><code><span class="doccomment">//! `store` presents a combined interface to three littlefs2 filesystems:
//! internal flash, external flash, volatile/RAM.
//!
Expand All @@ -668,6 +665,7 @@
//! The guiding example for client apps is `fido-authenticator`, which stores:
//! - it basic state and config, and
//! - the metadata for its resident keys as a serialized struct
//!
//! Both include references to cryptographic keys (via their handle)
//!
//! Currently, the backend (internal/external/volatile) is determined via an
Expand Down Expand Up @@ -731,9 +729,7 @@
<span class="kw">use </span><span class="kw">crate</span>::error::Error;
<span class="kw">use </span><span class="kw">crate</span>::types::{Bytes, Location, PathBuf};
<span class="attr">#[allow(unused_imports)]
#[cfg(feature = <span class="string">"semihosting"</span>)]
</span><span class="kw">use </span>cortex_m_semihosting::hprintln;
<span class="kw">use </span>littlefs2::{
</span><span class="kw">use </span>littlefs2::{
fs::{DirEntry, Metadata},
path::Path,
};
Expand Down Expand Up @@ -1150,15 +1146,13 @@

<span class="comment">// TODO: replace this with "fs.create_dir_all(path.parent())"
</span><span class="kw">pub fn </span>create_directories(fs: <span class="kw-2">&amp;</span><span class="kw">dyn </span>DynFilesystem, path: <span class="kw-2">&amp;</span>Path) -&gt; <span class="prelude-ty">Result</span>&lt;(), Error&gt; {
<span class="comment">// hprintln!("preparing {:?}", core::str::from_utf8(path).unwrap()).ok();
</span><span class="kw">let </span>path_bytes = path.as_ref().as_bytes();
<span class="kw">let </span>path_bytes = path.as_ref().as_bytes();

<span class="kw">for </span>i <span class="kw">in </span><span class="number">0</span>..path_bytes.len() {
<span class="kw">if </span>path_bytes[i] == <span class="string">b'/' </span>{
<span class="kw">let </span>dir_bytes = <span class="kw-2">&amp;</span>path_bytes[..i];
<span class="kw">let </span>dir = PathBuf::from(dir_bytes);
<span class="comment">// let dir_str = core::str::from_utf8(dir).unwrap();
// hprintln!("create dir {:?}", dir_str).ok();
// fs.create_dir(dir).map_err(|_| Error::FilesystemWriteFailure)?;
</span><span class="kw">match </span>fs.create_dir(<span class="kw-2">&amp;</span>dir) {
<span class="prelude-val">Err</span>(littlefs2::io::Error::EntryAlreadyExisted) =&gt; {}
Expand Down
56 changes: 0 additions & 56 deletions src/trussed/types.rs.html
Original file line number Diff line number Diff line change
Expand Up @@ -644,34 +644,6 @@
<a href="#644" id="644">644</a>
<a href="#645" id="645">645</a>
<a href="#646" id="646">646</a>
<a href="#647" id="647">647</a>
<a href="#648" id="648">648</a>
<a href="#649" id="649">649</a>
<a href="#650" id="650">650</a>
<a href="#651" id="651">651</a>
<a href="#652" id="652">652</a>
<a href="#653" id="653">653</a>
<a href="#654" id="654">654</a>
<a href="#655" id="655">655</a>
<a href="#656" id="656">656</a>
<a href="#657" id="657">657</a>
<a href="#658" id="658">658</a>
<a href="#659" id="659">659</a>
<a href="#660" id="660">660</a>
<a href="#661" id="661">661</a>
<a href="#662" id="662">662</a>
<a href="#663" id="663">663</a>
<a href="#664" id="664">664</a>
<a href="#665" id="665">665</a>
<a href="#666" id="666">666</a>
<a href="#667" id="667">667</a>
<a href="#668" id="668">668</a>
<a href="#669" id="669">669</a>
<a href="#670" id="670">670</a>
<a href="#671" id="671">671</a>
<a href="#672" id="672">672</a>
<a href="#673" id="673">673</a>
<a href="#674" id="674">674</a>
</pre></div><pre class="rust"><code><span class="kw">use </span>core::marker::PhantomData;
<span class="kw">use </span>core::ops::Deref;

Expand Down Expand Up @@ -1169,34 +1141,6 @@
Key(Secrecy),
}

<span class="attr">#[derive(Copy, Clone, Eq, PartialEq, Debug)]
</span><span class="kw">pub struct </span>PublicKeyAttributes {
<span class="comment">// never return naked private key
</span>sensitive: bool,
<span class="comment">// always_sensitive: bool,

// do not even return wrapped private key
</span>extractable: bool,
<span class="comment">// never_extractable: bool,

// do not save to disk
</span>persistent: bool,
}

<span class="attr">#[derive(Copy, Clone, Eq, PartialEq, Debug)]
</span><span class="kw">pub struct </span>PrivateKeyAttributes {
<span class="comment">// never return naked private key
</span>sensitive: bool,
<span class="comment">// always_sensitive: bool,

// do not even return wrapped private key
</span>extractable: bool,
<span class="comment">// never_extractable: bool,

// do not save to disk
</span>persistent: bool,
}

<span class="attr">#[derive(Copy, Clone, Eq, PartialEq, Debug, Serialize, Deserialize)]
</span><span class="kw">pub enum </span>Location {
Volatile,
Expand Down
2 changes: 1 addition & 1 deletion trait.impl/core/clone/trait.Clone.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion trait.impl/core/cmp/trait.Eq.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion trait.impl/core/cmp/trait.PartialEq.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion trait.impl/core/fmt/trait.Debug.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion trait.impl/core/marker/trait.Copy.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion trait.impl/core/marker/trait.Freeze.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion trait.impl/core/marker/trait.Send.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion trait.impl/core/marker/trait.StructuralPartialEq.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion trait.impl/core/marker/trait.Sync.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion trait.impl/core/marker/trait.Unpin.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion trait.impl/core/panic/unwind_safe/trait.RefUnwindSafe.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion trait.impl/core/panic/unwind_safe/trait.UnwindSafe.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion trait.impl/flexiber/traits/trait.Encodable.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion trussed/all.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion trussed/macro.store.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `store` macro in crate `trussed`."><title>store in trussed - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-dd39b87e5fcfba68.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="trussed" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0 (051478957 2024-07-21)" data-channel="1.80.0" data-search-js="search-d52510db62a78183.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-118b08c4c78b968e.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-df360f571f6edeae.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc macro"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../trussed/index.html">trussed</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Macro <a href="index.html">trussed</a>::<wbr><a class="macro" href="#">store</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../src/trussed/store.rs.html#165-494">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><span class="macro">macro_rules!</span> store {
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="API documentation for the Rust `store` macro in crate `trussed`."><title>store in trussed - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-46f98efaafac5295.ttf.woff2,FiraSans-Regular-018c141bf0843ffd.woff2,FiraSans-Medium-8f9a781e4970d388.woff2,SourceCodePro-Regular-562dcc5011b6de7d.ttf.woff2,SourceCodePro-Semibold-d899c5a5c4aeb14a.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../static.files/normalize-76eba96aa4d2e634.css"><link rel="stylesheet" href="../static.files/rustdoc-dd39b87e5fcfba68.css"><meta name="rustdoc-vars" data-root-path="../" data-static-root-path="../static.files/" data-current-crate="trussed" data-themes="" data-resource-suffix="" data-rustdoc-version="1.80.0 (051478957 2024-07-21)" data-channel="1.80.0" data-search-js="search-d52510db62a78183.js" data-settings-js="settings-4313503d2e1961c2.js" ><script src="../static.files/storage-118b08c4c78b968e.js"></script><script defer src="sidebar-items.js"></script><script defer src="../static.files/main-20a3ad099b048cf2.js"></script><noscript><link rel="stylesheet" href="../static.files/noscript-df360f571f6edeae.css"></noscript><link rel="alternate icon" type="image/png" href="../static.files/favicon-32x32-422f7d1d52889060.png"><link rel="icon" type="image/svg+xml" href="../static.files/favicon-2c020d218678b618.svg"></head><body class="rustdoc macro"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../trussed/index.html">trussed</a><span class="version">0.1.0</span></h2></div><div class="sidebar-elems"></div></nav><div class="sidebar-resizer"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><h1>Macro <a href="index.html">trussed</a>::<wbr><a class="macro" href="#">store</a><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><span class="out-of-band"><a class="src" href="../src/trussed/store.rs.html#164-493">source</a> · <button id="toggle-all-docs" title="collapse all docs">[<span>&#x2212;</span>]</button></span></div><pre class="rust item-decl"><span class="macro">macro_rules!</span> store {
(
<span class="macro-nonterminal">$store</span>:ident,
Internal: <span class="macro-nonterminal">$Ifs</span>:ty,
Expand Down
Loading

0 comments on commit eb8cde1

Please sign in to comment.