|
|
@ -29,7 +29,7 @@ public class EncryptionAlgorithmCheckerTest { |
|
|
|
var tester = CxxFileTesterHelper.create("EncryptionAlgorithmChecker.cc"); |
|
|
|
var tester = CxxFileTesterHelper.create("EncryptionAlgorithmChecker.cc"); |
|
|
|
SourceFile file = CxxAstScanner.scanSingleInputFile(tester.asInputFile(), checker); |
|
|
|
SourceFile file = CxxAstScanner.scanSingleInputFile(tester.asInputFile(), checker); |
|
|
|
CheckMessagesVerifier.verify(file.getCheckMessages()) |
|
|
|
CheckMessagesVerifier.verify(file.getCheckMessages()) |
|
|
|
.next().atLine(8).withMessage("特定字段未使用VirtualLock()函数锁定存放敏感信息的内存") |
|
|
|
.next().atLine(8).withMessage("特定字段未使用单向加密算法对口令进行加密并存储") |
|
|
|
.noMore(); |
|
|
|
.noMore(); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|