Change AES CBC mode into AES GCM.
[platform/core/security/key-manager.git] / src / manager / service / db-row.h
1 #pragma once
2
3 #include <string>
4
5 #include <ckm/ckm-type.h>
6 #include <protocols.h>
7
8 namespace CKM {
9     struct DBRow {
10         std::string alias;
11         std::string smackLabel;
12         int restricted;
13         int exportable;
14         DBDataType dataType;        // cert/key/data
15         DBCMAlgType algorithmType;  // Algorithm type used for row data encryption
16         int encryptionScheme;       // for example: (ENCR_BASE64 | ENCR_PASSWORD)
17         RawBuffer iv;               // encoded in base64
18         int dataSize;               // size of information without hash and padding
19         RawBuffer data;
20         RawBuffer tag;              // tag for Aes Gcm algorithm
21     };
22 } // namespace CKM
23