S2OPC OPCUA Toolkit
sopc_crypto_decl.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 
29 #ifndef SOPC_CRYPTO_DECL_H_
30 #define SOPC_CRYPTO_DECL_H_
31 
32 #include <stdbool.h>
33 #include <stdint.h>
34 
35 #include "sopc_buffer.h"
36 #include "sopc_secret_buffer.h"
37 
41 
42 // This section contains structs that required specific definition from implementation
46 typedef struct SOPC_CRLList SOPC_CRLList;
47 typedef struct SOPC_CSR SOPC_CSR;
48 
49 #define SOPC_CertificateValidationError_Invalid 0x80120000
50 #define SOPC_CertificateValidationError_PolicyCheckFailed 0x81140000
51 #define SOPC_CertificateValidationError_TimeInvalid 0x80140000
52 #define SOPC_CertificateValidationError_IssuerTimeInvalid 0x80150000
53 #define SOPC_CertificateValidationError_HostNameInvalid 0x80160000
54 #define SOPC_CertificateValidationError_UriInvalid 0x80170000
55 #define SOPC_CertificateValidationError_UseNotAllowed 0x80180000
56 #define SOPC_CertificateValidationError_IssuerUseNotAllowed 0x80190000
57 #define SOPC_CertificateValidationError_Untrusted 0x801A0000
58 #define SOPC_CertificateValidationError_RevocationUnknown 0x801B0000
59 #define SOPC_CertificateValidationError_IssuerRevocationUnknown 0x801C0000
60 #define SOPC_CertificateValidationError_Revoked 0x801D0000
61 #define SOPC_CertificateValidationError_IssuerRevoked 0x801E0000
62 #define SOPC_CertificateValidationError_ChainIncomplete 0x810D0000
63 #define SOPC_CertificateValidationError_Unknown 0x80000000
64 
71 
78 
79 #endif /* SOPC_CRYPTO_DECL_H_ */
SOPC_CertificateList
The signed public key representation, or a chained list of such keys.
Definition: key_manager_mbedtls.h:65
SOPC_SerializedCertificate
SOPC_Buffer SOPC_SerializedCertificate
A serialized representation of a certificate in DER format.
Definition: sopc_crypto_decl.h:77
SOPC_SerializedAsymmetricKey
SOPC_SecretBuffer SOPC_SerializedAsymmetricKey
A serialized representation of an asymmetric key.
Definition: sopc_crypto_decl.h:70
SOPC_Buffer
Bytes buffer structure.
Definition: sopc_buffer.h:38
SOPC_CryptolibContext
Definition: crypto_provider_mbedtls.h:35
SOPC_CryptoProvider
The SOPC_CryptoProvider context.
Definition: sopc_crypto_provider.h:43
SOPC_CSR
Definition: key_manager_mbedtls.h:86
SOPC_AsymmetricKey
The asymmetric key representation.
Definition: key_manager_mbedtls.h:45
SOPC_CryptoProfile
SOPC_CryptoProfiles gather pointers to cryptographic functions of the security policies of OPC UA Ser...
Definition: sopc_crypto_profiles.h:181
SOPC_CryptoProfile_PubSub
SOPC_CryptoProfiles_PubSub gather pointers to cryptographic functions of the security policies of OPC...
Definition: sopc_crypto_profiles.h:205
SOPC_SecretBuffer
struct SOPC_SecretBuffer SOPC_SecretBuffer
Definition: sopc_secret_buffer.h:35
sopc_secret_buffer.h
SecretBuffer (mangled key) and ExposedBuffer (contiguous deciphered buffered) APIs.
SOPC_CRLList
A list of Certificate Revocation Lists.
Definition: key_manager_mbedtls.h:81
sopc_buffer.h
A buffer of bytes with a maximum size, length and position.