/external/rust/android-crates-io/crates/coset/src/cwt/ |
D | mod.rs | 48 fn to_cbor_value(self) -> Result<Value, CoseError> { in to_cbor_value() method 120 fn to_cbor_value(self) -> Result<Value, CoseError> { in to_cbor_value() method 123 map.push((ISS.to_cbor_value()?, Value::Text(iss))); in to_cbor_value() 126 map.push((SUB.to_cbor_value()?, Value::Text(sub))); in to_cbor_value() 129 map.push((AUD.to_cbor_value()?, Value::Text(aud))); in to_cbor_value() 132 map.push((EXP.to_cbor_value()?, exp.to_cbor_value()?)); in to_cbor_value() 135 map.push((NBF.to_cbor_value()?, nbf.to_cbor_value()?)); in to_cbor_value() 138 map.push((IAT.to_cbor_value()?, iat.to_cbor_value()?)); in to_cbor_value() 141 map.push((CTI.to_cbor_value()?, Value::Bytes(cti))); in to_cbor_value() 144 map.push((label.to_cbor_value()?, value)); in to_cbor_value()
|
/external/rust/android-crates-io/crates/coset/src/header/ |
D | mod.rs | 209 fn to_cbor_value(mut self) -> Result<Value> { in to_cbor_value() method 212 map.push((ALG.to_cbor_value()?, alg.to_cbor_value()?)); in to_cbor_value() 215 map.push((CRIT.to_cbor_value()?, to_cbor_array(self.crit)?)); in to_cbor_value() 218 map.push((CONTENT_TYPE.to_cbor_value()?, content_type.to_cbor_value()?)); in to_cbor_value() 221 map.push((KID.to_cbor_value()?, Value::Bytes(self.key_id))); in to_cbor_value() 224 map.push((IV.to_cbor_value()?, Value::Bytes(self.iv))); in to_cbor_value() 227 map.push((PARTIAL_IV.to_cbor_value()?, Value::Bytes(self.partial_iv))); in to_cbor_value() 233 COUNTER_SIG.to_cbor_value()?, in to_cbor_value() 234 self.counter_signatures.remove(0).to_cbor_value()?, in to_cbor_value() 238 COUNTER_SIG.to_cbor_value()?, in to_cbor_value() [all …]
|
/external/rust/android-crates-io/crates/coset/src/key/ |
D | mod.rs | 57 fn to_cbor_value(self) -> Result<Value> { in to_cbor_value() method 174 fn to_cbor_value(self) -> Result<Value> { in to_cbor_value() method 175 let mut map: Vec<(Value, Value)> = vec![(KTY.to_cbor_value()?, self.kty.to_cbor_value()?)]; in to_cbor_value() 177 map.push((KID.to_cbor_value()?, Value::Bytes(self.key_id))); in to_cbor_value() 180 map.push((ALG.to_cbor_value()?, alg.to_cbor_value()?)); in to_cbor_value() 183 map.push((KEY_OPS.to_cbor_value()?, to_cbor_array(self.key_ops)?)); in to_cbor_value() 186 map.push((BASE_IV.to_cbor_value()?, Value::Bytes(self.base_iv))); in to_cbor_value() 194 map.push((label.to_cbor_value()?, value)); in to_cbor_value()
|
/external/rust/android-crates-io/crates/coset/src/context/ |
D | mod.rs | 85 fn to_cbor_value(self) -> Result<Value> { in to_cbor_value() method 157 fn to_cbor_value(self) -> Result<Value> { in to_cbor_value() method 231 fn to_cbor_value(self) -> Result<Value> { in to_cbor_value() method 233 self.algorithm_id.to_cbor_value()?, in to_cbor_value() 234 self.party_u_info.to_cbor_value()?, in to_cbor_value() 235 self.party_v_info.to_cbor_value()?, in to_cbor_value() 236 self.supp_pub_info.to_cbor_value()?, in to_cbor_value()
|
/external/rust/android-crates-io/crates/coset/src/common/ |
D | mod.rs | 134 fn to_cbor_value(self) -> Result<Value>; in to_cbor_value() method 148 cbor::ser::into_writer(&self.to_cbor_value()?, &mut data)?; in to_vec() 173 &Value::Tag(Self::TAG, Box::new(self.to_cbor_value()?)), in to_tagged_vec() 185 fn to_cbor_value(self) -> Result<Value> { in to_cbor_value() method 282 fn to_cbor_value(self) -> Result<Value> { in to_cbor_value() method 337 fn to_cbor_value(self) -> Result<Value> { in to_cbor_value() method 398 fn to_cbor_value(self) -> Result<Value> { in to_cbor_value() method
|
D | tests.rs | 462 assert_eq!(val, val.clone().to_cbor_value().unwrap()); in test_as_cbor_value()
|
/external/rust/android-crates-io/crates/coset/src/encrypt/ |
D | mod.rs | 81 fn to_cbor_value(self) -> Result<Value> { in to_cbor_value() method 84 self.unprotected.to_cbor_value()?, in to_cbor_value() 250 fn to_cbor_value(self) -> Result<Value> { in to_cbor_value() method 253 self.unprotected.to_cbor_value()?, in to_cbor_value() 379 fn to_cbor_value(self) -> Result<Value> { in to_cbor_value() method 382 self.unprotected.to_cbor_value()?, in to_cbor_value()
|
D | tests.rs | 289 .build().to_cbor_value().unwrap()) in test_rfc8152_cose_encrypt_decode() 378 .build().to_cbor_value().unwrap()) in test_rfc8152_cose_encrypt_decode()
|
/external/rust/android-crates-io/crates/coset/src/sign/ |
D | mod.rs | 64 fn to_cbor_value(self) -> Result<Value> { in to_cbor_value() method 67 self.unprotected.to_cbor_value()?, in to_cbor_value() 131 fn to_cbor_value(self) -> Result<Value> { in to_cbor_value() method 134 self.unprotected.to_cbor_value()?, in to_cbor_value() 346 fn to_cbor_value(self) -> Result<Value> { in to_cbor_value() method 349 self.unprotected.to_cbor_value()?, in to_cbor_value()
|
/external/rust/android-crates-io/crates/coset/src/mac/ |
D | mod.rs | 82 fn to_cbor_value(self) -> Result<Value> { in to_cbor_value() method 85 self.unprotected.to_cbor_value()?, in to_cbor_value() 219 fn to_cbor_value(self) -> Result<Value> { in to_cbor_value() method 222 self.unprotected.to_cbor_value()?, in to_cbor_value()
|
D | tests.rs | 292 .build().to_cbor_value().unwrap()) in test_rfc8152_cose_mac_decode()
|
/external/rust/android-crates-io/crates/coset/src/util/ |
D | mod.rs | 156 .map(|e| e.to_cbor_value()) in to_cbor_array()
|