Home
last modified time | relevance | path

Searched refs:to_cbor_value (Results 1 – 12 of 12) sorted by relevance

/external/rust/android-crates-io/crates/coset/src/cwt/
Dmod.rs48 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/
Dmod.rs209 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/
Dmod.rs57 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/
Dmod.rs85 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/
Dmod.rs134 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
Dtests.rs462 assert_eq!(val, val.clone().to_cbor_value().unwrap()); in test_as_cbor_value()
/external/rust/android-crates-io/crates/coset/src/encrypt/
Dmod.rs81 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()
Dtests.rs289 .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/
Dmod.rs64 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/
Dmod.rs82 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()
Dtests.rs292 .build().to_cbor_value().unwrap()) in test_rfc8152_cose_mac_decode()
/external/rust/android-crates-io/crates/coset/src/util/
Dmod.rs156 .map(|e| e.to_cbor_value()) in to_cbor_array()