(&self, key: &AES128Key)
| 668 | /// Validate the join-request MIC. |
| 669 | #[cfg(feature = "crypto")] |
| 670 | pub fn validate_join_request_mic(&self, key: &AES128Key) -> Result<bool> { |
| 671 | if let Some(v) = self.mic { |
| 672 | let mic = self.calculate_upink_join_mic(key)?; |
| 673 | return Ok(v == mic); |
| 674 | } |
| 675 | |
| 676 | Ok(false) |
| 677 | } |
| 678 | |
| 679 | /// Set the the downlink join-accept MIC. |
| 680 | #[cfg(feature = "crypto")] |
no test coverage detected