platform/core/csapi/security.git
7 years agoUpgrade Tizen.Security.SecureRepository to 1.0.7 40/104740/1
Kyungwook Tak [Mon, 21 Nov 2016 05:00:22 +0000 (14:00 +0900)]
Upgrade Tizen.Security.SecureRepository to 1.0.7

Change-Id: I4eb83f9b42d81b924599285c7ca47cec93acf57b
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoAdd svace related files to gitignore list 39/104739/1
Kyungwook Tak [Wed, 16 Nov 2016 04:55:07 +0000 (13:55 +0900)]
Add svace related files to gitignore list

Change-Id: I7055733cd2b9f773bb51dfdbd4c92cf96fe342a9
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoAdd null args exception handling 38/104738/1
Kyungwook Tak [Mon, 14 Nov 2016 12:09:09 +0000 (21:09 +0900)]
Add null args exception handling

Change-Id: If7ff462fbdb25fc5535386a53277fce751489641
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
7 years agoFix .nuspec file to change authors and version dependencies 37/104737/1
WonYoung Choi [Tue, 15 Nov 2016 00:19:39 +0000 (09:19 +0900)]
Fix .nuspec file to change authors and version dependencies

Change-Id: Ib7971a5f819efbe35c2394bbb70d73b188cf6739
Signed-off-by: WonYoung Choi <wy80.choi@samsung.com>
8 years agoUpgrade Tizen.Security.SecureRepository to 1.0.6
Kyungwook Tak [Thu, 10 Nov 2016 06:21:14 +0000 (15:21 +0900)]
Upgrade Tizen.Security.SecureRepository to 1.0.6

Change-Id: I3d39a1c0b6385ef4af8e54ccb16fbf4021fdecf5
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoAdd exception handlings
Kyungwook Tak [Wed, 9 Nov 2016 11:03:58 +0000 (20:03 +0900)]
Add exception handlings

Change-Id: Id76e751fcc61de9188d4a3c52c194c81dae5d45c
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoMake internal for abstract classes and static ctor
Kyungwook Tak [Wed, 9 Nov 2016 05:43:19 +0000 (14:43 +0900)]
Make internal for abstract classes and static ctor

CipherParameters and AesCipherParameters are only internally inherited
and don't want to be included in API. By defining internal default
constructor, it can be inheritd only by assembly internally.

All Managers are only have static members and only used as static so no
constructor is needed (and should not be for integrity). Define internal
default ctors to prevent being called

Change-Id: I3013bf26b5b014129fd412abc37dac7335686f6a
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoList up compile include by regexp
Kyungwook Tak [Wed, 9 Nov 2016 05:39:20 +0000 (14:39 +0900)]
List up compile include by regexp

Change-Id: I526615816356d1a22bd7697ac73d03e3a8c84e1b
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoAdd ctag relatives to gitignore
Kyungwook Tak [Wed, 9 Nov 2016 01:20:35 +0000 (10:20 +0900)]
Add ctag relatives to gitignore

Change-Id: Ie3fbb45a0f7355f9166d9bc403cfb8106f415ddf
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoUpgrade version to 1.0.5
Kyungwook Tak [Mon, 7 Nov 2016 10:06:33 +0000 (19:06 +0900)]
Upgrade version to 1.0.5

Change-Id: I33bd1e8cfbf003a5bda389e4f92b916be6cbe400
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoSplit nupkg version of two packages
Kyungwook Tak [Tue, 8 Nov 2016 07:08:40 +0000 (16:08 +0900)]
Split nupkg version of two packages

Change-Id: I54f9a215a76a1641ae477b7b3b7ccc3a7cf1b489
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoDon't inherit SafeHandle for C# prop-having class
Kyungwook Tak [Tue, 8 Nov 2016 04:58:37 +0000 (13:58 +0900)]
Don't inherit SafeHandle for C# prop-having class

