/* * Copyright (c) 2020, Ali Mohammad Pur * * SPDX-License-Identifier: BSD-2-Clause */ #pragma once #include #include #include namespace Crypto { enum PEMType { Certificate, PrivateKey, }; ByteBuffer decode_pem(ReadonlyBytes); ErrorOr> decode_pems(ReadonlyBytes); ErrorOr encode_pem(ReadonlyBytes, PEMType = PEMType::Certificate); }