platform/core/security/key-manager.git
10 years agoApply TIZEN_ERROR_KEY_MANAGER value of tizen.error.h
yuseok.jeon [Wed, 6 Aug 2014 07:02:49 +0000 (16:02 +0900)]
Apply TIZEN_ERROR_KEY_MANAGER value of tizen.error.h

Change-Id: Ib5893f934e34674ff0f9e94c6436ce0a37647cad
Signed-off-by: yuseok.jeon <yuseok.jeon@samsung.com>
10 years agoFix doc related to exportable flag
yuseok.jeon [Wed, 6 Aug 2014 02:27:26 +0000 (11:27 +0900)]
Fix doc related to exportable flag

Signed-off-by: yuseok.jeon <yuseok.jeon@samsung.com>
10 years agoFix implementation of exportable flag.
Bartlomiej Grzelewski [Mon, 4 Aug 2014 12:29:28 +0000 (14:29 +0200)]
Fix implementation of exportable flag.

Change-Id: I08337d7e1e0bfd5194748d824b0bebe598bb6edc

10 years agoFix error in ckmc_load_from_pkcs12_file
kyungwook tak [Wed, 30 Jul 2014 12:01:42 +0000 (21:01 +0900)]
Fix error in ckmc_load_from_pkcs12_file

Change-Id: I3747778d1f53b88f9001ce404c8f1603465ca292
Signed-off-by: kyungwook tak <k.tak@samsung.com>
10 years agoFix doc include section
kyungwook tak [Wed, 30 Jul 2014 05:29:00 +0000 (14:29 +0900)]
Fix doc include section

Change-Id: I9965a9ff0c27a1939b1a3240bffd6a78d375b25c
Signed-off-by: kyungwook tak <k.tak@samsung.com>
10 years agoFix rootstrap error
kyungwook tak [Mon, 28 Jul 2014 11:45:27 +0000 (20:45 +0900)]
Fix rootstrap error

Change-Id: Ia9ebea239c5190d53e7b0d7173e49723cc21bacc
Signed-off-by: kyungwook tak <k.tak@samsung.com>
10 years agoRemove compilation warrnings from sqlcipher.
Bartlomiej Grzelewski [Thu, 24 Jul 2014 10:41:13 +0000 (12:41 +0200)]
Remove compilation warrnings from sqlcipher.

Change-Id: Ie9b9edcc4c113b228fcebc79a672109842aaaf73

10 years agoReplace std::string with CKM::Password
Bartlomiej Grzelewski [Thu, 24 Jul 2014 16:53:55 +0000 (18:53 +0200)]
Replace std::string with CKM::Password

Change-Id: I695f3beb018d8a2b0a1fe4b17b99cd9cbd60c226

10 years agoTypedef password type
Zofia Abramowska [Wed, 23 Jul 2014 15:24:04 +0000 (17:24 +0200)]
Typedef password type

Change-Id: Ie5430448be3703646b7d04aaed27a8175a95e34f

10 years agoFix dependency about capi-base-common
kyungwook tak [Thu, 24 Jul 2014 08:57:43 +0000 (17:57 +0900)]
Fix dependency about capi-base-common

Change-Id: I2da5516a131907ef29d5b88441b3ac62b237f235
Signed-off-by: kyungwook tak <k.tak@samsung.com>
10 years agoRemove infinite loop from SqlConnection
Zofia Abramowska [Tue, 22 Jul 2014 15:03:30 +0000 (17:03 +0200)]
Remove infinite loop from SqlConnection

Change-Id: I9437401d609e9e2ec57fbb10416b440f0039afba

10 years agoerror names changed for tizen common error
Dong Sun Lee [Thu, 24 Jul 2014 04:38:04 +0000 (13:38 +0900)]
error names changed for tizen common error

Signed-off-by: Dong Sun Lee <ds73.lee@samsung.com>
10 years agochanged to tizen compatible error type
Dong Sun Lee [Thu, 24 Jul 2014 02:47:49 +0000 (11:47 +0900)]
changed to tizen compatible error type

Change-Id: I10c23ffc36f97824dc5062709711d1ca70ee1c14
Signed-off-by: Dong Sun Lee <ds73.lee@samsung.com>
10 years agoReflect ACR comments for enum and struct in core API
yuseok.jeon [Wed, 23 Jul 2014 12:52:07 +0000 (21:52 +0900)]
Reflect ACR comments for enum and struct in core API

Change-Id: I0ac91b03c310763e30d110f96bdbfd29d32299cc
Signed-off-by: yuseok.jeon <yuseok.jeon@samsung.com>
10 years agoRemove deprecated warning from ExecCommand
Zofia Abramowska [Mon, 21 Jul 2014 16:27:01 +0000 (18:27 +0200)]
Remove deprecated warning from ExecCommand

Change-Id: Ia65573cd5bcfeda269b29f0409fff472a4712e1a

10 years agoRewrite checking if row exists when deleting from db
Zofia Abramowska [Mon, 21 Jul 2014 12:51:13 +0000 (14:51 +0200)]
Rewrite checking if row exists when deleting from db

Change-Id: Id953004b2026b649505cada853413232f23519db

10 years agoUse SafeBuffer in C++ api. Rename SafeBuffer to RawBuffer.
Bartlomiej Grzelewski [Wed, 23 Jul 2014 08:53:20 +0000 (10:53 +0200)]
Use SafeBuffer in C++ api. Rename SafeBuffer to RawBuffer.

Change-Id: I99a880490552ab8ed3cc50b9a60adca8a8b62d97

10 years agoVersion 0.1.3
Bartlomiej Grzelewski [Tue, 22 Jul 2014 17:04:11 +0000 (19:04 +0200)]
Version 0.1.3

Change-Id: If29566b13e7fa5e5eb9fc7b6ba4641f65dcdc626

10 years agoChange RawBuffer into SafeBuffer.
Bartlomiej Grzelewski [Thu, 17 Jul 2014 12:27:47 +0000 (14:27 +0200)]
Change RawBuffer into SafeBuffer.

Change-Id: Iccf37f75713c7b573dcd6858fed3b9e530c2c936

10 years agoReplace private implemetation with interface.
Bartlomiej Grzelewski [Fri, 18 Jul 2014 13:12:53 +0000 (15:12 +0200)]
Replace private implemetation with interface.

Change-Id: Ib09abbfd83231ac16ae5b822a99ba18600351a73

10 years agoRemove unused header file key-aes.h
Bartlomiej Grzelewski [Fri, 18 Jul 2014 13:12:53 +0000 (15:12 +0200)]
Remove unused header file key-aes.h

Change-Id: I26c22b3ac7dc2049c313f54ca9d897c686470c70

10 years agoAdd API_ERROR_DB_ALIAS_UNKNOWN error handle code in data remove functions
yuseok.jeon [Fri, 18 Jul 2014 10:39:14 +0000 (19:39 +0900)]
Add API_ERROR_DB_ALIAS_UNKNOWN error handle code in data remove functions

Change-Id: I0eed434b775b6a2b38c970e293bbfed7fefe24c0
Signed-off-by: yuseok.jeon <yuseok.jeon@samsung.com>
10 years agomodify Doxygen Overview Image
Dong Sun Lee [Fri, 18 Jul 2014 08:57:25 +0000 (17:57 +0900)]
modify Doxygen Overview Image

Change-Id: Ie6685f9dbcb1e704c11e16e329c19ada47b88d5d
Signed-off-by: Dong Sun Lee <ds73.lee@samsung.com>
10 years agotagged as Internal for control API
Dong Sun Lee [Fri, 18 Jul 2014 04:57:29 +0000 (13:57 +0900)]
tagged as Internal for control API

Change-Id: I8d3c7178e5232aed0b1aeac7030775dcf0d39f13
Signed-off-by: Dong Sun Lee <ds73.lee@samsung.com>
10 years agosplit doxygen module into 3 sub modules
Dong Sun Lee [Fri, 18 Jul 2014 04:25:41 +0000 (13:25 +0900)]
split doxygen module into 3 sub modules

Change-Id: I2c0aea8cbbc58b024c34c1f031b7179c05e490f5
Signed-off-by: Dong Sun Lee <ds73.lee@samsung.com>
10 years agoadd doc directory for doxygen
Dong Sun Lee [Fri, 18 Jul 2014 00:28:17 +0000 (09:28 +0900)]
add doc directory for doxygen

