if ((Password == NULL) || (Salt == NULL) || (OutKey == NULL)) {\r
return FALSE;\r
}\r
+\r
if ((PasswordLength == 0) || (PasswordLength > INT_MAX) ||\r
(SaltLength == 0) || (SaltLength > INT_MAX) ||\r
(KeyLength == 0) || (KeyLength > INT_MAX) ||\r
- (IterationCount < 1) || (IterationCount > INT_MAX)) {\r
+ (IterationCount < 1) || (IterationCount > INT_MAX))\r
+ {\r
return FALSE;\r
}\r
+\r
//\r
// Make sure the digest algorithm is supported.\r
//\r
switch (DigestSize) {\r
- case SHA1_DIGEST_SIZE:\r
- HashAlg = EVP_sha1();\r
- break;\r
- case SHA256_DIGEST_SIZE:\r
- HashAlg = EVP_sha256();\r
- break;\r
- default:\r
- return FALSE;\r
- break;\r
+ case SHA1_DIGEST_SIZE:\r
+ HashAlg = EVP_sha1 ();\r
+ break;\r
+ case SHA256_DIGEST_SIZE:\r
+ HashAlg = EVP_sha256 ();\r
+ break;\r
+ default:\r
+ return FALSE;\r
+ break;\r
}\r
\r
//\r