Searched refs:pem_marker (Results 1 – 2 of 2) sorted by relevance
/external/python/rsa/rsa/ |
D | pem.py | 24 def _markers(pem_marker: FlexiText) -> typing.Tuple[bytes, bytes]: 29 if not isinstance(pem_marker, bytes): 30 pem_marker = pem_marker.encode('ascii') 32 return (b'-----BEGIN ' + pem_marker + b'-----', 33 b'-----END ' + pem_marker + b'-----') 81 def load_pem(contents: FlexiText, pem_marker: FlexiText) -> bytes: 100 (pem_start, pem_end) = _markers(pem_marker) 108 def save_pem(contents: bytes, pem_marker: FlexiText) -> bytes: 120 (pem_start, pem_end) = _markers(pem_marker)
|
/external/scapy/scapy/layers/tls/ |
D | cert.py | 122 def __call__(cls, obj_path, obj_max_size, pem_marker=None): argument 158 if pem_marker is not None: 159 pem = der2pem(_raw, pem_marker)
|