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