2 * Copyright (c) 2014 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 Zofia Abramowska (z.abramowska@samsung.com)
20 * @brief OBJECT_TABLE entry enhanced with corresponding NAME_TABLE identifier
25 #include <ckm/ckm-type.h>
26 #include <protocols.h>
32 struct Row : public Token {
36 algorithmType(DBCMAlgType::NONE),
40 Row(Token token, const Name &pName, const Label &pLabel, int pExportable) :
41 Token(std::move(token)),
44 exportable(pExportable),
45 algorithmType(DBCMAlgType::NONE),
47 dataSize(data.size()) {}
52 DBCMAlgType algorithmType = DBCMAlgType::NONE; // Row data encryption algorithm
53 int encryptionScheme = 0; // for example: (ENCR_BASE64 | ENCR_PASSWORD)
54 RawBuffer iv; // encoded in base64
55 int dataSize = 0; // size of information without hash and padding
56 RawBuffer tag; // tag for Aes Gcm algorithm
59 using RowVector = std::vector<Row>;