Advertisement
Guest User

Untitled

a guest
Feb 28th, 2022
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 9.52 KB | None | 0 0
  1. tools.cpp: In function ‘std::string transformToMD5(std::string, bool):
  2. tools.cpp:43:2: error: ‘byte’ was not declared in this scope; did you mean ‘CryptoPP::byte?
  3.    43 |  byte digest[CryptoPP::Weak::MD5::DIGESTSIZE];
  4.       |  ^~~~
  5.       |  CryptoPP::byte
  6. In file included from /usr/include/cryptopp/config.h:27,
  7.                  from /usr/include/cryptopp/sha.h:11,
  8.                  from tools.cpp:23:
  9. /usr/include/cryptopp/config_int.h:56:23: note: ‘CryptoPP::byte’ declared here
  10.    56 | typedef unsigned char byte;
  11.       |                       ^~~~
  12. tools.cpp:46:23: error: ‘digest’ was not declared in this scope; did you mean ‘sigset’?
  13.    46 |  hash.CalculateDigest(digest, (const byte*)plainText.c_str(), plainText.length());
  14.       |                       ^~~~~~
  15.       |                       sigset
  16. tools.cpp:46:38: error: ISO C++ forbids declaration of ‘type name’ with no type [-fpermissive]
  17.    46 |  hash.CalculateDigest(digest, (const byte*)plainText.c_str(), plainText.length());
  18.       |                                      ^~~~
  19. tools.cpp:46:32: error: expected primary-expression before ‘const
  20.    46 |  hash.CalculateDigest(digest, (const byte*)plainText.c_str(), plainText.length());
  21.       |                                ^~~~~
  22. tools.cpp:46:32: error: expected ‘)’ before ‘const
  23.    46 |  hash.CalculateDigest(digest, (const byte*)plainText.c_str(), plainText.length());
  24.       |                               ~^~~~~
  25.       |                                )
  26. tools.cpp: In function ‘std::string transformToSHA1(std::string, bool):
  27. tools.cpp:73:2: error: ‘byte’ was not declared in this scope; did you mean ‘CryptoPP::byte?
  28.    73 |  byte digest[CryptoPP::SHA1::DIGESTSIZE];
  29.       |  ^~~~
  30.       |  CryptoPP::byte
  31. In file included from /usr/include/cryptopp/config.h:27,
  32.                  from /usr/include/cryptopp/sha.h:11,
  33.                  from tools.cpp:23:
  34. /usr/include/cryptopp/config_int.h:56:23: note: ‘CryptoPP::byte’ declared here
  35.    56 | typedef unsigned char byte;
  36.       |                       ^~~~
  37. tools.cpp:76:23: error: ‘digest’ was not declared in this scope; did you mean ‘sigset’?
  38.    76 |  hash.CalculateDigest(digest, (const byte*)plainText.c_str(), plainText.length());
  39.       |                       ^~~~~~
  40.       |                       sigset
  41. tools.cpp:76:38: error: ISO C++ forbids declaration of ‘type name’ with no type [-fpermissive]
  42.    76 |  hash.CalculateDigest(digest, (const byte*)plainText.c_str(), plainText.length());
  43.       |                                      ^~~~
  44. tools.cpp:76:32: error: expected primary-expression before ‘const
  45.    76 |  hash.CalculateDigest(digest, (const byte*)plainText.c_str(), plainText.length());
  46.       |                                ^~~~~
  47. tools.cpp:76:32: error: expected ‘)’ before ‘const
  48.    76 |  hash.CalculateDigest(digest, (const byte*)plainText.c_str(), plainText.length());
  49.       |                               ~^~~~~
  50.       |                                )
  51. tools.cpp: In function ‘std::string transformToSHA256(std::string, bool):
  52. tools.cpp:103:2: error: ‘byte’ was not declared in this scope; did you mean ‘CryptoPP::byte?
  53.   103 |  byte digest[CryptoPP::SHA256::DIGESTSIZE];
  54.       |  ^~~~
  55.       |  CryptoPP::byte
  56. In file included from /usr/include/cryptopp/config.h:27,
  57.                  from /usr/include/cryptopp/sha.h:11,
  58.                  from tools.cpp:23:
  59. /usr/include/cryptopp/config_int.h:56:23: note: ‘CryptoPP::byte’ declared here
  60.    56 | typedef unsigned char byte;
  61.       |                       ^~~~
  62. tools.cpp:106:23: error: ‘digest’ was not declared in this scope; did you mean ‘sigset’?
  63.   106 |  hash.CalculateDigest(digest, (const byte*)plainText.c_str(), plainText.length());
  64.       |                       ^~~~~~
  65.       |                       sigset
  66. tools.cpp:106:38: error: ISO C++ forbids declaration of ‘type name’ with no type [-fpermissive]
  67.   106 |  hash.CalculateDigest(digest, (const byte*)plainText.c_str(), plainText.length());
  68.       |                                      ^~~~
  69. tools.cpp:106:32: error: expected primary-expression before ‘const
  70.   106 |  hash.CalculateDigest(digest, (const byte*)plainText.c_str(), plainText.length());
  71.       |                                ^~~~~
  72. tools.cpp:106:32: error: expected ‘)’ before ‘const
  73.   106 |  hash.CalculateDigest(digest, (const byte*)plainText.c_str(), plainText.length());
  74.       |                               ~^~~~~
  75.       |                                )
  76. tools.cpp: In function ‘std::string transformToSHA512(std::string, bool):
  77. tools.cpp:133:2: error: ‘byte’ was not declared in this scope; did you mean ‘CryptoPP::byte?
  78.   133 |  byte digest[CryptoPP::SHA512::DIGESTSIZE];
  79.       |  ^~~~
  80.       |  CryptoPP::byte
  81. In file included from /usr/include/cryptopp/config.h:27,
  82.                  from /usr/include/cryptopp/sha.h:11,
  83.                  from tools.cpp:23:
  84. /usr/include/cryptopp/config_int.h:56:23: note: ‘CryptoPP::byte’ declared here
  85.    56 | typedef unsigned char byte;
  86.       |                       ^~~~
  87. tools.cpp:136:23: error: ‘digest’ was not declared in this scope; did you mean ‘sigset’?
  88.   136 |  hash.CalculateDigest(digest, (const byte*)plainText.c_str(), plainText.length());
  89.       |                       ^~~~~~
  90.       |                       sigset
  91. tools.cpp:136:38: error: ISO C++ forbids declaration of ‘type name’ with no type [-fpermissive]
  92.   136 |  hash.CalculateDigest(digest, (const byte*)plainText.c_str(), plainText.length());
  93.       |                                      ^~~~
  94. tools.cpp:136:32: error: expected primary-expression before ‘const
  95.   136 |  hash.CalculateDigest(digest, (const byte*)plainText.c_str(), plainText.length());
  96.       |                                ^~~~~
  97. tools.cpp:136:32: error: expected ‘)’ before ‘const
  98.   136 |  hash.CalculateDigest(digest, (const byte*)plainText.c_str(), plainText.length());
  99.       |                               ~^~~~~
  100.       |                                )
  101. tools.cpp: In function ‘std::string transformToVAHash(std::string, bool):
  102. tools.cpp:169:2: error: ‘byte’ was not declared in this scope; did you mean ‘CryptoPP::byte?
  103.   169 |  byte digest[CryptoPP::SHA512::DIGESTSIZE];
  104.       |  ^~~~
  105.       |  CryptoPP::byte
  106. In file included from /usr/include/cryptopp/config.h:27,
  107.                  from /usr/include/cryptopp/sha.h:11,
  108.                  from tools.cpp:23:
  109. /usr/include/cryptopp/config_int.h:56:23: note: ‘CryptoPP::byte’ declared here
  110.    56 | typedef unsigned char byte;
  111.       |                       ^~~~
  112. tools.cpp:172:42: error: ISO C++ forbids declaration of ‘type name’ with no type [-fpermissive]
  113.   172 |  CryptoPP::HMAC<CryptoPP::SHA512>((const byte*)key.c_str(), key.length()).CalculateDigest(
  114.       |                                          ^~~~
  115. tools.cpp:172:34: error: expected primary-expression before ‘(’ token
  116.   172 |  CryptoPP::HMAC<CryptoPP::SHA512>((const byte*)key.c_str(), key.length()).CalculateDigest(
  117.       |                                  ^
  118. tools.cpp:172:42: error: ISO C++ forbids declaration of ‘type name’ with no type [-fpermissive]
  119.   172 |  CryptoPP::HMAC<CryptoPP::SHA512>((const byte*)key.c_str(), key.length()).CalculateDigest(
  120.       |                                          ^~~~
  121. tools.cpp:172:36: error: expected primary-expression before ‘const
  122.   172 |  CryptoPP::HMAC<CryptoPP::SHA512>((const byte*)key.c_str(), key.length()).CalculateDigest(
  123.       |                                    ^~~~~
  124. tools.cpp:172:36: error: expected ‘)’ before ‘const
  125.   172 |  CryptoPP::HMAC<CryptoPP::SHA512>((const byte*)key.c_str(), key.length()).CalculateDigest(
  126.       |                                   ~^~~~~
  127.       |                                    )
  128. tools.cpp:183:14: error: ‘digest’ was not declared in this scope; did you mean ‘sigset’?
  129.   183 |  encoder.Put(digest, sizeof(digest));
  130.       |              ^~~~~~
  131.       |              sigset
  132. tools.cpp: In function ‘uint32_t adlerChecksum(uint8_t*, size_t):
  133. tools.cpp:1669:2: error: ‘byte’ was not declared in this scope; did you mean ‘CryptoPP::byte?
  134.  1669 |  byte digest[CryptoPP::Adler32::DIGESTSIZE];
  135.       |  ^~~~
  136.       |  CryptoPP::byte
  137. In file included from /usr/include/cryptopp/config.h:27,
  138.                  from /usr/include/cryptopp/sha.h:11,
  139.                  from tools.cpp:23:
  140. /usr/include/cryptopp/config_int.h:56:23: note: ‘CryptoPP::byte’ declared here
  141.    56 | typedef unsigned char byte;
  142.       |                       ^~~~
  143. tools.cpp:1672:24: error: ‘digest’ was not declared in this scope; did you mean ‘sigset’?
  144.  1672 |  adler.CalculateDigest(digest, (const byte*)data, length);
  145.       |                        ^~~~~~
  146.       |                        sigset
  147. tools.cpp:1672:39: error: ISO C++ forbids declaration of ‘type name’ with no type [-fpermissive]
  148.  1672 |  adler.CalculateDigest(digest, (const byte*)data, length);
  149.       |                                       ^~~~
  150. tools.cpp:1672:33: error: expected primary-expression before ‘const
  151.  1672 |  adler.CalculateDigest(digest, (const byte*)data, length);
  152.       |                                 ^~~~~
  153. tools.cpp:1672:33: error: expected ‘)’ before ‘const
  154.  1672 |  adler.CalculateDigest(digest, (const byte*)data, length);
  155.       |                                ~^~~~~
  156.       |                                 )
  157. make[1]: *** [Makefile:595: tools.o] Error 1
  158. make[1]: *** Waiting for unfinished jobs....
  159. mv -f .deps/tile.Tpo .deps/tile.Po
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement