From: Krzysztof Jackiewicz Date: Fri, 28 Jul 2023 11:13:19 +0000 (+0200) Subject: Use default tag length for wrapping if not given X-Git-Tag: accepted/tizen/6.5/unified/20230809.042946~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F75%2F296475%2F1;p=platform%2Fcore%2Fsecurity%2Fkey-manager.git Use default tag length for wrapping if not given Change-Id: I2ad6e13383621522af2de8500814f6d01868c828 --- diff --git a/src/manager/crypto/tz-backend/internals.cpp b/src/manager/crypto/tz-backend/internals.cpp index dd4aed4..0b3e398 100644 --- a/src/manager/crypto/tz-backend/internals.cpp +++ b/src/manager/crypto/tz-backend/internals.cpp @@ -218,6 +218,7 @@ void decompose(const CryptoAlgorithm &alg, break; case AlgoType::AES_GCM: iv = unpack(alg, ParamName::ED_IV); + ctrLenOrTagSizeBits = Params::DEFAULT_AES_GCM_TAG_LEN_BITS; alg.getParam(ParamName::ED_TAG_LEN, ctrLenOrTagSizeBits); alg.getParam(ParamName::ED_AAD, aad); break;