|
|
|
@ -44,7 +44,7 @@ public class FVNRShaChecker extends SquidCheck<Grammar> { |
|
|
|
|
for (String str:inputFileLines) { |
|
|
|
|
if(str.startsWith("#include")){ |
|
|
|
|
if(str.contains("<openssl/") || str.contains("<cryptopp/") ){ |
|
|
|
|
if(!str.contains("<openssl/sha.h>") && !str.contains("<cryptopp/blake2.h>") && !str.contains("<cryptopp/md5.h>")){ |
|
|
|
|
if(!str.contains("sha.h>") && !str.contains("blake2.h>") && !str.contains("md5.h>")){ |
|
|
|
|
getContext().createFileViolation(this, "应使用不可逆标准散列算法"); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|