/*
- * Copyright (c) 2016 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2016-2019 Samsung Electronics Co., Ltd All Rights Reserved
*
* Contact: Kyungwook Tak <k.tak@samsung.com>
*
constexpr unsigned int KeyLen = 20;
unsigned char *key = nullptr;
- BOOST_REQUIRE_MESSAGE(
- (retval = cs_derive_key_with_pass(pass, passlen, KeyLen, &key)) == CS_ERROR_NONE,
+ retval = cs_derive_key_with_pass(pass, passlen, KeyLen, &key);
+ BOOST_REQUIRE_MESSAGE(retval == CS_ERROR_NONE,
"Failed to cs_derive_key_with_pass with retval: " << retval);
std::unique_ptr<unsigned char, void(*)(void *)> pKey(key, free);