2 * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd All Rights Reserved
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 * @author Bartlomiej Grzelewski (b.grzelewski@samsung.com)
20 * @brief Sample service implementation.
29 // used to pass password and raw key data
30 typedef std::vector<unsigned char> RawBuffer;
31 typedef std::vector<RawBuffer> RawBufferVector;
32 typedef std::string Alias;
33 typedef std::vector<Alias> AliasVector;
35 enum class KeyType : int {
44 enum class DataFormat : int {
50 enum class ElipticCurve : int {
57 Policy(const std::string &pass = std::string(), bool extract = true, bool rest = false)
59 , extractable(extract)
63 std::string password; // byte array used to encrypt data inside CKM
64 bool extractable; // if true key may be extracted from storage
65 bool restricted; // if true only key owner may see data
68 // Added by Dongsun Lee
69 enum class HashAlgorithm : int {
76 // Added by Dongsun Lee
77 enum class RSAPaddingAlgorithm : int {
79 // XRSA_SSLV23_PADDING, // not supported
80 // XRSA_NO_PADDING, // not supported
81 // XRSA_PKCS1_OAEP_PADDING, // not supported
85 enum class DBCMAlgType : int {
93 class CertificateImpl;