Skip to content

Add COSE structure extensions that allow use of predefined cryptographic backends + an OpenSSL based backend. #96

Add COSE structure extensions that allow use of predefined cryptographic backends + an OpenSSL based backend.

Add COSE structure extensions that allow use of predefined cryptographic backends + an OpenSSL based backend. #96

Triggered via pull request July 15, 2024 23:35
Status Failure
Total duration 2m 6s
Artifacts

check.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

33 errors and 174 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#L424
error: docs for function returning `Result` missing `# Errors` section --> src/token/cose/recipient/mod.rs:424:5 | 424 | / fn try_decrypt<B: CoseKeyDistributionCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>( 425 | | &self, 426 | | backend: &mut B, 427 | | key_provider: &mut CKP, ... | 430 | | external_aad: &mut CAP, 431 | | ) -> 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#L320
error: docs for function returning `Result` missing `# Errors` section --> src/token/cose/recipient/mod.rs:320:5 | 320 | / fn try_encrypt<B: CoseKeyDistributionCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>( 321 | | self, 322 | | backend: &mut B, 323 | | key_provider: &mut CKP, ... | 329 | | external_aad: &mut CAP, 330 | | ) -> 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: iana::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: iana::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/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#L608
error: docs for function returning `Result` missing `# Errors` section --> src/token/cose/key.rs:608:1 | 608 | / pub fn ensure_valid_ecdsa_key<'a, BE: Display>( 609 | | algorithm: iana::Algorithm, 610 | | parsed_key: CoseParsedKey<'a, BE>, 611 | | key_should_be_private: bool, 612 | | ) -> 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: iana::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: iana::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: iana::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: iana::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: iana::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/
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/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
Check (no_std): src/token/cose/mod.rs#L9
missing documentation for a module
Check (no_std): src/token/cose/mod.rs#L11
missing documentation for a module
Check (no_std): src/token/cose/mod.rs#L12
missing documentation for a module
Check (no_std): src/token/cose/mod.rs#L16
missing documentation for a trait
Check (no_std): src/token/cose/encrypted/mod.rs#L30
missing documentation for a method
Check (no_std): src/token/cose/encrypted/mod.rs#L39
missing documentation for a method
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/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: src/token/cose/mod.rs#L9
missing documentation for a module
Check: src/token/cose/mod.rs#L11
missing documentation for a module
Check: src/token/cose/mod.rs#L12
missing documentation for a module
Check: src/token/cose/mod.rs#L16
missing documentation for a trait
Check: src/token/cose/crypto_impl/mod.rs#L17
missing documentation for a module
Check: src/token/cose/encrypted/mod.rs#L30
missing documentation for a method
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/
missing documentation for a method: src/token/cose/recipient/mod.rs#L424
warning: missing documentation for a method --> src/token/cose/recipient/mod.rs:424:5 | 424 | / fn try_decrypt<B: CoseKeyDistributionCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>( 425 | | &self, 426 | | backend: &mut B, 427 | | key_provider: &mut CKP, ... | 430 | | external_aad: &mut CAP, 431 | | ) -> Result<Vec<CoseKey>, CoseCipherError<B::Error>>; | |_________________________________________________________^
missing documentation for a trait: src/token/cose/recipient/mod.rs#L423
warning: missing documentation for a trait --> src/token/cose/recipient/mod.rs:423:1 | 423 | pub trait CoseRecipientExt { | ^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a method: src/token/cose/recipient/mod.rs#L320
warning: missing documentation for a method --> src/token/cose/recipient/mod.rs:320:5 | 320 | / fn try_encrypt<B: CoseKeyDistributionCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>( 321 | | self, 322 | | backend: &mut B, 323 | | key_provider: &mut CKP, ... | 329 | | external_aad: &mut CAP, 330 | | ) -> Result<Self, CoseCipherError<B::Error>>; | |_________________________________________________^
missing documentation for a trait: src/token/cose/recipient/mod.rs#L319
warning: missing documentation for a trait --> src/token/cose/recipient/mod.rs:319:1 | 319 | 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: iana::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: iana::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#L608
warning: missing documentation for a function --> src/token/cose/key.rs:608:1 | 608 | / pub fn ensure_valid_ecdsa_key<'a, BE: Display>( 609 | | algorithm: iana::Algorithm, 610 | | parsed_key: CoseParsedKey<'a, BE>, 611 | | key_should_be_private: bool, 612 | | ) -> Result<CoseEc2Key<'a, BE>, CoseCipherError<BE>> { | |____________________________________________________^
missing documentation for a trait: src/token/cose/key.rs#L422
warning: missing documentation for a trait --> src/token/cose/key.rs:422:1 | 422 | pub trait CoseAadProvider: BorrowMut<Self> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a trait: src/token/cose/key.rs#L355
warning: missing documentation for a trait --> src/token/cose/key.rs:355:1 | 355 | pub trait CoseKeyProvider { | ^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a struct field: src/token/cose/key.rs#L316
warning: missing documentation for a struct field --> src/token/cose/key.rs:316:5 | 316 | pub k: &'a [u8], | ^^^^^^^^^^^^^^^
missing documentation for a struct: src/token/cose/key.rs#L314
warning: missing documentation for a struct --> src/token/cose/key.rs:314:1 | 314 | pub struct CoseSymmetricKey<'a, OE: Display> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a struct field: src/token/cose/key.rs#L233
warning: missing documentation for a struct field --> src/token/cose/key.rs:233:5 | 233 | pub x: Option<&'a [u8]>, | ^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a struct field: src/token/cose/key.rs#L232
warning: missing documentation for a struct field --> src/token/cose/key.rs:232:5 | 232 | pub d: Option<&'a [u8]>, | ^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a struct field: src/token/cose/key.rs#L231
warning: missing documentation for a struct field --> src/token/cose/key.rs:231:5 | 231 | pub crv: EllipticCurve, | ^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a struct: src/token/cose/key.rs#L229
warning: missing documentation for a struct --> src/token/cose/key.rs:229:1 | 229 | pub struct CoseOkpKey<'a, OE: Display> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a struct field: src/token/cose/key.rs#L116
warning: missing documentation for a struct field --> src/token/cose/key.rs:116:5 | 116 | pub sign: Option<bool>, | ^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a struct field: src/token/cose/key.rs#L115
warning: missing documentation for a struct field --> src/token/cose/key.rs:115:5 | 115 | pub y: Option<&'a [u8]>, | ^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a struct field: src/token/cose/key.rs#L114
warning: missing documentation for a struct field --> src/token/cose/key.rs:114:5 | 114 | pub x: Option<&'a [u8]>, | ^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a struct field: src/token/cose/key.rs#L113
warning: missing documentation for a struct field --> src/token/cose/key.rs:113:5 | 113 | pub d: Option<&'a [u8]>, | ^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a struct field: src/token/cose/key.rs#L112
warning: missing documentation for a struct field --> src/token/cose/key.rs:112:5 | 112 | pub crv: EllipticCurve, | ^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a struct: src/token/cose/key.rs#L110
warning: missing documentation for a struct --> src/token/cose/key.rs:110:1 | 110 | pub struct CoseEc2Key<'a, OE: Display> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a type alias: src/token/cose/key.rs#L107
warning: missing documentation for a type alias --> src/token/cose/key.rs:107:1 | 107 | pub type EllipticCurve = RegisteredLabelWithPrivate<iana::EllipticCurve>; | ^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a variant: src/token/cose/key.rs#L61
warning: missing documentation for a variant --> src/token/cose/key.rs:61:5 | 61 | Symmetric(CoseSymmetricKey<'a, OE>), | ^^^^^^^^^
missing documentation for a variant: src/token/cose/key.rs#L60
warning: missing documentation for a variant --> src/token/cose/key.rs:60:5 | 60 | Okp(CoseOkpKey<'a, OE>), | ^^^
missing documentation for a variant: src/token/cose/key.rs#L59
warning: missing documentation for a variant --> src/token/cose/key.rs:59:5 | 59 | Ec2(CoseEc2Key<'a, OE>), | ^^^
missing documentation for an enum: src/token/cose/key.rs#L58
warning: missing documentation for an enum --> src/token/cose/key.rs:58:1 | 58 | pub enum CoseParsedKey<'a, OE: Display> { | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
missing documentation for a variant: src/token/cose/key.rs#L29
warning: missing documentation for a variant --> src/token/cose/key.rs:29:5 | 29 | Symmetric(iana::SymmetricKeyParameter), | ^^^^^^^^^
missing documentation for a variant: src/token/cose/key.rs#L28
warning: missing documentation for a variant --> src/token/cose/key.rs:28:5 | 28 | Okp(iana::OkpKeyParameter), | ^^^
missing documentation for a variant: src/token/cose/key.rs#L27
warning: missing documentation for a variant --> src/token/cose/key.rs:27:5 | 27 | Ec2(iana::Ec2KeyParameter), | ^^^
missing documentation for a variant: src/token/cose/key.rs#L26
warning: missing documentation for a variant --> src/token/cose/key.rs:26:5 | 26 | Common(iana::KeyParameter), | ^^^^^^
missing documentation for an enum: src/token/cose/key.rs#L25
warning: missing documentation for an enum --> src/token/cose/key.rs:25:1 | 25 | 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: iana::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: iana::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: iana::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: iana::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: iana::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; | ^^^^^^^^^^^^ | note: the lint level is defined here --> src/lib.rs:313:9 | 313 | #![warn(missing_docs, rustdoc::missing_crate_level_docs)] | ^^^^^^^^^^^^
using `clone` on type `Algorithm` which implements the `Copy` trait: src/token/mod.rs#L298
warning: using `clone` on type `Algorithm` which implements the `Copy` trait --> src/token/mod.rs:298:51 | 298 | let cek_v = generate_cek_for_alg(backend, ce_alg.clone())?; | ^^^^^^^^^^^^^^ help: try removing the `clone` call: `ce_alg` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
using `clone` on type `Algorithm` which implements the `Copy` trait: src/token/cose/recipient/mod.rs#L505
warning: using `clone` on type `Algorithm` which implements the `Copy` trait --> src/token/cose/recipient/mod.rs:505:33 | 505 | ... alg.clone(), | ^^^^^^^^^^^ help: try removing the `clone` call: `alg` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy
this function has too many arguments (9/7): src/token/cose/recipient/mod.rs#L320
warning: this function has too many arguments (9/7) --> src/token/cose/recipient/mod.rs:320:5 | 320 | / fn try_encrypt<B: CoseKeyDistributionCipher, CKP: CoseKeyProvider, CAP: CoseAadProvider>( 321 | | self, 322 | | backend: &mut B, 323 | | key_provider: &mut CKP, ... | 329 | | external_aad: &mut CAP, 330 | | ) -> Result<Self, CoseCipherError<B::Error>>; | |________________________________________________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#too_many_arguments
the following explicit lifetimes could be elided: 'a: src/token/cose/maced/mod.rs#L43
warning: the following explicit lifetimes could be elided: 'a --> src/token/cose/maced/mod.rs:43:33 | 43 | pub(crate) fn is_valid_hmac_key<'a, BE: Display>( | ^^ 44 | algorithm: iana::Algorithm, 45 | parsed_key: CoseParsedKey<'a, BE>, | ^^ 46 | ) -> Result<CoseSymmetricKey<'a, BE>, CoseCipherError<BE>> { | ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes help: elide the lifetimes | 43 ~ pub(crate) fn is_valid_hmac_key<BE: Display>( 44 | algorithm: iana::Algorithm, 45 ~ parsed_key: CoseParsedKey<'_, BE>, 46 ~ ) -> Result<CoseSymmetricKey<'_, BE>, CoseCipherError<BE>> { |
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
the following explicit lifetimes could be elided: 'a: src/token/cose/key.rs#L608
warning: the following explicit lifetimes could be elided: 'a --> src/token/cose/key.rs:608:31 | 608 | pub fn ensure_valid_ecdsa_key<'a, BE: Display>( | ^^ 609 | algorithm: iana::Algorithm, 610 | parsed_key: CoseParsedKey<'a, BE>, | ^^ 611 | key_should_be_private: bool, 612 | ) -> Result<CoseEc2Key<'a, BE>, CoseCipherError<BE>> { | ^^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#needless_lifetimes = note: `#[warn(clippy::needless_lifetimes)]` on by default help: elide the lifetimes | 608 ~ pub fn ensure_valid_ecdsa_key<BE: Display>( 609 | algorithm: iana::Algorithm, 610 ~ parsed_key: CoseParsedKey<'_, BE>, 611 | key_should_be_private: bool, 612 ~ ) -> Result<CoseEc2Key<'_, BE>, CoseCipherError<BE>> { |
using `clone` on type `Algorithm` which implements the `Copy` trait: src/token/cose/key.rs#L538
warning: using `clone` on type `Algorithm` which implements the `Copy` trait --> src/token/cose/key.rs:538:13 | 538 | algorithm.clone(), | ^^^^^^^^^^^^^^^^^ help: try removing the `clone` call: `algorithm` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#clone_on_copy = note: `#[warn(clippy::clone_on_copy)]` on by default
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
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/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 (no_std): src/token/cose/mod.rs#L9
missing documentation for a module
Test Suite (no_std): src/token/cose/mod.rs#L11
missing documentation for a module
Test Suite (no_std): src/token/cose/mod.rs#L12
missing documentation for a module
Test Suite (no_std): src/token/cose/mod.rs#L16
missing documentation for a trait
Test Suite (no_std): src/token/cose/encrypted/mod.rs#L30
missing documentation for a method
Test Suite (no_std): src/token/cose/encrypted/mod.rs#L39
missing documentation for a method
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/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 Suite: src/token/cose/mod.rs#L9
missing documentation for a module
Test Suite: src/token/cose/mod.rs#L11
missing documentation for a module
Test Suite: src/token/cose/mod.rs#L12
missing documentation for a module
Test Suite: src/token/cose/mod.rs#L16
missing documentation for a trait
Test Suite: src/token/cose/crypto_impl/mod.rs#L17
missing documentation for a module
Test Suite: src/token/cose/encrypted/mod.rs#L30
missing documentation for a method
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/