/*
* libcryptsvc - device unique key
*
- * Copyright (c) 2000 - 2013 Samsung Electronics Co., Ltd All Rights Reserved
+ * Copyright (c) 2000 - 2020 Samsung Electronics Co., Ltd All Rights Reserved
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
goto exit;
}
- PKCS5_PBKDF2_HMAC_SHA1(info, 8, pKey, idSize, 1, idSize, pDuid);
+ if (!PKCS5_PBKDF2_HMAC_SHA1(info, 8, pKey, idSize, 1, idSize, pDuid)) {
+ SLOGE("Error in PKCS5_PBKDF2_HMAC_SHA1");
+ goto exit;
+ }
if (!(pId = Base64Encoding((char *)pDuid, idSize))) {
SLOGE("Failed to convert to base64 string");