Skip to main content

encode_oid

Function encode_oid 

Source
pub fn encode_oid(oid: &str) -> Result<Vec<u8>>
Expand description

Encode an OID string to DER bytes (without the tag and length).

§Arguments

  • oid - OID string in dotted notation (e.g., “2.16.840.1.101.3.4.4.1”)

§Returns

DER-encoded OID bytes

§Errors

Returns an error if the OID format is invalid