MCPcopy
hub / github.com/pyca/cryptography / from_bytes

Method from_bytes

src/cryptography/x509/name.py:324–328  ·  view source on GitHub ↗

Parse a DER encoded X.509 name (the inverse of ``public_bytes``).

(cls, data: bytes)

Source from the content-addressed store, hash-verified

322
323 @classmethod
324 def from_bytes(cls, data: bytes) -> Name:
325 """
326 Parse a DER encoded X.509 name (the inverse of ``public_bytes``).
327 """
328 return rust_x509.parse_name_bytes(data)
329
330 def rfc4514_string(
331 self, attr_name_overrides: _OidNameMap | None = None

Callers 15

_wrap_coreFunction · 0.80
_unwrap_coreFunction · 0.80
_get_u32Function · 0.80
_get_u64Function · 0.80
_get_mpintFunction · 0.80
_dynamic_truncateMethod · 0.80
random_serial_numberFunction · 0.80

Calls

no outgoing calls

Tested by 10

test_dh_vectorsMethod · 0.64
test_from_bytesMethod · 0.64
load_keyMethod · 0.64