summaryrefslogtreecommitdiff
path: root/srcs/decrypt_migrated_wgt.c
AgeCommit message (Collapse)AuthorFilesLines
2016-08-10[HOTFIX] Fix build break on 64bit archsubmit/tizen_3.0_wearable/20161015.000004submit/tizen_3.0_tv/20161015.000004submit/tizen_3.0_mobile/20161015.000004submit/tizen_3.0_ivi/20161010.000004submit/tizen_3.0_common/20161104.104000submit/tizen/20160812.053402submit/tizen/20160811.062803accepted/tizen/wearable/20160815.233236accepted/tizen/tv/20160815.233213accepted/tizen/mobile/20160815.233150accepted/tizen/ivi/20160815.233255accepted/tizen/common/20160812.140751accepted/tizen/3.0/wearable/20161015.083618accepted/tizen/3.0/tv/20161016.005422accepted/tizen/3.0/mobile/20161015.033720accepted/tizen/3.0/ivi/20161011.050558accepted/tizen/3.0/common/20161114.110011sangwan.kwon1-1/+3
[Problem] * EVP_Digest parameter type is unsigned int * size_t is differ between 32bit and 64bit [Solution] * Use unsigned int instead of size_t Change-Id: Ib398532c7148bcd9d736c7282e0b74c8042a2ede Signed-off-by: sangwan.kwon <sangwan.kwon@samsung.com>
2016-07-26Add data structuresKyungwook Tak1-62/+79
For migrated web app, we need to more fields in cache e.g., IV and is_migrated flag to handle it separately. Because cipher algorithm, iv and key size could be different between old secure storage, it depends on product implementation. So this architecture needs more flexibility. A lot of code changed because of the principle data structure is added from the bottom. Change-Id: Id6a10b9f707f4da25016dd928ab4049be619a610 Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
2016-07-19Logging openssl log on crypto error casesKyungwook Tak1-29/+44
Change-Id: I60d574d8813637077fa1e278a3d72dbfed07333c Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
2016-07-19Support platform upgrade caseKyungwook Tak1-0/+185
secure-storage is removed since Tizen platform version 3.0. downloaded web apps encryption works based on different key from lower than 3.0. secure-storage used DUK(device unique key with seed(pkgid)) as DEK. If downloaded app cannot find DEK when decrypt, it's considered as encrypted lower than 3.0 case. So webappenc creates DEK and uses algorithm which had been used lower than 3.0 in secure-storage. For now it's hard to save newly created old key in key-manager because migrated web app is considered as global app and the case would be found in decryption time (by web app launcher) who don't have permission to save in system db of key-manager with "/System" label. Permission policy of system db of key-manager should be changed OR migrated app should not be global app (it should be downloaded normal app) to save created key in key-manager. Change-Id: I9b8516184cce9f43b328e290c15127151e5c861e Signed-off-by: Kyungwook Tak <k.tak@samsung.com>