Conversation
|
I'd be ok making |
There are quite a lot of functions/methods expecting |
|
I don't think Digest is a good analogy here. Code should be clear and readable, and explicitly indicating that what you want is DER contributes to that. |
Signed-off-by: Sebastian Walz <sebastian.walz@secunet.com>
Signed-off-by: Sebastian Walz <sebastian.walz@secunet.com>
7695513 to
4f384f0
Compare
|
I changed it as suggested (public |
impl AsRef<[u8]> for ObjectIdentifierObjectIdentifier::as_der public
I use this crate primarily for its OID type. It’s unlikely that the current internal implementation will significantly change, so exposing the inner slice for reading is more useful than using with fallible (yet never failing)
SimpleAsn1Writablemethods.