Skip to content

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

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. #92

GitHub Actions / clippy failed Jun 29, 2024 in 3s

clippy

54 errors, 133 warnings

Details

Results

Message level Amount
Internal compiler error 0
Error 54
Warning 133
Note 0
Help 0

Versions

  • rustc 1.79.0 (129f3b996 2024-06-10)
  • cargo 1.79.0 (ffa9cf99a 2024-06-03)
  • clippy 0.1.79 (129f3b9 2024-06-10)

Annotations

Check warning on line 156 in src/token/cose/sign/sign1.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a method

warning: missing documentation for a method
   --> src/token/cose/sign/sign1.rs:143:5
    |
143 | /     fn try_verify_detached<
144 | |         'a,
145 | |         'b,
146 | |         B: CoseSignCipher,
...   |
155 | |         aad: &mut CAP,
156 | |     ) -> Result<(), CoseCipherError<B::Error>>;
    | |_______________________________________________^

Check warning on line 141 in src/token/cose/sign/sign1.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a method

warning: missing documentation for a method
   --> src/token/cose/sign/sign1.rs:135:5
    |
135 | /     fn try_verify<'a, 'b, B: CoseSignCipher, CKP: CoseKeyProvider<'a>, CAP: CoseAadProvider<'b>>(
136 | |         &self,
137 | |         backend: &mut B,
138 | |         key_provider: &mut CKP,
139 | |         try_all_keys: bool,
140 | |         aad: &mut CAP,
141 | |     ) -> Result<(), CoseCipherError<B::Error>>;
    | |_______________________________________________^

Check warning on line 134 in src/token/cose/sign/sign1.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a trait

warning: missing documentation for a trait
   --> src/token/cose/sign/sign1.rs:134:1
    |
134 | pub trait CoseSign1Ext {
    | ^^^^^^^^^^^^^^^^^^^^^^

Check warning on line 120 in src/token/cose/sign/sign.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a method

warning: missing documentation for a method
   --> src/token/cose/sign/sign.rs:107:5
    |
107 | /     fn try_verify_detached<
108 | |         'a,
109 | |         'b,
110 | |         B: CoseSignCipher,
...   |
119 | |         aad: &mut CAP,
120 | |     ) -> Result<(), CoseCipherError<B::Error>>;
    | |_______________________________________________^

Check warning on line 105 in src/token/cose/sign/sign.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a method

warning: missing documentation for a method
   --> src/token/cose/sign/sign.rs:99:5
    |
99  | /     fn try_verify<'a, 'b, B: CoseSignCipher, CKP: CoseKeyProvider<'a>, CAP: CoseAadProvider<'b>>(
100 | |         &self,
101 | |         backend: &mut B,
102 | |         key_provider: &mut CKP,
103 | |         try_all_keys: bool,
104 | |         aad: &mut CAP,
105 | |     ) -> Result<(), CoseCipherError<B::Error>>;
    | |_______________________________________________^

Check warning on line 32 in src/token/cose/sign/sign.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a method

warning: missing documentation for a method
  --> src/token/cose/sign/sign.rs:19:5
   |
19 | /     fn try_add_sign_detached<
20 | |         'a,
21 | |         'b,
22 | |         B: CoseSignCipher,
...  |
31 | |         aad: &mut CAP,
32 | |     ) -> Result<Self, CoseCipherError<B::Error>>;
   | |_________________________________________________^

Check warning on line 17 in src/token/cose/sign/sign.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a method

warning: missing documentation for a method
  --> src/token/cose/sign/sign.rs:11:5
   |
11 | /     fn try_add_sign<'a, 'b, B: CoseSignCipher, CKP: CoseKeyProvider<'a>, CAP: CoseAadProvider<'b>>(
12 | |         self,
13 | |         backend: &mut B,
14 | |         key_provider: &mut CKP,
15 | |         sig: CoseSignature,
16 | |         aad: &mut CAP,
17 | |     ) -> Result<Self, CoseCipherError<B::Error>>;
   | |_________________________________________________^

Check warning on line 401 in src/token/cose/key.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a trait

warning: missing documentation for a trait
   --> src/token/cose/key.rs:401:1
    |
401 | pub trait CoseAadProvider<'a>: BorrowMut<Self> {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check warning on line 334 in src/token/cose/key.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a trait

