S2OPC OPCUA Toolkit
Loading...
Searching...
No Matches
sopc_crypto_provider_lib_itf.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
26#ifndef SOPC_CRYPTO_PROVIDER_LIB_ITF_H_
27#define SOPC_CRYPTO_PROVIDER_LIB_ITF_H_
28
29#include "sopc_crypto_decl.h"
30#include "sopc_enums.h"
31
32/* ------------------------------------------------------------------------------------------------
33 * CryptoProvider Creation
34 * ------------------------------------------------------------------------------------------------
35 */
36
51
64
65/* ------------------------------------------------------------------------------------------------
66 * CryptoProvider get-length & uris operations
67 * ------------------------------------------------------------------------------------------------
68 */
69
89 const SOPC_AsymmetricKey* pKey,
90 uint32_t* pLenKeyBits);
91
109 const SOPC_AsymmetricKey* pKey,
110 uint32_t* pLenMsg);
111
128 const SOPC_AsymmetricKey* pKey,
129 uint32_t* pLenMsg);
130
131#endif /* SOPC_CRYPTO_PROVIDER_LIB_ITF_H_ */
Defines the common declarations for the cryptographic objects. The structures and macros defined in t...
SOPC_ReturnStatus SOPC_CryptoProvider_AsymmetricGetLength_MsgPlainText(const SOPC_CryptoProvider *pProvider, const SOPC_AsymmetricKey *pKey, uint32_t *pLenMsg)
Provides the maximum length in bytes of a message to be encrypted with a single asymmetric encryption...
SOPC_ReturnStatus SOPC_CryptoProvider_AsymmetricGetLength_MsgCipherText(const SOPC_CryptoProvider *pProvider, const SOPC_AsymmetricKey *pKey, uint32_t *pLenMsg)
Provides the length in bytes of a ciphered message to be decrypted with a single asymmetric decryptio...
SOPC_ReturnStatus SOPC_CryptoProvider_AsymmetricGetLength_KeyBits(const SOPC_CryptoProvider *pProvider, const SOPC_AsymmetricKey *pKey, uint32_t *pLenKeyBits)
Writes the length in bits in pLenKeyBits of the asymmetric key pKey.
SOPC_ReturnStatus SOPC_CryptoProvider_Init(SOPC_CryptoProvider *pCryptoProvider)
Initializes a SOPC_CryptoProvider context. Called by SOPC_CryptoProvider_Create() upon context creati...
SOPC_ReturnStatus SOPC_CryptoProvider_Deinit(SOPC_CryptoProvider *pCryptoProvider)
Deinitialize a SOPC_CryptoProvider context (this process is specific to the chosen cryptographic libr...
enum _SOPC_ReturnStatus SOPC_ReturnStatus
Common enumerations for S2OPC.
The asymmetric key representation.
Definition key_manager_cyclone.h:42
The SOPC_CryptoProvider context.
Definition sopc_crypto_provider.h:43