OID as bytes #11
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
I am currently looking into parsing some ASN1 strcuts with varyin OCTET STRING sub parts.
It would be super awesome if one could compare against byte slices directly for equality or get a
to_vec()method to yield just OID part of the particular ASN1 block to be able to compare them.If either of them would be a desired addition, I am happy to extend
OIDa little bit :)Sounds very reasonable to me. I probably can't get to it in a little bit (maybe sometime late next week?), so if you want to send in a merge request with something like what you're looking for, I'm happy to take it.
So I realized that the blocks used by the
rsacrate are actually the fully encoded der OIDs - not just the OID as bytes (see https://docs.rs/rsa/0.2.0/src/rsa/hash.rs.html#46-70 )I went forward and implemented the
as_raw()anyways in #12 , closing this to continue discussion there as needed :)Thanks for creating this library!