warning: missing documentation for a trait
   --> src/token/cose/key.rs:334:1
    |
334 | pub trait CoseKeyProvider<'a> {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check warning on line 295 in src/token/cose/key.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct field

warning: missing documentation for a struct field
   --> src/token/cose/key.rs:295:5
    |
295 |     pub k: &'a [u8],
    |     ^^^^^^^^^^^^^^^

Check warning on line 293 in src/token/cose/key.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
   --> src/token/cose/key.rs:293:1
    |
293 | pub struct CoseSymmetricKey<'a, OE: Display> {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check warning on line 215 in src/token/cose/key.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct field

warning: missing documentation for a struct field
   --> src/token/cose/key.rs:215:5
    |
215 |     pub x: Option<&'a [u8]>,
    |     ^^^^^^^^^^^^^^^^^^^^^^^

Check warning on line 214 in src/token/cose/key.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct field

warning: missing documentation for a struct field
   --> src/token/cose/key.rs:214:5
    |
214 |     pub d: Option<&'a [u8]>,
    |     ^^^^^^^^^^^^^^^^^^^^^^^

Check warning on line 213 in src/token/cose/key.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct field

warning: missing documentation for a struct field
   --> src/token/cose/key.rs:213:5
    |
213 |     pub crv: EllipticCurve,
    |     ^^^^^^^^^^^^^^^^^^^^^^

Check warning on line 211 in src/token/cose/key.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
   --> src/token/cose/key.rs:211:1
    |
211 | pub struct CoseOkpKey<'a, OE: Display> {
    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check warning on line 102 in src/token/cose/key.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct field

warning: missing documentation for a struct field
   --> src/token/cose/key.rs:102:5
    |
102 |     pub sign: Option<bool>,
    |     ^^^^^^^^^^^^^^^^^^^^^^

Check warning on line 101 in src/token/cose/key.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct field

warning: missing documentation for a struct field
   --> src/token/cose/key.rs:101:5
    |
101 |     pub y: Option<&'a [u8]>,
    |     ^^^^^^^^^^^^^^^^^^^^^^^

Check warning on line 100 in src/token/cose/key.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct field

warning: missing documentation for a struct field
   --> src/token/cose/key.rs:100:5
    |
100 |     pub x: Option<&'a [u8]>,
    |     ^^^^^^^^^^^^^^^^^^^^^^^

Check warning on line 99 in src/token/cose/key.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct field

warning: missing documentation for a struct field
  --> src/token/cose/key.rs:99:5
   |
99 |     pub d: Option<&'a [u8]>,
   |     ^^^^^^^^^^^^^^^^^^^^^^^

Check warning on line 98 in src/token/cose/key.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct field

warning: missing documentation for a struct field
  --> src/token/cose/key.rs:98:5
   |
98 |     pub crv: EllipticCurve,
   |     ^^^^^^^^^^^^^^^^^^^^^^

Check warning on line 96 in src/token/cose/key.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a struct

warning: missing documentation for a struct
  --> src/token/cose/key.rs:96:1
   |
96 | pub struct CoseEc2Key<'a, OE: Display> {
   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

Check warning on line 94 in src/token/cose/key.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a type alias

warning: missing documentation for a type alias
  --> src/token/cose/key.rs:94:1
   |
94 | pub type EllipticCurve = RegisteredLabelWithPrivate<iana::EllipticCurve>;
   | ^^^^^^^^^^^^^^^^^^^^^^

Check warning on line 48 in src/token/cose/key.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a variant

warning: missing documentation for a variant
  --> src/token/cose/key.rs:48:5
   |
48 |     Symmetric(CoseSymmetricKey<'a, OE>),
   |     ^^^^^^^^^

Check warning on line 47 in src/token/cose/key.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a variant

warning: missing documentation for a variant
  --> src/token/cose/key.rs:47:5
   |
47 |     Okp(CoseOkpKey<'a, OE>),
   |     ^^^

Check warning on line 46 in src/token/cose/key.rs

See this annotation in the file changed.

@github-actions github-actions / clippy

missing documentation for a variant

warning: missing documentation for a variant
  --> src/token/cose/key.rs:46:5
   |
46 |     Ec2(CoseEc2Key<'a, OE>),
   |     ^^^