Checkpoint: Signing seems to work, but there's a lot of cruft and cross-checks.

This commit is contained in:
2019-05-15 18:11:23 -07:00
parent d459850c54
commit 9cf0b587b2
7 changed files with 4137 additions and 167 deletions

View File

@@ -23,11 +23,11 @@ fn next_value_set(line: &str) -> (String, bool, Vec<u8>)
while let Some(c1) = nibble_iter.next() {
match nibble_iter.next() {
None => {
val.push( c1.to_digit(16).unwrap() as u8 );
val.push( c1.to_digit(16).expect(&format!("Unexpected character: |{}|", c1)) as u8 );
}
Some(c2) => {
let b1 = c1.to_digit(16).unwrap() as u8;
let b2 = c2.to_digit(16).unwrap() as u8;
let b1 = c1.to_digit(16).expect(&format!("Unexpected character: |{}|", c1)) as u8;
let b2 = c2.to_digit(16).expect(&format!("Unexpected character: |{}|", c2)) as u8;
val.push( (b2 << 4) | b1 );
}
}