yaca_key_extract_public() public function 62/68462/16
authorLukasz Pawelczyk <l.pawelczyk@samsung.com>
Mon, 2 May 2016 11:50:46 +0000 (13:50 +0200)
committerLukasz Pawelczyk <l.pawelczyk@samsung.com>
Wed, 11 May 2016 11:04:24 +0000 (13:04 +0200)
commit2758c7949bf6208e94e180565fabde70d795eb01
treeb9fdad66f8f8cb9ec0d1683f3c9f7b8dfc9cb751
parent32bc85cef8ae6e6dd60bcc742d252210008fc188
yaca_key_extract_public() public function

The idea is to remove yaca_key_gen_pair() and always generate using
yaca_key_gen(). The latter will always generate private keys for
asymmetric types. Public key will be extracted (if needed) using the
function implemented here.

This approach has an advantage that we can extract public keys for
private keys imported from external sources. Previously this was
impossible.

Change-Id: I081c81eb37ed3267518aac21a9bf36063ef0e901
api/yaca/key.h
src/key.c