C++: Add support for class methods.

This commit is contained in:
Geoffrey White
2021-05-13 16:02:00 +01:00
parent 2576075b98
commit 3a83ff54e6
3 changed files with 6 additions and 3 deletions

View File

@@ -6,6 +6,8 @@
| test2.cpp:175:28:175:34 | USE_DES | This enum constant access specifies a broken or weak cryptographic algorithm. |
| test2.cpp:182:38:182:45 | ALGO_DES | This macro invocation specifies a broken or weak cryptographic algorithm. |
| test2.cpp:185:38:185:44 | USE_DES | This enum constant access specifies a broken or weak cryptographic algorithm. |
| test2.cpp:234:2:234:20 | call to encrypt | This function call specifies a broken or weak cryptographic algorithm. |
| test2.cpp:239:5:239:11 | call to encrypt | This function call specifies a broken or weak cryptographic algorithm. |
| test.cpp:38:2:38:31 | ENCRYPT_WITH_DES(data,amount) | This macro invocation specifies a broken or weak cryptographic algorithm. |
| test.cpp:39:2:39:31 | ENCRYPT_WITH_RC2(data,amount) | This macro invocation specifies a broken or weak cryptographic algorithm. |
| test.cpp:51:2:51:32 | DES_DO_ENCRYPTION(data,amount) | This macro invocation specifies a broken or weak cryptographic algorithm. |

View File

@@ -231,12 +231,12 @@ public:
void do_classes(const char *data)
{
desEncrypt::encrypt(data); // BAD [NOT DETECTED]
desEncrypt::encrypt(data); // BAD
aes256Encrypt::encrypt(data); // GOOD
desCipher dc;
aesCipher ac;
dc.encrypt(data); // BAD [NOT DETECTED]
dc.encrypt(data); // BAD
ac.encrypt(data); // GOOD
}