Change-Id: I51403514aa64297379fbb076a3ef4a854f395531
Signed-off-by: Dong Sun Lee <ds73.lee@samsung.com>
10 years agoVersion 0.1.2
Bartlomiej Grzelewski [Thu, 17 Jul 2014 15:56:11 +0000 (17:56 +0200)]
Version 0.1.2

Add functions:
* Manager::getCertificateChain
* Manager::ocspCheck

Change-Id: I03ebf9b816c44d032132e0df9f5aa53fa8ecc097

10 years agoFix implementation of SetKey.
Bartlomiej Grzelewski [Thu, 17 Jul 2014 15:34:56 +0000 (17:34 +0200)]
Fix implementation of SetKey.

Change-Id: I0075fe26c44313c38b0ee0d7d80b2a1fdf372415

10 years agoAdd SafeBuffer
Krzysztof Jackiewicz [Mon, 7 Jul 2014 07:14:12 +0000 (09:14 +0200)]
Add SafeBuffer

Change-Id: Ic7cb9941742472484cd3c10a2fb9a8e7cf6063e0

10 years agoChange smack labels for sockets.
Bartlomiej Grzelewski [Wed, 16 Jul 2014 13:41:14 +0000 (15:41 +0200)]
Change smack labels for sockets.

Current status:
* key-manager::api-control (gives access to api CKM::Control)
* key-manager::api-ocsp (gives access to api CKM::Manager::ocspCheck)
* key-manager::api-storage (gives access to rest of api implemented in CKM::Manager)

Change-Id: I64a28042e358c88ced34b89d69d3b54f91124dc7

10 years agoReplace tabulators with spaces in ocsp.* files.
Bartlomiej Grzelewski [Wed, 16 Jul 2014 13:35:21 +0000 (15:35 +0200)]
Replace tabulators with spaces in ocsp.* files.

Change-Id: I08ae78cdf69aa7bd759097f2f0a3841f6f80e99b

10 years agoAdd debug logs to ocsp.
Bartlomiej Grzelewski [Mon, 14 Jul 2014 14:18:33 +0000 (16:18 +0200)]
Add debug logs to ocsp.

Change-Id: Ie38b999a0abbf474024c505384c57c144143b9e2

10 years agoImplementation of primitives in CertificateImpl class.
Bartlomiej Grzelewski [Mon, 14 Jul 2014 14:15:15 +0000 (16:15 +0200)]
Implementation of primitives in CertificateImpl class.

Now you can extrat values of Subject/Issuer fiels directly from
CertificateImpl class.

Change-Id: I521df36d1fddd384ace13a5e338f3914221f5dbe

10 years agoFix compilation error in c-api.
Bartlomiej Grzelewski [Wed, 16 Jul 2014 13:04:15 +0000 (15:04 +0200)]
Fix compilation error in c-api.

Change-Id: I923ae176c42e447ae6a9e10da5d518b9bb32c41b

10 years agoChanges in Prefix ckm->ckmc in C API
Dong Sun Lee [Wed, 16 Jul 2014 08:35:32 +0000 (17:35 +0900)]
Changes in Prefix ckm->ckmc in C API

Change-Id: I5c1c60eb51ba46a73125b8a94ba09722b2604438
Signed-off-by: Dong Sun Lee <ds73.lee@samsung.com>
10 years agoFix names of C language client APIs
yuseok.jeon [Wed, 16 Jul 2014 05:22:36 +0000 (14:22 +0900)]
Fix names of C language client APIs

Signed-off-by: yuseok.jeon <yuseok.jeon@samsung.com>
10 years agoAdd exceptions related to control APIs
yuseok.jeon [Tue, 15 Jul 2014 07:56:04 +0000 (16:56 +0900)]
Add exceptions related to control APIs

Signed-off-by: yuseok.jeon <yuseok.jeon@samsung.com>
10 years agoAdd systemd configuration for ocsp service.
Bartlomiej Grzelewski [Tue, 15 Jul 2014 12:15:57 +0000 (14:15 +0200)]
Add systemd configuration for ocsp service.

