Add COSE structure extensions that allow use of predefined cryptographic backends + an OpenSSL based backend. #95
check.yml
on: pull_request
Check
17s
Check (no_std)
18s
Test Suite
36s
Test Suite (no_std)
35s
Rustfmt
4s
clippy_check
20s
test_coverage
1m 59s
Annotations
35 errors and 175 warnings
docs for function which may panic missing `# Panics` section:
src/token/mod.rs#L259
error: docs for function which may panic missing `# Panics` section
--> src/token/mod.rs:259:1
|
259 | / pub fn encrypt_access_token_multiple<'a, T, I>(
260 | | backend: &mut T,
261 | | keys: I,
262 | | claims: ClaimsSet,
... |
269 | | I: IntoIterator<Item = &'a CoseKey>,
270 | | I::IntoIter: ExactSizeIterator,
| |___________________________________^
|
note: first possible panic found here
--> src/token/mod.rs:278:19
|
278 | let key = key_iter.next().unwrap();
| ^^^^^^^^^^^^^^^^^^^^^^^^
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_panics_doc
= note: `#[deny(clippy::missing_panics_doc)]` implied by `#[deny(clippy::pedantic)]`
|
docs for function returning `Result` missing `# Errors` section:
src/token/cose/mod.rs#L23
error: docs for function returning `Result` missing `# Errors` section
--> src/token/cose/mod.rs:23:5
|
23 | fn generate_rand(&mut self, buf: &mut [u8]) -> Result<(), CoseCipherError<Self::Error>>;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/token/cose/recipient/mod.rs#L427
error: docs for function returning `Result` missing `# Errors` section
--> src/token/cose/recipient/mod.rs:427:5
|
427 | / fn try_decrypt<B: CoseKeyDistributionCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>(
428 | | &self,
429 | | backend: &mut B,
430 | | key_provider: &mut CKP,
... |
433 | | external_aad: &mut CAP,
434 | | ) -> Result<Vec<CoseKey>, CoseCipherError<B::Error>>;
| |_________________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/token/cose/recipient/mod.rs#L323
error: docs for function returning `Result` missing `# Errors` section
--> src/token/cose/recipient/mod.rs:323:5
|
323 | / fn try_encrypt<B: CoseKeyDistributionCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>(
324 | | self,
325 | | backend: &mut B,
326 | | key_provider: &mut CKP,
... |
332 | | external_aad: &mut CAP,
333 | | ) -> Result<Self, CoseCipherError<B::Error>>;
| |_________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/token/cose/maced/mac0/mod.rs#L65
error: docs for function returning `Result` missing `# Errors` section
--> src/token/cose/maced/mac0/mod.rs:65:5
|
65 | / fn try_verify<B: CoseMacCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>(
66 | | &self,
67 | | backend: &mut B,
68 | | key_provider: &mut CKP,
69 | | try_all_keys: bool,
70 | | external_aad: &mut CAP,
71 | | ) -> Result<(), CoseCipherError<B::Error>>;
| |_______________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/token/cose/maced/mac0/mod.rs#L15
error: docs for function returning `Result` missing `# Errors` section
--> src/token/cose/maced/mac0/mod.rs:15:5
|
15 | / fn try_compute<B: CoseMacCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>(
16 | | self,
17 | | backend: &mut B,
18 | | key_provider: &mut CKP,
... |
23 | | external_aad: &mut CAP,
24 | | ) -> Result<Self, CoseCipherError<B::Error>>;
| |_________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/token/cose/maced/mac/mod.rs#L75
error: docs for function returning `Result` missing `# Errors` section
--> src/token/cose/maced/mac/mod.rs:75:5
|
75 | / fn try_verify_with_recipients<
76 | | B: CoseKeyDistributionCipher + CoseMacCipher,
77 | | CKP: CoseKeyProvider,
78 | | CAP: CoseAadProvider,
... |
84 | | external_aad: &mut CAP,
85 | | ) -> Result<(), CoseCipherError<B::Error>>;
| |_______________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/token/cose/maced/mac/mod.rs#L67
error: docs for function returning `Result` missing `# Errors` section
--> src/token/cose/maced/mac/mod.rs:67:5
|
67 | / fn try_verify<B: CoseMacCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>(
68 | | &self,
69 | | backend: &mut B,
70 | | key_provider: &mut CKP,
71 | | try_all_keys: bool,
72 | | external_aad: &mut CAP,
73 | | ) -> Result<(), CoseCipherError<B::Error>>;
| |_______________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/token/cose/maced/mac/mod.rs#L17
error: docs for function returning `Result` missing `# Errors` section
--> src/token/cose/maced/mac/mod.rs:17:5
|
17 | / fn try_compute<B: CoseMacCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>(
18 | | self,
19 | | backend: &mut B,
20 | | key_provider: &mut CKP,
... |
25 | | external_aad: &mut CAP,
26 | | ) -> Result<Self, CoseCipherError<B::Error>>;
| |_________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/token/cose/maced/mod.rs#L31
error: docs for function returning `Result` missing `# Errors` section
--> src/token/cose/maced/mod.rs:31:5
|
31 | / fn verify_hmac(
32 | | &mut self,
33 | | algorithm: Algorithm,
34 | | key: CoseSymmetricKey<'_, Self::Error>,
35 | | tag: &[u8],
36 | | data: &[u8],
37 | | ) -> Result<(), CoseCipherError<Self::Error>>;
| |__________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/token/cose/maced/mod.rs#L24
error: docs for function returning `Result` missing `# Errors` section
--> src/token/cose/maced/mod.rs:24:5
|
24 | / fn compute_hmac(
25 | | &mut self,
26 | | algorithm: Algorithm,
27 | | key: CoseSymmetricKey<'_, Self::Error>,
28 | | input: &[u8],
29 | | ) -> Result<Vec<u8>, CoseCipherError<Self::Error>>;
| |_______________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/token/cose/signed/mod.rs#L151
error: docs for function returning `Result` missing `# Errors` section
--> src/token/cose/signed/mod.rs:151:5
|
151 | / fn verify_ecdsa(
152 | | &mut self,
153 | | alg: Algorithm,
154 | | key: &CoseEc2Key<'_, Self::Error>,
155 | | signature: &[u8],
156 | | target: &[u8],
157 | | ) -> Result<(), CoseCipherError<Self::Error>>;
| |__________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/token/cose/signed/mod.rs#L89
error: docs for function returning `Result` missing `# Errors` section
--> src/token/cose/signed/mod.rs:89:5
|
89 | / fn sign_ecdsa(
90 | | &mut self,
91 | | alg: Algorithm,
92 | | key: &CoseEc2Key<'_, Self::Error>,
93 | | target: &[u8],
94 | | ) -> Result<Vec<u8>, CoseCipherError<Self::Error>>;
| |_______________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/token/cose/signed/sign1/mod.rs#L131
error: docs for function returning `Result` missing `# Errors` section
--> src/token/cose/signed/sign1/mod.rs:131:5
|
131 | / fn try_verify_detached<B: CoseSignCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>(
132 | | &self,
133 | | backend: &mut B,
134 | | key_provider: &mut CKP,
... |
137 | | aad: &mut CAP,
138 | | ) -> Result<(), CoseCipherError<B::Error>>;
| |_______________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/token/cose/signed/sign1/mod.rs#L123
error: docs for function returning `Result` missing `# Errors` section
--> src/token/cose/signed/sign1/mod.rs:123:5
|
123 | / fn try_verify<B: CoseSignCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>(
124 | | &self,
125 | | backend: &mut B,
126 | | key_provider: &mut CKP,
127 | | try_all_keys: bool,
128 | | aad: &mut CAP,
129 | | ) -> Result<(), CoseCipherError<B::Error>>;
| |_______________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/token/cose/signed/sign1/mod.rs#L50
error: docs for function returning `Result` missing `# Errors` section
--> src/token/cose/signed/sign1/mod.rs:50:5
|
50 | / fn try_sign_detached<B: CoseSignCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>(
51 | | self,
52 | | backend: &mut B,
53 | | key_provider: &mut CKP,
... |
57 | | aad: &mut CAP,
58 | | ) -> Result<Self, CoseCipherError<B::Error>>;
| |_________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/token/cose/signed/sign1/mod.rs#L27
error: docs for function returning `Result` missing `# Errors` section
--> src/token/cose/signed/sign1/mod.rs:27:5
|
27 | / fn try_sign<B: CoseSignCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>(
28 | | self,
29 | | backend: &mut B,
30 | | key_provider: &mut CKP,
... |
33 | | aad: &mut CAP,
34 | | ) -> Result<Self, CoseCipherError<B::Error>>;
| |_________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`:
src/token/cose/signed/sign/mod.rs#L150
error: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`
--> src/token/cose/signed/sign/mod.rs:150:13
|
150 | / match self.verify_detached_signature(
151 | | sigindex,
152 | | payload,
153 | | aad.lookup_aad(
... |
173 | | }
174 | | }
| |_____________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match_else
help: try
|
150 ~ if let Ok(()) = self.verify_detached_signature(
151 + sigindex,
152 + payload,
153 + aad.lookup_aad(
154 + None,
155 + Some(&self.signatures[sigindex].protected.header),
156 + Some(&self.signatures[sigindex].unprotected),
157 + ),
158 + |signature, toverify| {
159 + signed::try_verify(
160 + backend,
161 + key_provider,
162 + &self.signatures[sigindex].protected.header,
163 + &self.signatures[sigindex].unprotected,
164 + try_all_keys,
165 + signature,
166 + toverify,
167 + )
168 + },
169 + ) { return Ok(()) } else {
170 + // TODO debug logging? Allow debugging why each verification failed?
171 + }
|
|
you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`:
src/token/cose/signed/sign/mod.rs#L111
error: you seem to be trying to use `match` for destructuring a single pattern. Consider using `if let`
--> src/token/cose/signed/sign/mod.rs:111:13
|
111 | / match self.verify_signature(
112 | | sigindex,
113 | | aad.borrow_mut().lookup_aad(
114 | | None,
... |
133 | | }
134 | | }
| |_____________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#single_match_else
= note: `#[deny(clippy::single_match_else)]` implied by `#[deny(clippy::pedantic)]`
help: try
|
111 ~ if let Ok(()) = self.verify_signature(
112 + sigindex,
113 + aad.borrow_mut().lookup_aad(
114 + None,
115 + Some(&self.signatures[sigindex].protected.header),
116 + Some(&self.signatures[sigindex].unprotected),
117 + ),
118 + |signature, toverify| {
119 + signed::try_verify(
120 + backend,
121 + key_provider,
122 + &self.signatures[sigindex].protected.header,
123 + &self.signatures[sigindex].unprotected,
124 + try_all_keys,
125 + signature,
126 + toverify,
127 + )
128 + },
129 + ) { return Ok(()) } else {
130 + // TODO debug logging? Allow debugging why each verification failed?
131 + }
|
|
docs for function returning `Result` missing `# Errors` section:
src/token/cose/signed/sign/mod.rs#L92
error: docs for function returning `Result` missing `# Errors` section
--> src/token/cose/signed/sign/mod.rs:92:5
|
92 | / fn try_verify_detached<B: CoseSignCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>(
93 | | &self,
94 | | backend: &mut B,
95 | | key_provider: &mut CKP,
... |
98 | | aad: &mut CAP,
99 | | ) -> Result<(), CoseCipherError<B::Error>>;
| |_______________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/token/cose/signed/sign/mod.rs#L84
error: docs for function returning `Result` missing `# Errors` section
--> src/token/cose/signed/sign/mod.rs:84:5
|
84 | / fn try_verify<B: CoseSignCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>(
85 | | &self,
86 | | backend: &mut B,
87 | | key_provider: &mut CKP,
88 | | try_all_keys: bool,
89 | | aad: &mut CAP,
90 | | ) -> Result<(), CoseCipherError<B::Error>>;
| |_______________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/token/cose/signed/sign/mod.rs#L22
error: docs for function returning `Result` missing `# Errors` section
--> src/token/cose/signed/sign/mod.rs:22:5
|
22 | / fn try_add_sign_detached<B: CoseSignCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>(
23 | | self,
24 | | backend: &mut B,
25 | | key_provider: &mut CKP,
... |
28 | | aad: &mut CAP,
29 | | ) -> Result<Self, CoseCipherError<B::Error>>;
| |_________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/token/cose/signed/sign/mod.rs#L14
error: docs for function returning `Result` missing `# Errors` section
--> src/token/cose/signed/sign/mod.rs:14:5
|
14 | / fn try_add_sign<B: CoseSignCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>(
15 | | self,
16 | | backend: &mut B,
17 | | key_provider: &mut CKP,
18 | | sig: CoseSignature,
19 | | aad: &mut CAP,
20 | | ) -> Result<Self, CoseCipherError<B::Error>>;
| |_________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/token/cose/key.rs#L615
error: docs for function returning `Result` missing `# Errors` section
--> src/token/cose/key.rs:615:1
|
615 | / pub fn ensure_valid_ecdsa_key<'a, BE: Display>(
616 | | algorithm: &Algorithm,
617 | | parsed_key: CoseParsedKey<'a, BE>,
618 | | key_should_be_private: bool,
619 | | ) -> Result<CoseEc2Key<'a, BE>, CoseCipherError<BE>> {
| |____________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/token/cose/encrypted/mod.rs#L68
error: docs for function returning `Result` missing `# Errors` section
--> src/token/cose/encrypted/mod.rs:68:5
|
68 | / fn gen_iv<B: CoseEncryptCipher>(
69 | | self,
70 | | backend: &mut B,
71 | | alg: &Algorithm,
72 | | ) -> Result<Self, CoseCipherError<B::Error>>;
| |_________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/token/cose/encrypted/mod.rs#L58
error: docs for function returning `Result` missing `# Errors` section
--> src/token/cose/encrypted/mod.rs:58:5
|
58 | / fn aes_key_unwrap(
59 | | &mut self,
60 | | algorithm: Algorithm,
61 | | key: CoseSymmetricKey<'_, Self::Error>,
62 | | ciphertext: &[u8],
63 | | iv: &[u8],
64 | | ) -> Result<Vec<u8>, CoseCipherError<Self::Error>>;
| |_______________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/token/cose/encrypted/mod.rs#L50
error: docs for function returning `Result` missing `# Errors` section
--> src/token/cose/encrypted/mod.rs:50:5
|
50 | / fn aes_key_wrap(
51 | | &mut self,
52 | | algorithm: Algorithm,
53 | | key: CoseSymmetricKey<'_, Self::Error>,
54 | | plaintext: &[u8],
55 | | iv: &[u8],
56 | | ) -> Result<Vec<u8>, CoseCipherError<Self::Error>>;
| |_______________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/token/cose/encrypted/mod.rs#L39
error: docs for function returning `Result` missing `# Errors` section
--> src/token/cose/encrypted/mod.rs:39:5
|
39 | / fn decrypt_aes_gcm(
40 | | &mut self,
41 | | algorithm: Algorithm,
42 | | key: CoseSymmetricKey<'_, Self::Error>,
... |
45 | | iv: &[u8],
46 | | ) -> Result<Vec<u8>, CoseCipherError<Self::Error>>;
| |_______________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/token/cose/encrypted/mod.rs#L30
error: docs for function returning `Result` missing `# Errors` section
--> src/token/cose/encrypted/mod.rs:30:5
|
30 | / fn encrypt_aes_gcm(
31 | | &mut self,
32 | | algorithm: Algorithm,
33 | | key: CoseSymmetricKey<'_, Self::Error>,
... |
36 | | iv: &[u8],
37 | | ) -> Result<Vec<u8>, CoseCipherError<Self::Error>>;
| |_______________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/token/cose/encrypted/encrypt0/mod.rs#L57
error: docs for function returning `Result` missing `# Errors` section
--> src/token/cose/encrypted/encrypt0/mod.rs:57:5
|
57 | / fn try_encrypt<B: CoseEncryptCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>(
58 | | self,
59 | | backend: &mut B,
60 | | key_provider: &mut CKP,
... |
65 | | external_aad: &mut CAP,
66 | | ) -> Result<Self, CoseCipherError<B::Error>>;
| |_________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/token/cose/encrypted/encrypt0/mod.rs#L16
error: docs for function returning `Result` missing `# Errors` section
--> src/token/cose/encrypted/encrypt0/mod.rs:16:5
|
16 | / fn try_decrypt<B: CoseEncryptCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>(
17 | | &self,
18 | | backend: &mut B,
19 | | key_provider: &mut CKP,
20 | | try_all_keys: bool,
21 | | external_aad: &mut CAP,
22 | | ) -> Result<Vec<u8>, CoseCipherError<B::Error>>;
| |____________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/token/cose/encrypted/encrypt/mod.rs#L81
error: docs for function returning `Result` missing `# Errors` section
--> src/token/cose/encrypted/encrypt/mod.rs:81:5
|
81 | / fn try_decrypt_with_recipients<
82 | | B: CoseKeyDistributionCipher + CoseEncryptCipher,
83 | | CKP: CoseKeyProvider,
84 | | CAP: CoseAadProvider,
... |
90 | | external_aad: &mut CAP,
91 | | ) -> Result<Vec<u8>, CoseCipherError<B::Error>>;
| |____________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/token/cose/encrypted/encrypt/mod.rs#L73
error: docs for function returning `Result` missing `# Errors` section
--> src/token/cose/encrypted/encrypt/mod.rs:73:5
|
73 | / fn try_decrypt<B: CoseEncryptCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>(
74 | | &self,
75 | | backend: &mut B,
76 | | key_provider: &mut CKP,
77 | | try_all_keys: bool,
78 | | external_aad: &mut CAP,
79 | | ) -> Result<Vec<u8>, CoseCipherError<B::Error>>;
| |____________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
|
docs for function returning `Result` missing `# Errors` section:
src/token/cose/encrypted/encrypt/mod.rs#L20
error: docs for function returning `Result` missing `# Errors` section
--> src/token/cose/encrypted/encrypt/mod.rs:20:5
|
20 | / fn try_encrypt<B: CoseEncryptCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>(
21 | | self,
22 | | backend: &mut B,
23 | | key_provider: &mut CKP,
... |
28 | | external_aad: &mut CAP,
29 | | ) -> Result<Self, CoseCipherError<B::Error>>;
| |_________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#missing_errors_doc
note: the lint level is defined here
--> src/lib.rs:309:5
|
309 | clippy::pedantic,
| ^^^^^^^^^^^^^^^^
= note: `#[deny(clippy::missing_errors_doc)]` implied by `#[deny(clippy::pedantic)]`
|
clippy_check
Clippy had exited with the 101 exit code
|
Rustfmt
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Rustfmt
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Rustfmt
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
missing documentation for a method:
src/token/cose/recipient/mod.rs#L427
warning: missing documentation for a method
--> src/token/cose/recipient/mod.rs:427:5
|
427 | / fn try_decrypt<B: CoseKeyDistributionCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>(
428 | | &self,
429 | | backend: &mut B,
430 | | key_provider: &mut CKP,
... |
433 | | external_aad: &mut CAP,
434 | | ) -> Result<Vec<CoseKey>, CoseCipherError<B::Error>>;
| |_________________________________________________________^
|
missing documentation for a trait:
src/token/cose/recipient/mod.rs#L426
warning: missing documentation for a trait
--> src/token/cose/recipient/mod.rs:426:1
|
426 | pub trait CoseRecipientExt {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a method:
src/token/cose/recipient/mod.rs#L323
warning: missing documentation for a method
--> src/token/cose/recipient/mod.rs:323:5
|
323 | / fn try_encrypt<B: CoseKeyDistributionCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>(
324 | | self,
325 | | backend: &mut B,
326 | | key_provider: &mut CKP,
... |
332 | | external_aad: &mut CAP,
333 | | ) -> Result<Self, CoseCipherError<B::Error>>;
| |_________________________________________________^
|
missing documentation for a trait:
src/token/cose/recipient/mod.rs#L322
warning: missing documentation for a trait
--> src/token/cose/recipient/mod.rs:322:1
|
322 | pub trait CoseRecipientBuilderExt: Sized {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a method:
src/token/cose/maced/mac0/mod.rs#L65
warning: missing documentation for a method
--> src/token/cose/maced/mac0/mod.rs:65:5
|
65 | / fn try_verify<B: CoseMacCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>(
66 | | &self,
67 | | backend: &mut B,
68 | | key_provider: &mut CKP,
69 | | try_all_keys: bool,
70 | | external_aad: &mut CAP,
71 | | ) -> Result<(), CoseCipherError<B::Error>>;
| |_______________________________________________^
|
missing documentation for a trait:
src/token/cose/maced/mac0/mod.rs#L64
warning: missing documentation for a trait
--> src/token/cose/maced/mac0/mod.rs:64:1
|
64 | pub trait CoseMac0Ext {
| ^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a method:
src/token/cose/maced/mac0/mod.rs#L15
warning: missing documentation for a method
--> src/token/cose/maced/mac0/mod.rs:15:5
|
15 | / fn try_compute<B: CoseMacCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>(
16 | | self,
17 | | backend: &mut B,
18 | | key_provider: &mut CKP,
... |
23 | | external_aad: &mut CAP,
24 | | ) -> Result<Self, CoseCipherError<B::Error>>;
| |_________________________________________________^
|
missing documentation for a trait:
src/token/cose/maced/mac0/mod.rs#L14
warning: missing documentation for a trait
--> src/token/cose/maced/mac0/mod.rs:14:1
|
14 | pub trait CoseMac0BuilderExt: Sized {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a method:
src/token/cose/maced/mac/mod.rs#L75
warning: missing documentation for a method
--> src/token/cose/maced/mac/mod.rs:75:5
|
75 | / fn try_verify_with_recipients<
76 | | B: CoseKeyDistributionCipher + CoseMacCipher,
77 | | CKP: CoseKeyProvider,
78 | | CAP: CoseAadProvider,
... |
84 | | external_aad: &mut CAP,
85 | | ) -> Result<(), CoseCipherError<B::Error>>;
| |_______________________________________________^
|
missing documentation for a method:
src/token/cose/maced/mac/mod.rs#L67
warning: missing documentation for a method
--> src/token/cose/maced/mac/mod.rs:67:5
|
67 | / fn try_verify<B: CoseMacCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>(
68 | | &self,
69 | | backend: &mut B,
70 | | key_provider: &mut CKP,
71 | | try_all_keys: bool,
72 | | external_aad: &mut CAP,
73 | | ) -> Result<(), CoseCipherError<B::Error>>;
| |_______________________________________________^
|
missing documentation for a trait:
src/token/cose/maced/mac/mod.rs#L66
warning: missing documentation for a trait
--> src/token/cose/maced/mac/mod.rs:66:1
|
66 | pub trait CoseMacExt {
| ^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a method:
src/token/cose/maced/mac/mod.rs#L17
warning: missing documentation for a method
--> src/token/cose/maced/mac/mod.rs:17:5
|
17 | / fn try_compute<B: CoseMacCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>(
18 | | self,
19 | | backend: &mut B,
20 | | key_provider: &mut CKP,
... |
25 | | external_aad: &mut CAP,
26 | | ) -> Result<Self, CoseCipherError<B::Error>>;
| |_________________________________________________^
|
missing documentation for a trait:
src/token/cose/maced/mac/mod.rs#L16
warning: missing documentation for a trait
--> src/token/cose/maced/mac/mod.rs:16:1
|
16 | pub trait CoseMacBuilderExt: Sized {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a method:
src/token/cose/maced/mod.rs#L31
warning: missing documentation for a method
--> src/token/cose/maced/mod.rs:31:5
|
31 | / fn verify_hmac(
32 | | &mut self,
33 | | algorithm: Algorithm,
34 | | key: CoseSymmetricKey<'_, Self::Error>,
35 | | tag: &[u8],
36 | | data: &[u8],
37 | | ) -> Result<(), CoseCipherError<Self::Error>>;
| |__________________________________________________^
|
missing documentation for a method:
src/token/cose/maced/mod.rs#L24
warning: missing documentation for a method
--> src/token/cose/maced/mod.rs:24:5
|
24 | / fn compute_hmac(
25 | | &mut self,
26 | | algorithm: Algorithm,
27 | | key: CoseSymmetricKey<'_, Self::Error>,
28 | | input: &[u8],
29 | | ) -> Result<Vec<u8>, CoseCipherError<Self::Error>>;
| |_______________________________________________________^
|
missing documentation for a method:
src/token/cose/signed/sign1/mod.rs#L131
warning: missing documentation for a method
--> src/token/cose/signed/sign1/mod.rs:131:5
|
131 | / fn try_verify_detached<B: CoseSignCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>(
132 | | &self,
133 | | backend: &mut B,
134 | | key_provider: &mut CKP,
... |
137 | | aad: &mut CAP,
138 | | ) -> Result<(), CoseCipherError<B::Error>>;
| |_______________________________________________^
|
missing documentation for a method:
src/token/cose/signed/sign1/mod.rs#L123
warning: missing documentation for a method
--> src/token/cose/signed/sign1/mod.rs:123:5
|
123 | / fn try_verify<B: CoseSignCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>(
124 | | &self,
125 | | backend: &mut B,
126 | | key_provider: &mut CKP,
127 | | try_all_keys: bool,
128 | | aad: &mut CAP,
129 | | ) -> Result<(), CoseCipherError<B::Error>>;
| |_______________________________________________^
|
missing documentation for a trait:
src/token/cose/signed/sign1/mod.rs#L122
warning: missing documentation for a trait
--> src/token/cose/signed/sign1/mod.rs:122:1
|
122 | pub trait CoseSign1Ext {
| ^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a method:
src/token/cose/signed/sign/mod.rs#L92
warning: missing documentation for a method
--> src/token/cose/signed/sign/mod.rs:92:5
|
92 | / fn try_verify_detached<B: CoseSignCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>(
93 | | &self,
94 | | backend: &mut B,
95 | | key_provider: &mut CKP,
... |
98 | | aad: &mut CAP,
99 | | ) -> Result<(), CoseCipherError<B::Error>>;
| |_______________________________________________^
|
missing documentation for a method:
src/token/cose/signed/sign/mod.rs#L84
warning: missing documentation for a method
--> src/token/cose/signed/sign/mod.rs:84:5
|
84 | / fn try_verify<B: CoseSignCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>(
85 | | &self,
86 | | backend: &mut B,
87 | | key_provider: &mut CKP,
88 | | try_all_keys: bool,
89 | | aad: &mut CAP,
90 | | ) -> Result<(), CoseCipherError<B::Error>>;
| |_______________________________________________^
|
missing documentation for a method:
src/token/cose/signed/sign/mod.rs#L22
warning: missing documentation for a method
--> src/token/cose/signed/sign/mod.rs:22:5
|
22 | / fn try_add_sign_detached<B: CoseSignCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>(
23 | | self,
24 | | backend: &mut B,
25 | | key_provider: &mut CKP,
... |
28 | | aad: &mut CAP,
29 | | ) -> Result<Self, CoseCipherError<B::Error>>;
| |_________________________________________________^
|
missing documentation for a method:
src/token/cose/signed/sign/mod.rs#L14
warning: missing documentation for a method
--> src/token/cose/signed/sign/mod.rs:14:5
|
14 | / fn try_add_sign<B: CoseSignCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>(
15 | | self,
16 | | backend: &mut B,
17 | | key_provider: &mut CKP,
18 | | sig: CoseSignature,
19 | | aad: &mut CAP,
20 | | ) -> Result<Self, CoseCipherError<B::Error>>;
| |_________________________________________________^
|
missing documentation for a function:
src/token/cose/key.rs#L615
warning: missing documentation for a function
--> src/token/cose/key.rs:615:1
|
615 | / pub fn ensure_valid_ecdsa_key<'a, BE: Display>(
616 | | algorithm: &Algorithm,
617 | | parsed_key: CoseParsedKey<'a, BE>,
618 | | key_should_be_private: bool,
619 | | ) -> Result<CoseEc2Key<'a, BE>, CoseCipherError<BE>> {
| |____________________________________________________^
|
missing documentation for a trait:
src/token/cose/key.rs#L429
warning: missing documentation for a trait
--> src/token/cose/key.rs:429:1
|
429 | pub trait CoseAadProvider: BorrowMut<Self> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a trait:
src/token/cose/key.rs#L362
warning: missing documentation for a trait
--> src/token/cose/key.rs:362:1
|
362 | pub trait CoseKeyProvider {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
src/token/cose/key.rs#L321
warning: missing documentation for a struct field
--> src/token/cose/key.rs:321:5
|
321 | pub k: &'a [u8],
| ^^^^^^^^^^^^^^^
|
missing documentation for a struct:
src/token/cose/key.rs#L319
warning: missing documentation for a struct
--> src/token/cose/key.rs:319:1
|
319 | pub struct CoseSymmetricKey<'a, OE: Display> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
src/token/cose/key.rs#L240
warning: missing documentation for a struct field
--> src/token/cose/key.rs:240:5
|
240 | pub x: Option<&'a [u8]>,
| ^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
src/token/cose/key.rs#L239
warning: missing documentation for a struct field
--> src/token/cose/key.rs:239:5
|
239 | pub d: Option<&'a [u8]>,
| ^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
src/token/cose/key.rs#L238
warning: missing documentation for a struct field
--> src/token/cose/key.rs:238:5
|
238 | pub crv: EllipticCurve,
| ^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
src/token/cose/key.rs#L236
warning: missing documentation for a struct
--> src/token/cose/key.rs:236:1
|
236 | pub struct CoseOkpKey<'a, OE: Display> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
src/token/cose/key.rs#L125
warning: missing documentation for a struct field
--> src/token/cose/key.rs:125:5
|
125 | pub sign: Option<bool>,
| ^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
src/token/cose/key.rs#L124
warning: missing documentation for a struct field
--> src/token/cose/key.rs:124:5
|
124 | pub y: Option<&'a [u8]>,
| ^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
src/token/cose/key.rs#L123
warning: missing documentation for a struct field
--> src/token/cose/key.rs:123:5
|
123 | pub x: Option<&'a [u8]>,
| ^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
src/token/cose/key.rs#L122
warning: missing documentation for a struct field
--> src/token/cose/key.rs:122:5
|
122 | pub d: Option<&'a [u8]>,
| ^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct field:
src/token/cose/key.rs#L121
warning: missing documentation for a struct field
--> src/token/cose/key.rs:121:5
|
121 | pub crv: EllipticCurve,
| ^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a struct:
src/token/cose/key.rs#L119
warning: missing documentation for a struct
--> src/token/cose/key.rs:119:1
|
119 | pub struct CoseEc2Key<'a, OE: Display> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a type alias:
src/token/cose/key.rs#L116
warning: missing documentation for a type alias
--> src/token/cose/key.rs:116:1
|
116 | pub type EllipticCurve = RegisteredLabelWithPrivate<iana::EllipticCurve>;
| ^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a variant:
src/token/cose/key.rs#L70
warning: missing documentation for a variant
--> src/token/cose/key.rs:70:5
|
70 | Symmetric(CoseSymmetricKey<'a, OE>),
| ^^^^^^^^^
|
missing documentation for a variant:
src/token/cose/key.rs#L69
warning: missing documentation for a variant
--> src/token/cose/key.rs:69:5
|
69 | Okp(CoseOkpKey<'a, OE>),
| ^^^
|
missing documentation for a variant:
src/token/cose/key.rs#L68
warning: missing documentation for a variant
--> src/token/cose/key.rs:68:5
|
68 | Ec2(CoseEc2Key<'a, OE>),
| ^^^
|
missing documentation for an enum:
src/token/cose/key.rs#L67
warning: missing documentation for an enum
--> src/token/cose/key.rs:67:1
|
67 | pub enum CoseParsedKey<'a, OE: Display> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a variant:
src/token/cose/key.rs#L38
warning: missing documentation for a variant
--> src/token/cose/key.rs:38:5
|
38 | Symmetric(iana::SymmetricKeyParameter),
| ^^^^^^^^^
|
missing documentation for a variant:
src/token/cose/key.rs#L37
warning: missing documentation for a variant
--> src/token/cose/key.rs:37:5
|
37 | Okp(iana::OkpKeyParameter),
| ^^^
|
missing documentation for a variant:
src/token/cose/key.rs#L36
warning: missing documentation for a variant
--> src/token/cose/key.rs:36:5
|
36 | Ec2(iana::Ec2KeyParameter),
| ^^^
|
missing documentation for a variant:
src/token/cose/key.rs#L35
warning: missing documentation for a variant
--> src/token/cose/key.rs:35:5
|
35 | Common(iana::KeyParameter),
| ^^^^^^
|
missing documentation for an enum:
src/token/cose/key.rs#L34
warning: missing documentation for an enum
--> src/token/cose/key.rs:34:1
|
34 | pub enum KeyParam {
| ^^^^^^^^^^^^^^^^^
|
missing documentation for a variant:
src/token/cose/header_util.rs#L16
warning: missing documentation for a variant
--> src/token/cose/header_util.rs:16:5
|
16 | Algorithm(iana::HeaderAlgorithmParameter),
| ^^^^^^^^^
|
missing documentation for a variant:
src/token/cose/header_util.rs#L15
warning: missing documentation for a variant
--> src/token/cose/header_util.rs:15:5
|
15 | Generic(iana::HeaderParameter),
| ^^^^^^^
|
missing documentation for an enum:
src/token/cose/header_util.rs#L14
warning: missing documentation for an enum
--> src/token/cose/header_util.rs:14:1
|
14 | pub enum HeaderParam {
| ^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a method:
src/token/cose/encrypted/encrypt0/mod.rs#L57
warning: missing documentation for a method
--> src/token/cose/encrypted/encrypt0/mod.rs:57:5
|
57 | / fn try_encrypt<B: CoseEncryptCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>(
58 | | self,
59 | | backend: &mut B,
60 | | key_provider: &mut CKP,
... |
65 | | external_aad: &mut CAP,
66 | | ) -> Result<Self, CoseCipherError<B::Error>>;
| |_________________________________________________^
|
missing documentation for a trait:
src/token/cose/encrypted/encrypt0/mod.rs#L56
warning: missing documentation for a trait
--> src/token/cose/encrypted/encrypt0/mod.rs:56:1
|
56 | pub trait CoseEncrypt0BuilderExt: Sized {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a method:
src/token/cose/encrypted/encrypt0/mod.rs#L16
warning: missing documentation for a method
--> src/token/cose/encrypted/encrypt0/mod.rs:16:5
|
16 | / fn try_decrypt<B: CoseEncryptCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>(
17 | | &self,
18 | | backend: &mut B,
19 | | key_provider: &mut CKP,
20 | | try_all_keys: bool,
21 | | external_aad: &mut CAP,
22 | | ) -> Result<Vec<u8>, CoseCipherError<B::Error>>;
| |____________________________________________________^
|
missing documentation for a trait:
src/token/cose/encrypted/encrypt0/mod.rs#L15
warning: missing documentation for a trait
--> src/token/cose/encrypted/encrypt0/mod.rs:15:1
|
15 | pub trait CoseEncrypt0Ext {
| ^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a method:
src/token/cose/encrypted/encrypt/mod.rs#L81
warning: missing documentation for a method
--> src/token/cose/encrypted/encrypt/mod.rs:81:5
|
81 | / fn try_decrypt_with_recipients<
82 | | B: CoseKeyDistributionCipher + CoseEncryptCipher,
83 | | CKP: CoseKeyProvider,
84 | | CAP: CoseAadProvider,
... |
90 | | external_aad: &mut CAP,
91 | | ) -> Result<Vec<u8>, CoseCipherError<B::Error>>;
| |____________________________________________________^
|
missing documentation for a method:
src/token/cose/encrypted/encrypt/mod.rs#L73
warning: missing documentation for a method
--> src/token/cose/encrypted/encrypt/mod.rs:73:5
|
73 | / fn try_decrypt<B: CoseEncryptCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>(
74 | | &self,
75 | | backend: &mut B,
76 | | key_provider: &mut CKP,
77 | | try_all_keys: bool,
78 | | external_aad: &mut CAP,
79 | | ) -> Result<Vec<u8>, CoseCipherError<B::Error>>;
| |____________________________________________________^
|
missing documentation for a trait:
src/token/cose/encrypted/encrypt/mod.rs#L72
warning: missing documentation for a trait
--> src/token/cose/encrypted/encrypt/mod.rs:72:1
|
72 | pub trait CoseEncryptExt {
| ^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a method:
src/token/cose/encrypted/encrypt/mod.rs#L20
warning: missing documentation for a method
--> src/token/cose/encrypted/encrypt/mod.rs:20:5
|
20 | / fn try_encrypt<B: CoseEncryptCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>(
21 | | self,
22 | | backend: &mut B,
23 | | key_provider: &mut CKP,
... |
28 | | external_aad: &mut CAP,
29 | | ) -> Result<Self, CoseCipherError<B::Error>>;
| |_________________________________________________^
|
missing documentation for a trait:
src/token/cose/encrypted/encrypt/mod.rs#L19
warning: missing documentation for a trait
--> src/token/cose/encrypted/encrypt/mod.rs:19:1
|
19 | pub trait CoseEncryptBuilderExt: Sized {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a method:
src/token/cose/encrypted/mod.rs#L68
warning: missing documentation for a method
--> src/token/cose/encrypted/mod.rs:68:5
|
68 | / fn gen_iv<B: CoseEncryptCipher>(
69 | | self,
70 | | backend: &mut B,
71 | | alg: &Algorithm,
72 | | ) -> Result<Self, CoseCipherError<B::Error>>;
| |_________________________________________________^
|
missing documentation for a trait:
src/token/cose/encrypted/mod.rs#L67
warning: missing documentation for a trait
--> src/token/cose/encrypted/mod.rs:67:1
|
67 | pub trait HeaderBuilderExt: Sized {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a method:
src/token/cose/encrypted/mod.rs#L58
warning: missing documentation for a method
--> src/token/cose/encrypted/mod.rs:58:5
|
58 | / fn aes_key_unwrap(
59 | | &mut self,
60 | | algorithm: Algorithm,
61 | | key: CoseSymmetricKey<'_, Self::Error>,
62 | | ciphertext: &[u8],
63 | | iv: &[u8],
64 | | ) -> Result<Vec<u8>, CoseCipherError<Self::Error>>;
| |_______________________________________________________^
|
missing documentation for a method:
src/token/cose/encrypted/mod.rs#L50
warning: missing documentation for a method
--> src/token/cose/encrypted/mod.rs:50:5
|
50 | / fn aes_key_wrap(
51 | | &mut self,
52 | | algorithm: Algorithm,
53 | | key: CoseSymmetricKey<'_, Self::Error>,
54 | | plaintext: &[u8],
55 | | iv: &[u8],
56 | | ) -> Result<Vec<u8>, CoseCipherError<Self::Error>>;
| |_______________________________________________________^
|
missing documentation for a trait:
src/token/cose/encrypted/mod.rs#L49
warning: missing documentation for a trait
--> src/token/cose/encrypted/mod.rs:49:1
|
49 | pub trait CoseKeyDistributionCipher: CoseCipher {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a method:
src/token/cose/encrypted/mod.rs#L39
warning: missing documentation for a method
--> src/token/cose/encrypted/mod.rs:39:5
|
39 | / fn decrypt_aes_gcm(
40 | | &mut self,
41 | | algorithm: Algorithm,
42 | | key: CoseSymmetricKey<'_, Self::Error>,
... |
45 | | iv: &[u8],
46 | | ) -> Result<Vec<u8>, CoseCipherError<Self::Error>>;
| |_______________________________________________________^
|
missing documentation for a method:
src/token/cose/encrypted/mod.rs#L30
warning: missing documentation for a method
--> src/token/cose/encrypted/mod.rs:30:5
|
30 | / fn encrypt_aes_gcm(
31 | | &mut self,
32 | | algorithm: Algorithm,
33 | | key: CoseSymmetricKey<'_, Self::Error>,
... |
36 | | iv: &[u8],
37 | | ) -> Result<Vec<u8>, CoseCipherError<Self::Error>>;
| |_______________________________________________________^
|
missing documentation for a module:
src/token/cose/crypto_impl/mod.rs#L17
warning: missing documentation for a module
--> src/token/cose/crypto_impl/mod.rs:17:1
|
17 | pub mod openssl;
| ^^^^^^^^^^^^^^^
|
missing documentation for a trait:
src/token/cose/mod.rs#L16
warning: missing documentation for a trait
--> src/token/cose/mod.rs:16:1
|
16 | pub trait CoseCipher {
| ^^^^^^^^^^^^^^^^^^^^
|
missing documentation for a module:
src/token/cose/mod.rs#L12
warning: missing documentation for a module
--> src/token/cose/mod.rs:12:1
|
12 | pub mod recipient;
| ^^^^^^^^^^^^^^^^^
|
missing documentation for a module:
src/token/cose/mod.rs#L11
warning: missing documentation for a module
--> src/token/cose/mod.rs:11:1
|
11 | pub mod maced;
| ^^^^^^^^^^^^^
|
missing documentation for a module:
src/token/cose/mod.rs#L9
warning: missing documentation for a module
--> src/token/cose/mod.rs:9:1
|
9 | pub mod signed;
| ^^^^^^^^^^^^^^
|
missing documentation for a module:
src/token/cose/mod.rs#L8
warning: missing documentation for a module
--> src/token/cose/mod.rs:8:1
|
8 | pub mod key;
| ^^^^^^^^^^^
|
missing documentation for a module:
src/token/cose/mod.rs#L7
warning: missing documentation for a module
--> src/token/cose/mod.rs:7:1
|
7 | pub mod header_util;
| ^^^^^^^^^^^^^^^^^^^
|
missing documentation for a module:
src/token/cose/mod.rs#L6
warning: missing documentation for a module
--> src/token/cose/mod.rs:6:1
|
6 | pub mod encrypted;
| ^^^^^^^^^^^^^^^^^
|
missing documentation for a module:
src/token/mod.rs#L178
warning: missing documentation for a module
--> src/token/mod.rs:178:1
|
178 | pub mod cose;
| ^^^^^^^^^^^^
|
missing documentation for a variant:
src/error/mod.rs#L284
warning: missing documentation for a variant
--> src/error/mod.rs:284:5
|
284 | NoKeyFound,
| ^^^^^^^^^^
|
missing documentation for a variant:
src/error/mod.rs#L280
warning: missing documentation for a variant
--> src/error/mod.rs:280:5
|
280 | InvalidHeaderParam(HeaderParam, Value),
| ^^^^^^^^^^^^^^^^^^
|
missing documentation for a variant:
src/error/mod.rs#L279
warning: missing documentation for a variant
--> src/error/mod.rs:279:5
|
279 | MissingHeaderParam(HeaderParam),
| ^^^^^^^^^^^^^^^^^^
|
missing documentation for a variant:
src/error/mod.rs#L278
warning: missing documentation for a variant
--> src/error/mod.rs:278:5
|
278 | InvalidKeyParam(KeyParam, Value),
| ^^^^^^^^^^^^^^^
|
missing documentation for a variant:
src/error/mod.rs#L277
warning: missing documentation for a variant
--> src/error/mod.rs:277:5
|
277 | MissingKeyParam(KeyParam),
| ^^^^^^^^^^^^^^^
|
missing documentation for a variant:
src/error/mod.rs#L276
warning: missing documentation for a variant
--> src/error/mod.rs:276:5
|
276 | DuplicateHeaders(Vec<Label>),
| ^^^^^^^^^^^^^^^^
|
note: the lint level is defined here
--> src/lib.rs:313:9
|
313 | #![warn(missing_docs, rustdoc::missing_crate_level_docs)]
| ^^^^^^^^^^^^
|
this function has too many arguments (9/7):
src/token/cose/recipient/mod.rs#L323
warning: this function has too many arguments (9/7)
--> src/token/cose/recipient/mod.rs:323:5
|
323 | / fn try_encrypt<B: CoseKeyDistributionCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>(
324 | | self,
325 | | backend: &mut B,
326 | | key_provider: &mut CKP,
... |
332 | | external_aad: &mut CAP,
333 | | ) -> Result<Self, CoseCipherError<B::Error>>;
| |________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
|
this function has too many arguments (8/7):
src/token/cose/maced/mac0/mod.rs#L15
warning: this function has too many arguments (8/7)
--> src/token/cose/maced/mac0/mod.rs:15:5
|
15 | / fn try_compute<B: CoseMacCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>(
16 | | self,
17 | | backend: &mut B,
18 | | key_provider: &mut CKP,
... |
23 | | external_aad: &mut CAP,
24 | | ) -> Result<Self, CoseCipherError<B::Error>>;
| |________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
|
this function has too many arguments (8/7):
src/token/cose/maced/mac/mod.rs#L17
warning: this function has too many arguments (8/7)
--> src/token/cose/maced/mac/mod.rs:17:5
|
17 | / fn try_compute<B: CoseMacCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>(
18 | | self,
19 | | backend: &mut B,
20 | | key_provider: &mut CKP,
... |
25 | | external_aad: &mut CAP,
26 | | ) -> Result<Self, CoseCipherError<B::Error>>;
| |________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
|
this function has too many arguments (8/7):
src/token/cose/encrypted/encrypt0/mod.rs#L57
warning: this function has too many arguments (8/7)
--> src/token/cose/encrypted/encrypt0/mod.rs:57:5
|
57 | / fn try_encrypt<B: CoseEncryptCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>(
58 | | self,
59 | | backend: &mut B,
60 | | key_provider: &mut CKP,
... |
65 | | external_aad: &mut CAP,
66 | | ) -> Result<Self, CoseCipherError<B::Error>>;
| |________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
|
this function has too many arguments (8/7):
src/token/cose/encrypted/encrypt/mod.rs#L20
warning: this function has too many arguments (8/7)
--> src/token/cose/encrypted/encrypt/mod.rs:20:5
|
20 | / fn try_encrypt<B: CoseEncryptCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>(
21 | | self,
22 | | backend: &mut B,
23 | | key_provider: &mut CKP,
... |
28 | | external_aad: &mut CAP,
29 | | ) -> Result<Self, CoseCipherError<B::Error>>;
| |________________________________________________^
|
= help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
= note: `#[warn(clippy::too_many_arguments)]` on by default
|
Check
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Check
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Check:
src/error/mod.rs#L276
missing documentation for a variant
|
Check:
src/error/mod.rs#L277
missing documentation for a variant
|
Check:
src/error/mod.rs#L278
missing documentation for a variant
|
Check:
src/error/mod.rs#L279
missing documentation for a variant
|
Check:
src/error/mod.rs#L280
missing documentation for a variant
|
Check:
src/error/mod.rs#L284
missing documentation for a variant
|
Check:
src/token/mod.rs#L178
missing documentation for a module
|
Check:
src/token/cose/mod.rs#L6
missing documentation for a module
|
Check:
src/token/cose/mod.rs#L7
missing documentation for a module
|
Check:
src/token/cose/mod.rs#L8
missing documentation for a module
|
Check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Check
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Check (no_std)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Check (no_std)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Check (no_std)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Check (no_std)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Check (no_std)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Check (no_std)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Check (no_std):
src/error/mod.rs#L276
missing documentation for a variant
|
Check (no_std):
src/error/mod.rs#L277
missing documentation for a variant
|
Check (no_std):
src/error/mod.rs#L278
missing documentation for a variant
|
Check (no_std):
src/error/mod.rs#L279
missing documentation for a variant
|
Check (no_std):
src/error/mod.rs#L280
missing documentation for a variant
|
Check (no_std):
src/error/mod.rs#L284
missing documentation for a variant
|
Check (no_std):
src/token/mod.rs#L178
missing documentation for a module
|
Check (no_std):
src/token/cose/mod.rs#L6
missing documentation for a module
|
Check (no_std):
src/token/cose/mod.rs#L7
missing documentation for a module
|
Check (no_std):
src/token/cose/mod.rs#L8
missing documentation for a module
|
clippy_check
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
clippy_check
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions-rs/clippy-check@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Test Suite (no_std)
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Test Suite (no_std)
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Test Suite (no_std)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Test Suite (no_std)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Test Suite (no_std)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Test Suite (no_std)
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Test Suite (no_std):
src/error/mod.rs#L276
missing documentation for a variant
|
Test Suite (no_std):
src/error/mod.rs#L277
missing documentation for a variant
|
Test Suite (no_std):
src/error/mod.rs#L278
missing documentation for a variant
|
Test Suite (no_std):
src/error/mod.rs#L279
missing documentation for a variant
|
Test Suite (no_std):
src/error/mod.rs#L280
missing documentation for a variant
|
Test Suite (no_std):
src/error/mod.rs#L284
missing documentation for a variant
|
Test Suite (no_std):
src/token/mod.rs#L178
missing documentation for a module
|
Test Suite (no_std):
src/token/cose/mod.rs#L6
missing documentation for a module
|
Test Suite (no_std):
src/token/cose/mod.rs#L7
missing documentation for a module
|
Test Suite (no_std):
src/token/cose/mod.rs#L8
missing documentation for a module
|
Test Suite
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
Test Suite
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions-rs/toolchain@v1, actions-rs/cargo@v1. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Test Suite
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Test Suite
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Test Suite
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Test Suite
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
Test Suite:
src/error/mod.rs#L276
missing documentation for a variant
|
Test Suite:
src/error/mod.rs#L277
missing documentation for a variant
|
Test Suite:
src/error/mod.rs#L278
missing documentation for a variant
|
Test Suite:
src/error/mod.rs#L279
missing documentation for a variant
|
Test Suite:
src/error/mod.rs#L280
missing documentation for a variant
|
Test Suite:
src/error/mod.rs#L284
missing documentation for a variant
|
Test Suite:
src/token/mod.rs#L178
missing documentation for a module
|
Test Suite:
src/token/cose/mod.rs#L6
missing documentation for a module
|
Test Suite:
src/token/cose/mod.rs#L7
missing documentation for a module
|
Test Suite:
src/token/cose/mod.rs#L8
missing documentation for a module
|
test_coverage
The following actions uses node12 which is deprecated and will be forced to run on node16: actions-rs/toolchain@v1, actions-rs/cargo@v1, actions-rs/grcov@v0.1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
|
test_coverage
The following actions uses Node.js version which is deprecated and will be forced to run on node20: actions-rs/toolchain@v1, actions-rs/cargo@v1, actions-rs/grcov@v0.1, coverallsapp/github-action@master. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
test_coverage
the `-Cinline-threshold` flag is deprecated and does nothing (consider using `-Cllvm-args=--inline-threshold=...`)
|
test_coverage
the `-Cinline-threshold` flag is deprecated and does nothing (consider using `-Cllvm-args=--inline-threshold=...`)
|
test_coverage
the `-Cinline-threshold` flag is deprecated and does nothing (consider using `-Cllvm-args=--inline-threshold=...`)
|
test_coverage
the `-Cinline-threshold` flag is deprecated and does nothing (consider using `-Cllvm-args=--inline-threshold=...`)
|
test_coverage
the `-Cinline-threshold` flag is deprecated and does nothing (consider using `-Cllvm-args=--inline-threshold=...`)
|
test_coverage
the `-Cinline-threshold` flag is deprecated and does nothing (consider using `-Cllvm-args=--inline-threshold=...`)
|
test_coverage
the `-Cinline-threshold` flag is deprecated and does nothing (consider using `-Cllvm-args=--inline-threshold=...`)
|
test_coverage
the `-Cinline-threshold` flag is deprecated and does nothing (consider using `-Cllvm-args=--inline-threshold=...`)
|
test_coverage
the `-Cinline-threshold` flag is deprecated and does nothing (consider using `-Cllvm-args=--inline-threshold=...`)
|
test_coverage
the `-Cinline-threshold` flag is deprecated and does nothing (consider using `-Cllvm-args=--inline-threshold=...`)
|
test_coverage
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test_coverage
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test_coverage
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test_coverage
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|
test_coverage
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
|