projects
/
platform
/
upstream
/
cryptsetup.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fix some problems found by Coverity scan.
[platform/upstream/cryptsetup.git]
/
lib
/
crypto_backend
/
pbkdf_check.c
diff --git
a/lib/crypto_backend/pbkdf_check.c
b/lib/crypto_backend/pbkdf_check.c
index
69f6bfb
..
ce5bd1e
100644
(file)
--- a/
lib/crypto_backend/pbkdf_check.c
+++ b/
lib/crypto_backend/pbkdf_check.c
@@
-82,10
+82,6
@@
int crypt_pbkdf_check(const char *kdf, const char *hash,
return -EINVAL;
}
- /* Safety check if anything went wrong */
- if (ms < 10)
- return -EINVAL;
-
if (iter_secs)
*iter_secs = (iterations * 1000) / ms;
return r;