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:
d98b1aa
)
DSA sign/verify support
59/68759/5
author
Lukasz Pawelczyk
<l.pawelczyk@samsung.com>
Mon, 9 May 2016 11:27:08 +0000
(13:27 +0200)
committer
Lukasz Pawelczyk
<l.pawelczyk@samsung.com>
Wed, 11 May 2016 11:04:24 +0000
(13:04 +0200)
The previous implementation was generic enough to handle DSA as well.
Change-Id: I0c952e340cae3fabb05aa0e10fa5f0947319e4f8
src/sign.c
patch
|
blob
|
history
diff --git
a/src/sign.c
b/src/sign.c
index
24fe7ac
..
b885cc6
100644
(file)
--- a/
src/sign.c
+++ b/
src/sign.c
@@
-157,9
+157,9
@@
API int yaca_sign_init(yaca_ctx_h *ctx,
{
case YACA_KEY_TYPE_SYMMETRIC:
case YACA_KEY_TYPE_RSA_PRIV:
+ case YACA_KEY_TYPE_DSA_PRIV:
nc->op_type = OP_SIGN;
break;
- case YACA_KEY_TYPE_DSA_PRIV:
case YACA_KEY_TYPE_ECDSA_PRIV:
ret = YACA_ERROR_NOT_IMPLEMENTED;
goto free_ctx;
@@
-277,9
+277,9
@@
API int yaca_verify_init(yaca_ctx_h *ctx,
nc->op_type = OP_VERIFY_SYMMETRIC;
break;
case YACA_KEY_TYPE_RSA_PUB:
+ case YACA_KEY_TYPE_DSA_PUB:
nc->op_type = OP_VERIFY_ASYMMETRIC;
break;
- case YACA_KEY_TYPE_DSA_PUB:
case YACA_KEY_TYPE_ECDSA_PUB:
ret = YACA_ERROR_NOT_IMPLEMENTED;
goto free_ctx;