Change-Id: Id7ceda142619d38e8df08349fac4a1590ef55ef2

10 years agoOCSP implementation.
Bartlomiej Grzelewski [Fri, 11 Jul 2014 12:03:54 +0000 (14:03 +0200)]
OCSP implementation.

Change-Id: I4cf8d99b0c3ec262c7f65e5fc3b7ef2fca2b3287

10 years agoAdd explanations of C client APIs
yuseok.jeon [Mon, 14 Jul 2014 11:33:00 +0000 (20:33 +0900)]
Add explanations of C client APIs

Change-Id: If88a537ebc911e9f58051cef97e5ce3c81cadf88
Signed-off-by: yuseok.jeon <yuseok.jeon@samsung.com>
10 years agoFix build break.
Bartlomiej Grzelewski [Fri, 11 Jul 2014 14:30:19 +0000 (16:30 +0200)]
Fix build break.

Change-Id: I95a59f803d1f07841eecc4515de5378a6af431e8

10 years agoFix C language APIs of client
yuseok.jeon [Thu, 10 Jul 2014 06:29:39 +0000 (15:29 +0900)]
Fix C language APIs of client

Change-Id: I0fa3f99328d61f67ca97ac7bbdc851d09dbe5002

10 years agoFix bugs.
Bartlomiej Grzelewski [Thu, 10 Jul 2014 09:38:17 +0000 (11:38 +0200)]
Fix bugs.

Socket activation did not work because systemd sockets names did not
match socket names provided by services.

Change-Id: Ice4a0db2eee0ab7d6b5ef60be0e2a5dabb41d69d

10 years agoAdd crypto module.
Bartlomiej Grzelewski [Fri, 4 Jul 2014 16:54:03 +0000 (18:54 +0200)]
Add crypto module.

Reiplementation of crypto-logic (old name DBCryptoModule).

Change-Id: Id1bdd4d48ee342ede3cf8cb78ff6c30a294ec541

10 years agoAdded initial version of aesCrypt and Digest modules.
Sebastian Grabowski [Mon, 16 Jun 2014 13:33:34 +0000 (15:33 +0200)]
Added initial version of aesCrypt and Digest modules.

Added new classes for handling AES encryption and digest calculation.

Change-Id: Ic538130ff86eb53ee5c0446212e1cf628cca708e

10 years agoFix compilation errors in c-api.
Bartlomiej Grzelewski [Tue, 8 Jul 2014 12:02:41 +0000 (14:02 +0200)]
Fix compilation errors in c-api.

Change-Id: Id22a79b12decc43b3b16c50fc70c14814358fdf0

10 years agoFix errors find by valgrid.
Bartlomiej Grzelewski [Mon, 7 Jul 2014 19:21:41 +0000 (21:21 +0200)]
Fix errors find by valgrid.

Change-Id: Id123d90a8c59ac0b72c3d95823bf22c03de371d5

10 years agomake use of C++ error in C API
Dong Sun Lee [Mon, 7 Jul 2014 23:59:03 +0000 (08:59 +0900)]
make use of C++ error in C API

Change-Id: I32e2579ce15c97ede76b7bdc0ab33df6e654ac77
Signed-off-by: Dong Sun Lee <ds73.lee@samsung.com>
10 years agoRemove all namespaces from ckm-error.h header.
Bartlomiej Grzelewski [Mon, 7 Jul 2014 12:26:42 +0000 (14:26 +0200)]
Remove all namespaces from ckm-error.h header.

Change-Id: I90e6d818fa42e486356926107ae069e439010f02

10 years agoAdd C language APIs of client
yuseok.jeon [Mon, 7 Jul 2014 02:27:01 +0000 (11:27 +0900)]
Add C language APIs of client

Change-Id: I24ef238e49715624280cef1b4ea31f802be66ff5
Signed-off-by: yuseok.jeon <yuseok.jeon@samsung.com>
10 years agoVersion 0.1.1
Bartlomiej Grzelewski [Thu, 3 Jul 2014 16:51:43 +0000 (18:51 +0200)]
Version 0.1.1

Change-Id: Ief6b876ab47b96fe204fa1b16422230e198014b1