Some classes who inherits SafeHandle have setter/getter by C# property
and their handle is not usable without checking property values.
So to maintain handle is meaningless and it can be converted just when
needed.

For CipherParameters class, it doesn't have setter/getter with C#
property so SafeHandle here is used properly and not removed.

Change-Id: Ib75edf5af74d4a0fbf44fbb7c16b836eee92a790
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoAdd sln file on Tizen.Security.SecureRepository
Kyungwook Tak [Tue, 8 Nov 2016 04:58:03 +0000 (13:58 +0900)]
Add sln file on Tizen.Security.SecureRepository

Change-Id: I11c01a6a287911016f7713ab87974b6226e9ec28
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoUpdate metadata in .nuspec files
Kyungwook Tak [Mon, 7 Nov 2016 10:05:15 +0000 (19:05 +0900)]
Update metadata in .nuspec files

Change-Id: I3756bdc00e71ba1d6baefec683aaf14277c6e76e
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoFix source file mod to 664
Kyungwook Tak [Mon, 7 Nov 2016 07:23:00 +0000 (16:23 +0900)]
Fix source file mod to 664

Change-Id: I038a078f354b9effd1c1a8af14b19af5e6728199
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoUpgrade version to 1.0.4
Kyungwook Tak [Mon, 7 Nov 2016 06:37:52 +0000 (15:37 +0900)]
Upgrade version to 1.0.4

Change-Id: If18e0545980d2eec8f56980a73e30ce1a78c6260
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoReturn refreshed handle on GetHandle()
Kyungwook Tak [Mon, 7 Nov 2016 06:05:49 +0000 (15:05 +0900)]
Return refreshed handle on GetHandle()

Properties can be changed after IntPtr handle allocated so handle always
retrieved from latest properties

Change-Id: Ie2c68e5618f0363115d0819e02214ca97e66a472
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoFix bug: Pkcs12 properties handle ownership
Kyungwook Tak [Mon, 7 Nov 2016 02:31:06 +0000 (11:31 +0900)]
Fix bug: Pkcs12 properties handle ownership

Handles in pkcs12 properties(PrivateKey, Certificate, CaChain) is
released with Pkcs12Free in ReleaseHandle. So Pkcs12 should always have
ownership of properties's handle.

Change-Id: If2b155424d2dd832d456017437a434d993074e5d
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoRemove IsInvalid check in ReleaseHandle
Kyungwook Tak [Fri, 4 Nov 2016 04:02:54 +0000 (13:02 +0900)]
Remove IsInvalid check in ReleaseHandle

ReleaseHandle is called only when IsInvalid is false.
Refer: https://msdn.microsoft.com/en-us/library/system.runtime.interopservices.safehandle.releasehandle(v=vs.110).aspx

Change-Id: Icff0eff4e5f9e8ef88b1518a7187d05ca0962426
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoChange size_t to UIntPtr between marshalling
Kyungwook Tak [Thu, 3 Nov 2016 05:06:28 +0000 (14:06 +0900)]
Change size_t to UIntPtr between marshalling

Change-Id: I01934747f71dbd820e489b5d89eb3efabb75fadf
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoValidate parameters on long types
Kyungwook Tak [Thu, 3 Nov 2016 05:16:19 +0000 (14:16 +0900)]
Validate parameters on long types

long types will be used as uint64_t in dll imported CAPIs

Change-Id: I09cd4431de9991044d8279b3f58115a5bd51f0b3
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoRemove misused PinnedObject to IntPtr
Kyungwook Tak [Thu, 3 Nov 2016 05:16:13 +0000 (14:16 +0900)]
Remove misused PinnedObject to IntPtr

Change-Id: Ic004e0685926327e0853c0503fe1faca5ec472b2
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoUpgrade version to 1.0.3
Kyungwook Tak [Wed, 2 Nov 2016 09:16:24 +0000 (18:16 +0900)]
Upgrade version to 1.0.3

Change-Id: I397237f98eeb360a9c1543a73f41f17df7d2f774
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoAdd more to gitignore
Kyungwook Tak [Wed, 2 Nov 2016 09:23:11 +0000 (18:23 +0900)]
Add more to gitignore

Change-Id: I95d4ca273509db472021081fa4ced3ca475669a7
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoGCHandle can only accept primitive type obj
Kyungwook Tak [Wed, 2 Nov 2016 08:24:29 +0000 (17:24 +0900)]
GCHandle can only accept primitive type obj

Convert structs to ptr by handle, not by PinnedObject.
PinnedObject can be used only for primitive types e.g., byte array.

Change-Id: I8bb10c57845554694a294cf59cfa4ace9a3d06d0
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoFix bug: size_t should be marshalled to UIntPtr
Kyungwook Tak [Wed, 2 Nov 2016 05:44:06 +0000 (14:44 +0900)]
Fix bug: size_t should be marshalled to UIntPtr

size_t size differ in 32bit and 64bit arch so UintPtr should be used

Change-Id: I3681c20950ac58f815183749a746180ff7a7b835
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoAdd defense code for null input
Dongsun Lee [Thu, 27 Oct 2016 03:58:17 +0000 (12:58 +0900)]
Add defense code for null input

Change-Id: Id9c5563d3789853432b5d88bb54f4babbbaa3600
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
8 years agoFix TYPO from Aec to Aes and remname RsaOaepParameters to RsaOaepCipherParameters
Dongsun Lee [Wed, 26 Oct 2016 03:58:37 +0000 (12:58 +0900)]
Fix TYPO from Aec to Aes and remname RsaOaepParameters to RsaOaepCipherParameters

Change-Id: I4573f3f055d148983d7bbdbd7fa98b2190f70293
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
8 years agoMerge "Modify API doc" into devel
kidong kim [Mon, 24 Oct 2016 01:56:47 +0000 (10:56 +0900)]
Merge "Modify API doc" into devel

8 years agoRemove build warning for use of deprecated API
Dongsun Lee [Fri, 21 Oct 2016 04:13:16 +0000 (13:13 +0900)]
Remove build warning for use of deprecated API

- Marshal.PtrToStructure(ptr, type) --> Marshal.PtrToStructure<T>(ptr)

Change-Id: I2543a61091ab50d2d31b529f8977e43a894419bf
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
8 years agoAdd comment for exception info
Kyungwook Tak [Thu, 20 Oct 2016 09:35:32 +0000 (18:35 +0900)]
Add comment for exception info

Change-Id: Ic2017f3d80380700fd8359eacf4efddb455a35a7
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoModify API doc
Yunjin Lee [Thu, 13 Oct 2016 08:09:22 +0000 (17:09 +0900)]
Modify API doc

-Add remarks to GetDisplayName() and GetDescription() for undefined privilege input parameter
-Remove error case return remarks from GetPrivacyPrivilegeStatus()

Change-Id: Ic94f8c367b504892acaa11954506351d5ce8e2d5
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoMerge "Add privacy APIs" into devel
kidong kim [Thu, 13 Oct 2016 01:28:38 +0000 (10:28 +0900)]
Merge "Add privacy APIs" into devel

8 years agoAdd privacy APIs
Yunjin Lee [Mon, 10 Oct 2016 09:13:38 +0000 (18:13 +0900)]
Add privacy APIs

Change-Id: I7d8c7c5b42fbde555ce47b1a2ac2add3910d3c10
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agoFix bug on null-terminated string marshalling
Kyungwook Tak [Mon, 10 Oct 2016 11:43:19 +0000 (20:43 +0900)]
Fix bug on null-terminated string marshalling

UnmanagedType.LPTStr -> UnmanagedType.LPStr

Change-Id: I616c69d5c9a0335c2b6473ce726337be9ee6b3a9
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoUse nuget restore to solve dependencies
WonYoung Choi [Tue, 4 Oct 2016 14:04:07 +0000 (23:04 +0900)]
Use nuget restore to solve dependencies

