Reduce the times doing the hash
authorso.yu <so.yu@samsung.com>
Wed, 12 Jun 2013 02:30:45 +0000 (11:30 +0900)
committerso.yu <so.yu@samsung.com>
Wed, 12 Jun 2013 02:30:51 +0000 (11:30 +0900)
Change-Id: Ibd5899d3a97b8556e2feb66efcfbee1eb67407fc
Signed-off-by: so.yu <so.yu@samsung.com>
src/dukgen.c

index db8c049..86a2e4d 100755 (executable)
@@ -38,7 +38,7 @@ char* GetDeviceUniqueKey(char* pAppId, int idLen, int keyLen)
        }
 
        pDuk = (char*)calloc(keyLen, 1);
-       PKCS5_PBKDF2_HMAC_SHA1(pAppId, idLen, (unsigned char*)pUniqueKey, keyLen, 1000, keyLen, (unsigned char*)pDuk);
+       PKCS5_PBKDF2_HMAC_SHA1(pAppId, idLen, (unsigned char*)pUniqueKey, keyLen, 1, keyLen, (unsigned char*)pDuk);
        free(pUniqueKey);
 
        return pDuk;