Commit graph

8614 commits

Author SHA1 Message Date
Colin Cross
8f7f96213c am 495a95d4: Merge "system/security: convert LOCAL_MODULE_PATH to LOCAL_MODULE_RELATIVE_PATH"
* commit '495a95d490e5e1a13a69fefb338473ada12495e3':
  system/security: convert LOCAL_MODULE_PATH to LOCAL_MODULE_RELATIVE_PATH
2014-01-28 00:55:37 +00:00
Colin Cross
495a95d490 Merge "system/security: convert LOCAL_MODULE_PATH to LOCAL_MODULE_RELATIVE_PATH" 2014-01-28 00:48:18 +00:00
Colin Cross
3d2f4fd026 system/security: convert LOCAL_MODULE_PATH to LOCAL_MODULE_RELATIVE_PATH
LOCAL_MODULE_PATH doesn't work for multiarch builds, replace it
with LOCAL_MODULE_RELATIVE_PATH.

Change-Id: I4e4ceec61d026bbe74ba604554c06104bde42e5e
2014-01-24 21:00:32 -08:00
haitao fang
c35d4eb3e6 Fix the Vector erase bug
In the Vector traversal and delete operation, we can't
move to the next item when we use the erase function.

Change-Id: I9accfb7f109f73dcec900b666077120235bf7ef1
2014-01-21 12:27:54 +09:00
Brian Carlstrom
b66675149c am e040a571: Merge "Use %zu, %td for size_t, ptrdiff_t, respectively."
* commit 'e040a5710561686d70d110e3cc1bcafedbeb7ec2':
  Use %zu, %td for size_t, ptrdiff_t, respectively.
2013-12-11 11:29:55 -08:00
Brian Carlstrom
e040a57105 Merge "Use %zu, %td for size_t, ptrdiff_t, respectively." 2013-12-11 19:23:23 +00:00
Matteo Franchin
6489e02e13 Use %zu, %td for size_t, ptrdiff_t, respectively.
Changing ALOG format strings to %zu (for one size_t integer) and to
%td (for a couple of pointer differences). These changes are necessary
when compiling for LP64 architectures.

Change-Id: I9bb667500af1b82c360f0fc84e50d70bd46cba6e
Signed-off-by: Matteo Franchin <matteo.franchin@arm.com>
2013-12-11 16:16:36 +00:00
The Android Open Source Project
12543689fd am d0f35a1a: Merge commit \'049462c2920b2082bde538210b1029da19b15788\' into HEAD
* commit 'd0f35a1a30c51a26c0a50922736d804f40c2f9aa':
2013-12-05 17:26:57 -08:00
The Android Open Source Project
d0f35a1a30 Merge commit '049462c2920b2082bde538210b1029da19b15788' into HEAD 2013-12-05 12:38:34 -08:00
The Android Open Source Project
82b6dc9084 am c55921b0: Merge commit \'72f6fde4563f9e5f2aff8211a54342d752aa7029\' into HEAD
* commit 'c55921b02233fdbc68491e814a01eb2b6996ff6a':
2013-11-22 19:20:08 -08:00
The Android Open Source Project
c55921b022 Merge commit '72f6fde4563f9e5f2aff8211a54342d752aa7029' into HEAD 2013-11-22 10:36:02 -08:00
Nick Kralevich
049462c292 am 8d01e624: Merge "softkeymaster: do not use GNU old-style field designators"
* commit '8d01e624d52d1c34de5926b5bc47d265532a9527':
  softkeymaster: do not use GNU old-style field designators
2013-10-18 19:37:30 -07:00
Nick Kralevich
8d01e624d5 Merge "softkeymaster: do not use GNU old-style field designators" 2013-10-19 02:29:53 +00:00
synergydev
2d73d558d7 softkeymaster: do not use GNU old-style field designators
Fix the following:
error: use of GNU old-style field designator extension

Change-Id: Id77d4d5cd588774354b23c13f988fc7c55674d8f
2013-10-18 18:40:15 -07:00
Kenny Root
72f6fde456 resolved conflicts for merge of 1a023f89 to klp-dev-plus-aosp
Change-Id: I61c3d1ea509adc54b85bb6bb11350b6c466a8608
2013-10-16 09:09:54 -07:00
Kenny Root
1a023f8953 Merge "Fix some spots where targetUid was missed" 2013-10-16 16:00:56 +00:00
Kenny Root
fa27d5bbc3 Fix some spots where targetUid was missed
Some of the targetUid arguments weren't used where they should have
been.

