projects
/
platform
/
core
/
security
/
yaca.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1dcbbaa
)
yaca_key_import()/yaca_key_export() for DSA
57/68757/5
author
Lukasz Pawelczyk
<l.pawelczyk@samsung.com>
Mon, 9 May 2016 10:42:54 +0000
(12:42 +0200)
committer
Lukasz Pawelczyk
<l.pawelczyk@samsung.com>
Wed, 11 May 2016 11:04:24 +0000
(13:04 +0200)
It seems that my previous import/export commit was generic enough to
handle DSA as well. Only minor change was required to enable DSA. That's
why this commit is so short.
Change-Id: I0627c10a723b0011dde705d74d290caa36533a9d
src/key.c
patch
|
blob
|
history
diff --git
a/src/key.c
b/src/key.c
index
00a26d3
..
2406350
100644
(file)
--- a/
src/key.c
+++ b/
src/key.c
@@
-777,10
+777,10
@@
API int yaca_key_import(yaca_key_h *key,
return import_simple(key, key_type, data, data_len);
case YACA_KEY_TYPE_RSA_PUB:
case YACA_KEY_TYPE_RSA_PRIV:
- return import_evp(key, key_type, data, data_len);
- case YACA_KEY_TYPE_DES:
case YACA_KEY_TYPE_DSA_PUB:
case YACA_KEY_TYPE_DSA_PRIV:
+ return import_evp(key, key_type, data, data_len);
+ case YACA_KEY_TYPE_DES:
case YACA_KEY_TYPE_DH_PUB:
case YACA_KEY_TYPE_DH_PRIV:
case YACA_KEY_TYPE_ECDSA_PUB: