Hardware keymaster HAL should not indicate 'software'

Remove the 'software' flag so that keystore knows that this is a
hardware implementation.

Bug: 7106634
Change-Id: I1eef2d3564dc4e687644bd156694c893cc9a8e8d
keystore: don't use binder input buffers for rsa sign/verify directly

The input buffers for RSA sign/verify are passed over the binder, which
maps it into this process as read-only. When this buffer is passed
to mobicore, it tries to pin the page with __get_user_pages with
PROT_WRITE, which fails. Since the mobicore transport code doesn't
know if the APIs are producers or consumers, it "rightfully" assumes
all buffers are read/write. The interface to trustzone currently
doesn't support specifying read/write access bits, so instead
we create a copy of the input data in a locally allocated
malloc buffer and use that instead.

Bug: 8019596
Change-Id: I3c77c893f674ec73196a8a2ea3e5a24fb9e3b860
Signed-off-by: Dima Zavin <dima@android.com>
Use EVP_PKEY_get1_RSA to get RSA reference

EVP_PKEY structures could be of any number of key types. Switch to
EVP_PKEY_get1_RSA because that will check that the key type before it
tries to pull out the RSA pointer. This prevents crashes when the key
type is not actually RSA.

Bug: 10647482
Change-Id: I6848db52b04ed11331138ac00f0796574a87fa6a
Use canonical UniquePtr.h header

Change-Id: Ic8f3263ad83c3cd3bf0f5a9c847ee26910afb616
exynos5-insignal: Add missing include path for sync/sync.h

Change-Id: Ic35c39049e46495d5bd79366e624dbfa3b2983f9
hwc: set retire fence fds

Change-Id: Iece6483e6402a9a425086b8ee8e67e17909b7d8a
exynos5-insignal: Add missing include path for sync/sync.h (2)

The previous commit only handled libhwcService, but libhwc needs
the sync definitions as well.

Change-Id: I95f01930a7aada0196744ed172db902a37c69283
libhwc: Do not include s3c-fb.h.

This should be include by the ExynosHWCModule.h file in the exynos54x0
branch. Exynos5430 is using decon_fb.h this way each soc dependent tree
can include the correct header.

Change-Id: Icd0af7134d9de46e2ed358fcc98c3d1e2ddbe266
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>