Change-Id: I8d0dbd933654328ca7b08392978ac36e504d7534
Signed-off-by: WonYoung Choi <wy80.choi@samsung.com>
8 years agoFix project files to support netstandard 1.6
WonYoung Choi [Mon, 5 Sep 2016 09:21:05 +0000 (18:21 +0900)]
Fix project files to support netstandard 1.6

Change-Id: I4d71046be3d14c34fba669bdf6067f236bbb58ac
Signed-off-by: WonYoung Choi <wy80.choi@samsung.com>
8 years agoAdjust changed design doc
Kyungwook Tak [Fri, 19 Aug 2016 08:11:40 +0000 (17:11 +0900)]
Adjust changed design doc

class diagram can be checked in:
http://suprem.sec.samsung.net/confluence/display/TNET/%5B3%5D+Namespace%3A+Tizen.Security.SecureRepository

Change-Id: Ia7c6d852baafdc3cf5af2437a32ad98b3a768fc0
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoRemove deprecated API wrapper(LoadFromPkcs12File)
Kyungwook Tak [Fri, 19 Aug 2016 07:32:53 +0000 (16:32 +0900)]
Remove deprecated API wrapper(LoadFromPkcs12File)

ckmc_load_from_pkcs12_file is deprecated since 2.4

Change-Id: I19a18b0e9f6bb0c872add1f846a04224711cc81b
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoSeparate privilege and key-manager dll
Kyungwook Tak [Thu, 18 Aug 2016 06:31:48 +0000 (15:31 +0900)]
Separate privilege and key-manager dll

Assembly of privilege and key-manager is totally separated
so as to have dependency independently between two libraries
and use internal symbols more freely.

Change-Id: Iea683d4c3f4e129e0ded45cade4a8b29b05a452e
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoFix warning related mandatory comments
Kyungwook Tak [Thu, 18 Aug 2016 05:58:32 +0000 (14:58 +0900)]
Fix warning related mandatory comments

Change-Id: I2e1d6bf714429d6edb4d5958ba4e618acbedcc49
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoRemove duplicated prefix(Ckmc) in Interop
Kyungwook Tak [Thu, 18 Aug 2016 05:50:45 +0000 (14:50 +0900)]
Remove duplicated prefix(Ckmc) in Interop

Change-Id: I72d17c6fc0dff47695d287513426bbd175aa4238
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoUse csapi-tizen for get error message API
Kyungwook Tak [Thu, 18 Aug 2016 05:34:19 +0000 (14:34 +0900)]
Use csapi-tizen for get error message API

Change-Id: Ibf8e711d1df851d6fbcfcc64e2f588b76af3ba37
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agoAdd license header to sources
Kyungwook Tak [Thu, 18 Aug 2016 02:42:08 +0000 (11:42 +0900)]
Add license header to sources

Change-Id: I998566a0a4eeba461a8764afcd2549184e270605
Signed-off-by: Kyungwook Tak <k.tak@samsung.com>
8 years agofirst draft of privilege-info C# API
Yunjin Lee [Mon, 1 Aug 2016 05:52:36 +0000 (14:52 +0900)]
first draft of privilege-info C# API

Change-Id: Ifa1d0befd61bf851dd853e4d53d1f2fabef3ff4d
Signed-off-by: Yunjin Lee <yunjin-.lee@samsung.com>
8 years agothe first draft of key-manager c# API
Dongsun Lee [Tue, 26 Jul 2016 07:38:06 +0000 (16:38 +0900)]
the first draft of key-manager c# API

Change-Id: If512e50baab374ac9565690903022c1da69b4d16
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
8 years agoInitial empty repository
namhyung kim [Thu, 21 Jul 2016 06:48:34 +0000 (15:48 +0900)]
Initial empty repository