Lines Matching refs:len
116 if slot_id.len() <= 0 { in get_keyslot_data()
146 if keyslot_data.len() < response.payload.len() { in get_keyslot_data()
149 keyslot_data.len(), in get_keyslot_data()
150 response.payload.len() in get_keyslot_data()
155 keyslot_data[..response.payload.len()].copy_from_slice(&response.payload[..]); in get_keyslot_data()
156 Ok(&keyslot_data[..response.payload.len()]) in get_keyslot_data()
180 if src.len() == 0 && key_buf.len() != 0 { in derive()
188 if src.len() > MAX_PAYLOAD_LEN { in derive()
189 log::error!("src context length ({:?}) > ({:?})", src.len(), MAX_PAYLOAD_LEN); in derive()
193 if key_buf.len() > MAX_PAYLOAD_LEN { in derive()
194 log::error!("key buffer length ({:?}) > ({:?})", key_buf.len(), MAX_PAYLOAD_LEN); in derive()
219 key_len: key_buf.len() as u32, in derive()
236 if key_buf.len() != response.payload.len() { in derive()
239 key_buf.len(), in derive()
240 response.payload.len() in derive()
588 if bytes.len() < header_size { in deserialize()
625 if bytes.len() < header_size { in deserialize()
635 if bytes.len() - header_size != msg.key_len as usize { in deserialize()
638 bytes.len() - header_size, in deserialize()