add ALGO_ECDSA_SV to MAX_KEY_SIZE in tz_backend 70/294970/2
authorDongsun Lee <ds73.lee@samsung.com>
Thu, 29 Jun 2023 07:42:00 +0000 (16:42 +0900)
committerDongsun 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

index e8c500b..cc9a78c 100644 (file)
@@ -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 {