10 years agoCompilation fix for tizen.org
Bartlomiej Grzelewski [Thu, 3 Jul 2014 12:53:56 +0000 (14:53 +0200)]
Compilation fix for tizen.org

Change-Id: Ibbf2ca2ff1738b91d6ebb705bf585b96a8656261

10 years agoImplementation of getCertificateChain.
Bartlomiej Grzelewski [Thu, 3 Jul 2014 12:50:23 +0000 (14:50 +0200)]
Implementation of getCertificateChain.

Change-Id: Ib4f954ee9d0b35fd550fb67216ba1d420e1326db

10 years agoRelease version 0.1.0
Bartlomiej Grzelewski [Wed, 2 Jul 2014 17:23:13 +0000 (19:23 +0200)]
Release version 0.1.0

Change-Id: I14c6ebda6414350172940c6fa489809e7059a0d0

10 years agoRename RSAPadddingAlgorithms values.
Bartlomiej Grzelewski [Wed, 2 Jul 2014 17:04:06 +0000 (19:04 +0200)]
Rename RSAPadddingAlgorithms values.

Old values does not have any sense because there is no such algorithm
as XRSA.

Change-Id: I9e10dc4507f910ba8d37d2cb8746c2b0196af1b4

10 years agoAdd log colouring formatter for boost utf
Zofia Abramowska [Wed, 2 Jul 2014 09:09:44 +0000 (11:09 +0200)]
Add log colouring formatter for boost utf

Change-Id: I89a56caeed30e97e3046a5852652ec9f74ca727b

10 years agoRewrite key provider tests
Zofia Abramowska [Fri, 27 Jun 2014 15:48:23 +0000 (17:48 +0200)]
Rewrite key provider tests

Change-Id: I7d9919898df3e0bb80ce2d83af11061d70c6f533

10 years agoSimpliefied public headers names.
Bartlomiej Grzelewski [Wed, 2 Jul 2014 14:20:01 +0000 (16:20 +0200)]
Simpliefied public headers names.

key-manager.h was renamed to ckm-manager.h
key-manager-control.h was renamed to ckm-control.h

Change-Id: Ia76e6891dfe8196e2a5d7db8c55a50a1ab33afdd

10 years agoChange log tag to CKM.
Bartlomiej Grzelewski [Wed, 2 Jul 2014 12:41:33 +0000 (14:41 +0200)]
Change log tag to CKM.

Change-Id: I488ee6e5ebe4efbf9f342a5f9c29fd6c8f15e73c

10 years agoFunction verifySignature may take certificate alias now.
Bartlomiej Grzelewski [Wed, 2 Jul 2014 12:22:49 +0000 (14:22 +0200)]
Function verifySignature may take certificate alias now.

Change-Id: I1f8d9281acb77b69cb126ab0df61c6990f234cc7

10 years agoSplit client API into two parts(Control API and Store/Crypto API)
yuseok.jeon [Wed, 2 Jul 2014 02:36:15 +0000 (11:36 +0900)]
Split client API into two parts(Control API and Store/Crypto API)

Change-Id: I60d564a125a2bf493b941897d521ea9adae8a499
Signed-off-by: yuseok.jeon <yuseok.jeon@samsung.com>
10 years agoYou may extract public key from CertificateImpl now.
Bartlomiej Grzelewski [Tue, 1 Jul 2014 15:59:42 +0000 (17:59 +0200)]
You may extract public key from CertificateImpl now.

Change-Id: I3c0ed204e2622b0e8a6ca4be5c39f91d6c009def

10 years agoFix createSignature/verify signature module.
Bartlomiej Grzelewski [Tue, 1 Jul 2014 10:15:18 +0000 (12:15 +0200)]
Fix createSignature/verify signature module.

* Fix implementation of ErrorToString.
* Fix protocol implementation in ckm-logic.
* Fix implementation of CryptoModule.

Change-Id: Ifd60709829ffe433bd982819a32dcac8223d07f2

10 years agoAdd openssl initialization in client library.
Bartlomiej Grzelewski [Mon, 30 Jun 2014 18:46:16 +0000 (20:46 +0200)]
Add openssl initialization in client library.

Change-Id: I1043801db5743d855902c85c16a9acb22c3ed3a0

