• Home
  • Raw
  • Download

Lines Matching refs:array

518         let mut array = match value {  in from_cbor_value()  localVariable
525 let cert_chain = match array.remove(1) { in from_cbor_value()
531 let version: i32 = match array.remove(0) { in from_cbor_value()
541 let mut array = Vec::<Value>::new(); in to_cbor_value() localVariable
542 array.try_push(Value::Integer(self.version.into())).map_err(|_| CoseError::EncodeFailed)?; in to_cbor_value()
543 array in to_cbor_value()
547 Ok(Value::Array(array)) in to_cbor_value()
739 let mut array = match value { in from_cbor_value() localVariable
745 let dice_chain_entries_optional = if array.len() > 2 { in from_cbor_value()
748 dice_chain_entries.try_reserve(array.len() - 2).map_err(|_| CoseError::EncodeFailed)?; in from_cbor_value()
749 for i in (2..array.len()).rev() { in from_cbor_value()
750 let dice_chain_entry_encoded = array.remove(i); in from_cbor_value()
759 let root_cose_key = match array.remove(1) { in from_cbor_value()
768 let version: i32 = match array.remove(0) { in from_cbor_value()
782 let mut array = Vec::<Value>::new(); in to_cbor_value() localVariable
783 array.try_reserve(2).map_err(|_| CoseError::EncodeFailed)?; in to_cbor_value()
784 array.push(Value::Integer(self.version.into())); in to_cbor_value()
790 array.push(Value::Bytes(self.root_key.get_key().to_vec()?)); in to_cbor_value()
793 array.try_reserve(len).map_err(|_| CoseError::EncodeFailed)?; in to_cbor_value()
795 array.push(dice_chain_entry.to_cbor_value()?); in to_cbor_value()
798 Ok(Value::Array(array)) in to_cbor_value()
1134 let mut array = Vec::<Value>::new(); in to_cbor_value() localVariable
1135 array.try_reserve(7).map_err(|_| CoseError::EncodeFailed)?; in to_cbor_value()
1136 array.push(Value::Integer(self.source_version.into())); in to_cbor_value()
1137 array.push(Value::Bytes(self.sink_ke_pub_key.0.to_vec()?)); in to_cbor_value()
1138 array.push(Value::Bytes(self.source_ke_pub_key.0.to_vec()?)); in to_cbor_value()
1139 array.push(Value::Bytes(self.sink_ke_nonce.0.to_vec())); in to_cbor_value()
1140 array.push(Value::Bytes(self.source_ke_nonce.0.to_vec())); in to_cbor_value()
1141 array.push(Value::Bytes(self.sink_cert_chain.to_vec()?)); in to_cbor_value()
1142 array.push(Value::Bytes(self.source_cert_chain.to_vec()?)); in to_cbor_value()
1143 Ok(Value::Array(array)) in to_cbor_value()
1156 let mut array = Vec::<Value>::new(); in to_cbor_value() localVariable
1157 array.try_reserve(2).map_err(|_| CoseError::EncodeFailed)?; in to_cbor_value()
1158 array.push(Value::Bytes(self.sink_ke_nonce.0.to_vec())); in to_cbor_value()
1159 array.push(Value::Bytes(self.source_ke_nonce.0.to_vec())); in to_cbor_value()
1160 Ok(Value::Array(array)) in to_cbor_value()