/* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ using mozilla::psm::EnabledSignatureScheme from "mozilla/psm/PSMIPCUtils.h"; namespace mozilla { namespace psm { struct ByteArray { uint8_t[] data; }; struct ECKey { uint8_t[] params; // the EC point representing this key uint8_t[] cert; // the encoded certificate containing this key }; struct RSAKey { uint8_t[] modulus; // the modulus of this RSA key uint8_t[] cert; // the encoded certificate containing this key }; struct Certificate { uint8_t[] der; // the encoding of this certificate }; // Helper type for sending keys and certificates over IPC for use by IPC client // certs. union IPCClientCertObject { ECKey; RSAKey; Certificate; }; struct DelegatedCredentialInfoArg { EnabledSignatureScheme scheme; uint32_t authKeyBits; }; } // namespace psm } // namespace mozilla