10 years agoRemove function strictCAcheck.
Bartlomiej Grzelewski [Mon, 30 Jun 2014 14:33:08 +0000 (16:33 +0200)]
Remove function strictCAcheck.

This functionality is checked by default when FIBS mode is turned on.

Change-Id: I6f1ddcf06231c16613f968b8bc03fed141add762

10 years agofix CryptoService ititialize method
yuseok.jeon [Tue, 1 Jul 2014 07:08:19 +0000 (16:08 +0900)]
fix CryptoService ititialize method

Change-Id: I4c42f6a5023fc48d85132c60f556cdadb00c6438
Signed-off-by: yuseok.jeon <yuseok.jeon@samsung.com>
10 years ago Service implementation.
Radoslaw Bartosiak [Mon, 23 Jun 2014 13:31:31 +0000 (15:31 +0200)]
 Service implementation.

       * Add support for createSignature and verifySignature

Change-Id: Id85e45ffc166678d1a97596c2c134eafcc22024c

10 years agoAdd internal tests for sql and db
Zofia Abramowska [Tue, 10 Jun 2014 08:46:42 +0000 (10:46 +0200)]
Add internal tests for sql and db

Add internal tests for SqlConnection class and DBCrypto
(with Transaction) class.

Change-Id: I5950aa4ed6f9da9effe1aec0bfacaf1957a752f3

10 years agoChange some error messages to debug.
Bartlomiej Grzelewski [Thu, 26 Jun 2014 16:40:37 +0000 (18:40 +0200)]
Change some error messages to debug.

Add additional debug messages.

Change-Id: I8f92f0b55a5ff2f3a3fa4a85a1687cc27d090e48

10 years agoImplementation of getCertificateChain.
Bartlomiej Grzelewski [Wed, 25 Jun 2014 17:32:12 +0000 (19:32 +0200)]
Implementation of getCertificateChain.

Change-Id: Ie4b8b6f9d54decb3e8e09a04a3bab101630d355a

10 years agoAdd exceptions to OCSP module
yuseok.jeon [Thu, 26 Jun 2014 07:02:36 +0000 (16:02 +0900)]
Add exceptions to OCSP module

Change-Id: I94a15868fe08586fec4af802d7353d6a07ec1075
Signed-off-by: yuseok.jeon <yuseok.jeon@samsung.com>
10 years agoAdd exceptions to CryptoModule
yuseok.jeon [Thu, 26 Jun 2014 05:27:44 +0000 (14:27 +0900)]
Add exceptions to CryptoModule

Change-Id: I47239f59c8017be5d70ce09126de6ae72363a804
Signed-off-by: yuseok.jeon <yuseok.jeon@samsung.com>
10 years agoPrepare test code for future additional binaries
Zofia Abramowska [Mon, 23 Jun 2014 13:23:59 +0000 (15:23 +0200)]
Prepare test code for future additional binaries

Remove unnecessary dependencies.
Change name of test sources.
Change name of test binary.
Fix formatting.

Change-Id: Iaa39359c224c13714095f4bbafdef742e046563e

10 years agoReplace deprecated auto_ptr with unique_ptr in SQLCOnnection.
Bartlomiej Grzelewski [Tue, 24 Jun 2014 15:34:20 +0000 (17:34 +0200)]
Replace deprecated auto_ptr with unique_ptr in SQLCOnnection.

Change-Id: I0303d7c1c40e3392173899bf42751800eab2e7b6

10 years agoChange error code names.
Bartlomiej Grzelewski [Tue, 24 Jun 2014 15:15:52 +0000 (17:15 +0200)]
Change error code names.

Old prefix was "KEY_MANAGER_API_"
New prefix is "CKM_API_"

Change-Id: I9bce2da2c08d6768ff0fd8ff160ea3dcafb559a7

10 years agoFix implementation of CKMLogic::createRSAKeyPair
Bartlomiej Grzelewski [Tue, 24 Jun 2014 15:01:07 +0000 (17:01 +0200)]
Fix implementation of CKMLogic::createRSAKeyPair

Change-Id: Iec20f8c36337df6d2c836482cb6b9caa5605ab07

10 years agoTransactions
Zofia Abramowska [Wed, 18 Jun 2014 12:17:06 +0000 (14:17 +0200)]
Transactions

