2 // Copyright (c) 2012 Samsung Electronics Co., Ltd.
4 // Licensed under the Apache License, Version 2.0 (the License);
5 // you may not use this file except in compliance with the License.
6 // You may obtain a copy of the License at
8 // http://www.apache.org/licenses/LICENSE-2.0
10 // Unless required by applicable law or agreed to in writing, software
11 // distributed under the License is distributed on an "AS IS" BASIS,
12 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 // See the License for the specific language governing permissions and
14 // limitations under the License.
18 * @file FSecCrypto_KeaCore.h
19 * @brief This header file contains declarations of KEA Key Exchange algorithms and Shared Secret Generation.
21 #ifndef _FSEC_CRYPTO_INTERNAL_KEA_CORE_H_
22 #define _FSEC_CRYPTO_INTERNAL_KEA_CORE_H_
26 namespace Tizen { namespace Security { namespace Crypto
35 bignum_st* pPubKey1; // y
36 bignum_st* pPrivKey1; // x
37 bignum_st* pPubKey2; // r
38 bignum_st* pPrivKey2; // t
45 static Kea* CreateKeaN(void);
46 static void DeleteKea(Kea* pKea);
47 static result ComputeKeaKey(byte** ppKey, bignum_st* pPublicKey1, bignum_st* pPublicKey2, Kea& keaVar);
48 static byte* ComputeKeaSecret(byte* pKey, int len);
52 _KeaCore(const _KeaCore& rhs);
53 _KeaCore& operator =(const _KeaCore& rhs);
58 } } } // Tizen::Security::Crypto
60 #endif //_FSEC_CRYPTO_INTERNAL_KEA_CORE_H_