S2OPC OPCUA Toolkit
Loading...
Searching...
No Matches
key_manager_cyclone.h
Go to the documentation of this file.
1/*
2 * Licensed to Systerel under one or more contributor license
3 * agreements. See the NOTICE file distributed with this work
4 * for additional information regarding copyright ownership.
5 * Systerel licenses this file to you under the Apache
6 * License, Version 2.0 (the "License"); you may not use this
7 * file except in compliance with the License. You may obtain
8 * a copy of the License at
9 *
10 * http://www.apache.org/licenses/LICENSE-2.0
11 *
12 * Unless required by applicable law or agreed to in writing,
13 * software distributed under the License is distributed on an
14 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 * KIND, either express or implied. See the License for the
16 * specific language governing permissions and limitations
17 * under the License.
18 */
19
25#ifndef SOPC_KEY_MANAGER_LIB_H_
26#define SOPC_KEY_MANAGER_LIB_H_
27
28#include <stdbool.h>
29
30#include "sopc_crypto_decl.h"
31#include "sopc_enums.h"
32
33#include "pkix/x509_common.h"
34
42{
43 RsaPrivateKey privKey;
44 RsaPublicKey pubKey;
46};
47
60{
61 X509CertificateInfo crt;
62 SOPC_Buffer* raw; // Raw data of the cert (format DER). Must be freed.
63 RsaPublicKey pubKey; // Public key of the cert. Must be freed.
65};
66
79{
80 X509CrlInfo crl;
83};
84
86{
87 X509CsrInfo csr;
88};
89
90// INTERNAL FUNCTIONS
91
111 SOPC_AsymmetricKey* pKey);
112
113#endif /* SOPC_KEY_MANAGER_LIB_H_ */
SOPC_ReturnStatus SOPC_KeyManagerInternal_Certificate_GetPublicKey(const SOPC_CertificateList *pCert, SOPC_AsymmetricKey *pKey)
Returns the internal public key of the given signed public key.
Defines the common declarations for the cryptographic objects. The structures and macros defined in t...
enum _SOPC_ReturnStatus SOPC_ReturnStatus
Common enumerations for S2OPC.
The asymmetric key representation.
Definition key_manager_cyclone.h:42
RsaPublicKey pubKey
Definition key_manager_cyclone.h:44
bool isBorrowedFromCert
Definition key_manager_cyclone.h:45
RsaPrivateKey privKey
Definition key_manager_cyclone.h:43
Bytes buffer structure.
Definition sopc_buffer.h:38
A list of Certificate Revocation Lists.
Definition key_manager_cyclone.h:79
X509CrlInfo crl
Definition key_manager_cyclone.h:80
SOPC_Buffer * raw
Definition key_manager_cyclone.h:81
SOPC_CRLList * next
Definition key_manager_cyclone.h:82
Definition key_manager_cyclone.h:86
X509CsrInfo csr
Definition key_manager_cyclone.h:87
The signed public key representation.
Definition key_manager_cyclone.h:60
RsaPublicKey pubKey
Definition key_manager_cyclone.h:63
SOPC_CertificateList * next
Definition key_manager_cyclone.h:64
X509CertificateInfo crt
Definition key_manager_cyclone.h:61
SOPC_Buffer * raw
Definition key_manager_cyclone.h:62