Add transaction object to DBCyrpto class.
All public methods are also inside single transactions.

Change-Id: I9bebc69c4c9d3b1d0bce14e227f24c17b44e9afb

10 years agoThrow instead of return value
Zofia Abramowska [Wed, 18 Jun 2014 13:50:19 +0000 (15:50 +0200)]
Throw instead of return value

All public methods of DBCrypto throw instead of returning
value from key-manager api error codes.
Rewritten also ckm-logic to handle exceptions from DBCrypto.

Change-Id: Ie85cb8b4e448e23aa26782d8a5451a5fcfed81e8

10 years agoFix initialization method of CryptoService
yuseok.jeon [Tue, 24 Jun 2014 09:56:59 +0000 (18:56 +0900)]
Fix initialization method of CryptoService

Signed-off-by: yuseok.jeon <yuseok.jeon@samsung.com>
10 years agoFix initialization method of OCSP
root [Tue, 24 Jun 2014 01:34:10 +0000 (10:34 +0900)]
Fix initialization method of OCSP

Change-Id: I200b3d1f9250ee40796a7895ded605c124b972a2

10 years agoFix errors in client.
Bartlomiej Grzelewski [Mon, 23 Jun 2014 14:17:30 +0000 (16:17 +0200)]
Fix errors in client.

Change-Id: I5634f3ff2981663ee34026dc4860153604a49f17

10 years agoRename KEY_MANAGER_API_ERROR_DB_BAD_REQUEST.
Bartlomiej Grzelewski [Mon, 23 Jun 2014 13:59:47 +0000 (15:59 +0200)]
Rename KEY_MANAGER_API_ERROR_DB_BAD_REQUEST.

New name is KEY_MANAGER_API_ERROR_DB_ALIAS_UNKNOWN

Change-Id: Iad75fa44e19dfcf62f5ee9a647e9cd8963189f93

10 years agoChange internal implementation from RSA* to EVP_PKEY.
Bartlomiej Grzelewski [Fri, 20 Jun 2014 09:07:33 +0000 (11:07 +0200)]
Change internal implementation from RSA* to EVP_PKEY.

Change-Id: I74fbba7c489b4b9dee1d01b72d22d80ccf4bfc4b

10 years agoFix input value of fts_open in key-manager-util.cpp
yuseok.jeon [Fri, 20 Jun 2014 09:27:51 +0000 (18:27 +0900)]
Fix input value of fts_open in key-manager-util.cpp

Signed-off-by: yuseok.jeon <yuseok.jeon@samsung.com>
10 years agoremove useless code
kyungwook tak [Fri, 20 Jun 2014 08:11:22 +0000 (17:11 +0900)]
remove useless code

Change-Id: Ieb7a82147ab1a43a97196cfb691941f6349915da
Signed-off-by: kyungwook tak <k.tak@samsung.com>
10 years agoFix error in SKMM-dummy with SKMM replacement and fix some indents
kyungwook tak [Fri, 20 Jun 2014 07:50:06 +0000 (16:50 +0900)]
Fix error in SKMM-dummy with SKMM replacement and fix some indents

Change-Id: I563f57689c68a93458daec75f6de27ef830fefe0
Signed-off-by: kyungwook tak <k.tak@samsung.com>
10 years agoAdd copy constructor of CertificateImpl
yuseok.jeon [Fri, 20 Jun 2014 06:57:39 +0000 (15:57 +0900)]
Add copy constructor of CertificateImpl

Change-Id: Idacb1fbc6de68dd6598b46a9288b6a8c877048a2

10 years agoFix Ip label attribute name for systemd
Zofia Abramowska [Wed, 18 Jun 2014 15:48:25 +0000 (17:48 +0200)]
Fix Ip label attribute name for systemd

Change-Id: Idef7a314928ff4eb8ffe8b90259df3afe701b4d8

10 years agoIntegration with CryptoService class.
Bartlomiej Grzelewski [Mon, 16 Jun 2014 16:27:03 +0000 (18:27 +0200)]
Integration with CryptoService class.

Implementation of CKMLogic::createPairKeyRSA.
Replace KeyImpl with GenericKey class.

