minor
Change-Id: Ib80759109f07bf4c33de0f497c5118ecf8e51090
diff --git a/src/detail/crypto-helper.cpp b/src/detail/crypto-helper.cpp
index 86970f9..ae86796 100644
--- a/src/detail/crypto-helper.cpp
+++ b/src/detail/crypto-helper.cpp
@@ -392,8 +392,7 @@
decodeBlockWithAesGcm128(const Block& block, const uint8_t* key, const uint8_t* associatedData, size_t associatedDataSize)
{
block.parse();
- Buffer result;
- result.resize(block.get(tlv::EncryptedPayload).value_size());
+ Buffer result(block.get(tlv::EncryptedPayload).value_size());
int resultLen = aes_gcm_128_decrypt(block.get(tlv::EncryptedPayload).value(),
block.get(tlv::EncryptedPayload).value_size(),
associatedData, associatedDataSize, block.get(tlv::AuthenticationTag).value(),