Change-Id: Ief5df897440ddfb572feb57026a6057d64c7c09b
2013-10-15 11:31:51 -07:00
Kenny Root
f90361244b am ee8068b9: Set encrypted flag when appropriate
* commit 'ee8068b9e7bfb2770635062fc9c2035be2142bd8':
  Set encrypted flag when appropriate
2013-10-08 16:24:53 -07:00
Kenny Root
ee8068b9e7 Set encrypted flag when appropriate
"generate" and "put" were not setting the encrypted flag in the blob
written to disk. Add setting the flag whenever appropriate for these
functions.

Additinally, the master key should always be encrypted.

Bug: 11113056
Change-Id: Ibf8f2ad4d5de0732dcc25e1005ad4751683e3b80
2013-10-07 11:13:15 -07:00
Kenny Root
dc3b74f61e am ace0b422: Merge "Use canonical UniquePtr.h header"
* commit 'ace0b4229a8ad6682e4439e3853de923c91628dc':
  Use canonical UniquePtr.h header
2013-09-11 14:56:06 -07:00
Kenny Root
ace0b4229a Merge "Use canonical UniquePtr.h header" 2013-09-11 21:48:59 +00:00
Kenny Root
26cfc08add Use canonical UniquePtr.h header
Change-Id: Iab1dc428c2330a07a5944a1cfbb25c8134b11950
2013-09-11 14:38:56 -07:00
Kenny Root
312431216f am cabc0202: Merge changes I52418ade,Ic02102cb
* commit 'cabc02029fb9027df7dcde287396ddcc11f3c279':
  Add argument to binder call to check key types
  Provide fallback for keymaster implementations
2013-09-10 11:09:48 -07:00
Kenny Root
6f149959c7 am c7fe66ea: Merge "Revert to old-style API for EC_KEY handling"
* commit 'c7fe66ead0ce5fde575359527110fe2616321594':
  Revert to old-style API for EC_KEY handling
2013-09-10 11:06:31 -07:00
Kenny Root
cabc02029f Merge changes I52418ade,Ic02102cb
* changes:
  Add argument to binder call to check key types
  Provide fallback for keymaster implementations
2013-09-10 17:58:58 +00:00
Kenny Root
70f16c1983 Add argument to binder call to check key types
Before there was only one key type supported, so we didn't need to query
a key type. Now there is DSA, EC, and RSA, so there needs to be another
argument.

(cherry picked from commit 1b0e393390)

Bug: 10600582
Change-Id: I52418ade881d053229dd3c1d0cf438823468b51b
2013-09-10 10:58:14 -07:00
Kenny Root
b4d2e0233f Provide fallback for keymaster implementations
Some implementations won't support ECDSA or DSA, so provide a fallback
for them by using the softkeymaster implementation. This will allow us
to universally support ECDSA and DSA on all platforms regardless of HAL
version.

(cherry picked from commit 17208e0de5)

Bug: 10600582
Change-Id: Ic02102cb2b7f66e2ad3469f4edd9d03c4ae3fdf4
2013-09-10 10:58:14 -07:00
Kenny Root
c7fe66ead0 Merge "Revert to old-style API for EC_KEY handling" 2013-09-10 17:55:47 +00:00
Kenny Root
77acaa0d42 Revert to old-style API for EC_KEY handling
Nothing using the EVP_PKEY correctly, so we should revert to the EC_KEY
and ECDSA interfaces. Unfortunately, the SSL client certificate library
uses EC_KEY directly, so just having the EVP_PKEY interface doesn't
work.

Remove the EVP_PKEY interface entirely because it just adds complexity
since the EC_KEY path will do the same thing.

(cherry picked from commit 47041552bd)

Bug: 10655329
Change-Id: Ibf8c36780fe93284b88e91b7860baf1b951b4266
2013-09-10 10:39:43 -07:00
Kenny Root
541ca3ea93 am f25805e3: am 1d486fb3: am 02d44fe7: Move key name creation to common path
* commit 'f25805e36356cf09dc4853224b24e969ad55651f':
  Move key name creation to common path
2013-09-09 16:02:40 -07:00
Kenny Root
f25805e363 am 1d486fb3: am 02d44fe7: Move key name creation to common path
* commit '1d486fb3eadbc6c27aa33322598003b362a0de8c':
  Move key name creation to common path
2013-09-09 16:01:17 -07:00
Kenny Root
1d486fb3ea am 02d44fe7: Move key name creation to common path
* commit '02d44fe7eb11c09745e633efb3c799325e5d0cb1':
  Move key name creation to common path
2013-09-09 15:59:20 -07:00
Kenny Root
0c12eb307a am 86b16e8c: Move key name creation to common path
* commit '86b16e8c0d353af97f0411917789308dba417295':
  Move key name creation to common path
2013-09-09 14:40:32 -07:00
Kenny Root
02d44fe7eb Move key name creation to common path
(cherry picked from commit 86b16e8c0d)

Bug: 10676015
Change-Id: Ic27ed4cce700e1c9f3fca4d72eaa2d20df564446
2013-09-09 13:40:03 -07:00
Kenny Root
86b16e8c0d Move key name creation to common path
Bug: 10676015
Change-Id: I781e142217959a8a068844b9cb041282b8ae2a74
2013-09-09 13:27:53 -07:00
Kenny Root
b6bc6cae43 am 47041552: Revert to old-style API for EC_KEY handling
* commit '47041552bd545846a1b7787823af4b5ca9e36dea':
  Revert to old-style API for EC_KEY handling
2013-09-07 00:22:55 -07:00
Kenny Root
47041552bd Revert to old-style API for EC_KEY handling
Nothing using the EVP_PKEY correctly, so we should revert to the EC_KEY
and ECDSA interfaces. Unfortunately, the SSL client certificate library
uses EC_KEY directly, so just having the EVP_PKEY interface doesn't
work.

Remove the EVP_PKEY interface entirely because it just adds complexity
since the EC_KEY path will do the same thing.

Bug: 10655329
Change-Id: I97d17068297c33477b3b9f754f2713fdf258d646
2013-09-07 06:08:45 +00:00
Kenny Root
e6287b91ff am 1b0e3933: Add argument to binder call to check key types
* commit '1b0e3933900c7ea21189704d5db64e7346aee7af':
  Add argument to binder call to check key types
2013-09-05 14:45:07 -07:00
Kenny Root
1b0e393390 Add argument to binder call to check key types
Before there was only one key type supported, so we didn't need to query
a key type. Now there is DSA, EC, and RSA, so there needs to be another
argument.

Bug: 10600582
Change-Id: I864e5aa0484ae44ccfaf859560700cfc34f58711
2013-09-05 13:06:32 -07:00
Kenny Root
64857861c8 am 17208e0d: Provide fallback for keymaster implementations
* commit '17208e0de5a42722901d803118745cca25fd10c1':
  Provide fallback for keymaster implementations
2013-09-05 00:30:25 -07:00
Kenny Root
17208e0de5 Provide fallback for keymaster implementations
Some implementations won't support ECDSA or DSA, so provide a fallback
for them by using the softkeymaster implementation. This will allow us
to universally support ECDSA and DSA on all platforms regardless of HAL
version.

Bug: 10600582
Change-Id: Ib842816cc1415ec00abb7d22c8e9b6bbe58f6a86
2013-09-04 17:17:04 -07:00
Kenny Root
8757a58b38 am 96427baf: Add support for DSA and ECDSA key types
* commit '96427baf0094d50047049d329b0779c3c910402c':
  Add support for DSA and ECDSA key types
2013-09-03 10:32:06 -07:00
Kenny Root
96427baf00 Add support for DSA and ECDSA key types
(cherry picked from commit 6071179a37)

Bug: 10600582
Change-Id: I0d851bbe1230a31033614c9f9b9de94f1f842618
2013-09-03 00:53:15 -07:00
Kenny Root
81d8ca9b15 Merge "Add support for DSA and ECDSA key types" 2013-09-03 07:11:42 +00:00
Kenny Root
6071179a37 Add support for DSA and ECDSA key types
Change-Id: Ibee8d172eeb36f1a2e2ce62f275aea55ada5bcbf
2013-08-30 17:25:20 -07:00
Kenny Root
48772e0fe9 am e2a878e9: Merge "Revert "Revert "Split up main engine from methods"""
* commit 'e2a878e9cd7db48fd9466e19e1fa207a8117319e':
  Revert "Revert "Split up main engine from methods""
2013-06-27 10:31:00 -07:00
Kenny Root
e2a878e9cd Merge "Revert "Revert "Split up main engine from methods""" 2013-06-27 17:29:49 +00:00
Kenny Root
9d422a535c Revert "Revert "Split up main engine from methods""
Added missing Android.mk change in this commit.

This reverts commit 1fcabcd327.

Change-Id: I71e7fbc8f80a35b4666af985cffb4e7a2eb5634f
2013-06-27 09:15:49 -07:00
Kenny Root
a2d5639afe am 3aca7a31: Merge "Revert "Split up main engine from methods""
* commit '3aca7a31c4e999141003fb707060e83e0881caf0':
  Revert "Split up main engine from methods"
2013-06-27 09:15:46 -07:00
Kenny Root
3aca7a31c4 Merge "Revert "Split up main engine from methods"" 2013-06-27 16:13:50 +00:00