projects
/
platform
/
core
/
security
/
key-manager.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
68bd681
)
add ALGO_ECDSA_SV to MAX_KEY_SIZE in tz_backend
70/294970/2
author
Dongsun Lee
<ds73.lee@samsung.com>
Thu, 29 Jun 2023 07:42:00 +0000
(16:42 +0900)
committer
Dongsun Lee
<ds73.lee@samsung.com>
Thu, 29 Jun 2023 08:12:22 +0000
(17:12 +0900)
Change-Id: I484312a778a8587d3197132e5182af8b842646ce
src/manager/crypto/tz-backend/tz-context.cpp
patch
|
blob
|
history
diff --git
a/src/manager/crypto/tz-backend/tz-context.cpp
b/src/manager/crypto/tz-backend/tz-context.cpp
index
e8c500b
..
cc9a78c
100644
(file)
--- a/
src/manager/crypto/tz-backend/tz-context.cpp
+++ b/
src/manager/crypto/tz-backend/tz-context.cpp
@@
-66,7
+66,8
@@
static std::string rawToHexString(const RawBuffer &raw)
const std::unordered_map<tz_algo_type, size_t> MAX_KEY_SIZE = {
{ ALGO_RSA, 4096 / 8 },
{ ALGO_RSA_SV, 4096 / 8 },
- { ALGO_DSA_SV, 4096 / 8 }
+ { ALGO_DSA_SV, 4096 / 8 },
+ { ALGO_ECDSA_SV, 1024 / 8 } // 384*2 + additional space for DERR encoding
};
struct EncPwd {