Change-Id: I24d2c89c3df702666b0b82ba2894ed6313e6393b

10 years agoAdd key-manager internal test tool by using boost test framework
kyungwook tak [Wed, 18 Jun 2014 05:59:58 +0000 (14:59 +0900)]
Add key-manager internal test tool by using boost test framework

Change-Id: I1237a2ee47a6765b6a2e7ccd6ca34509aa3884c9
Signed-off-by: kyungwook tak <k.tak@samsung.com>
10 years agoChange pedantic to error logs when failing
Zofia Abramowska [Mon, 16 Jun 2014 11:34:19 +0000 (13:34 +0200)]
Change pedantic to error logs when failing

Change-Id: I051caf9ad38f1243e25f42a8c844288ff451ef31

10 years agoAdd label and unique alias check
Zofia Abramowska [Fri, 13 Jun 2014 14:35:02 +0000 (16:35 +0200)]
Add label and unique alias check

Add label check in row select and check for global alias duplicates.
Change return value when alias duplication occures.

Change-Id: I288d1e5a3c167a909619fa1969319416d7cec813

10 years agoImplementation of CKMLogic::getDataList function.
Bartlomiej Grzelewski [Fri, 13 Jun 2014 14:48:00 +0000 (16:48 +0200)]
Implementation of CKMLogic::getDataList function.

* Rename Manager::requestKeyAliasVector to getKeyAliasVector.
* add support for Manager::getKeyAliasVector function

Change-Id: If10273ba01711b1d726fa19424913029b1f2edab

10 years agoFix to db.
Bartlomiej Grzelewski [Fri, 13 Jun 2014 17:20:26 +0000 (19:20 +0200)]
Fix to db.

Change-Id: I18d992de041ce21c22f644895e36f97102f49c49

10 years agoAdd type check in select commands
Zofia Abramowska [Fri, 13 Jun 2014 14:56:20 +0000 (16:56 +0200)]
Add type check in select commands

Change-Id: I99370b663d46ba4cf7776f842531d5393a8eb393

10 years agoIntegration DBCryptoModule, KeyProvider and CKMLogic.
Bartlomiej Grzelewski [Wed, 11 Jun 2014 17:35:32 +0000 (19:35 +0200)]
Integration DBCryptoModule, KeyProvider and CKMLogic.

* keys in database are encrypted now.
* refactoring of CKMLogic::getData and CKMLogic::saveData
* change timeout for connection from 2 to 4 seconds (creation
  of database may take 2 seconds).

Change-Id: I44d21e8d2a77dd3b7c77e4a1615c4bcb61927344

10 years agoMake structure containers to handle memory in key-provider
kyungwook tak [Thu, 12 Jun 2014 12:14:56 +0000 (21:14 +0900)]
Make structure containers to handle memory in key-provider

Make WrappedKeyMaterialContainer class for handling memory for WrappedKeyMaterial structure
Replace space with tab

Change-Id: I2fdd44d9980fcb7a8f2992aaa3f4d3aaad6c5f19
Signed-off-by: kyungwook tak <k.tak@samsung.com>
10 years agoChange return value for DBCrypto
Zofia Abramowska [Thu, 12 Jun 2014 08:34:57 +0000 (10:34 +0200)]
Change return value for DBCrypto

Change from BAD_REQUEST to DB_BAD_REQUEST

Change-Id: I45ef7c1e2fe35e387b3d2f696f74fc608e7624e0

10 years agoAdd table for storing keys per label
Zofia Abramowska [Wed, 11 Jun 2014 13:00:35 +0000 (15:00 +0200)]
Add table for storing keys per label

Change-Id: Ifb30bd2c70fe75e7c78d492c652797cbc74d29d9

10 years agoModify key-provider API name 'unwrapDEK' to 'getPureDEK'
kyungwook tak [Thu, 12 Jun 2014 01:26:42 +0000 (10:26 +0900)]
Modify key-provider API name 'unwrapDEK' to 'getPureDEK'

Fix key returned by 'getPureDEK' had wrong size
for the same reason with 'getPureDomainKEK'

Change-Id: I42df2cdacf580bb761242c046e8a532681196086
Signed-off-by: kyungwook tak <k.tak@samsung.com>