Introduce SerialNumber type#103
Conversation
f7e4369 to
6e2efdb
Compare
6e2efdb to
81c8a27
Compare
|
Sorry for the late review, i was sick during a long period in November. The PR looks good except for the fact that it introduces a dependency. Could you use |
81c8a27 to
f167174
Compare
|
Hey, no problem. Hope you're feeling better now. I've removed the bigint dependency in the latest version of the PR. |
|
So, the tests are failing because Not sure how to solve this without introducing the bigint dependency. Any suggestions? |
|
Wait, CI is giving an error: Also, maybe it would be good to have a test with a long 20 byte serial in the test suite. E.g. you create a cert, then read it back and ensure the serial number still has 20 bytes (and matches the initial array with 20 bytes). |
|
Yes, please see the comment above about the failed tests. |
|
Oh good point, we can't use |
|
@andrenth can you check if your PR will work with qnighy/yasna.rs#66 applied? |
|
Yeah, it does work after replacing the two calls of - writer.next().write_bitvec_bytes(serial.as_ref(), serial.len() * 8);
+ writer.next().write_bigint_bytes(serial.as_ref(), true); |
|
@andrenth I have released a version of |
|
@andrenth friendly ping |
|
Okay, merging anyways, I will fix it once it's merged. |
No description provided.