diff options
Diffstat (limited to 'nitrocli/src/nitrokey.rs')
-rw-r--r-- | nitrocli/src/nitrokey.rs | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/nitrocli/src/nitrokey.rs b/nitrocli/src/nitrokey.rs index 2691c01..f8995eb 100644 --- a/nitrocli/src/nitrokey.rs +++ b/nitrocli/src/nitrokey.rs @@ -78,11 +78,7 @@ impl<P> Report<P> } pub fn is_valid(&self) -> bool { - // TODO: Certain commands return a wrong CRC code that does not - // match the actual report content. For now we defuse the - // check but that cannot stay. - // return self.crc == crc(self.data.as_ref()); - return self.crc != 0; + return self.crc == crc(self.data.as_ref()); } } |