ports/security/john/files/patch-jumbo.h
Alexey Dokuchaev 12ce366573 - Replace OpenSSL HMAC-SHA1 code with JtR own code
- Remove use of EVP in favor of the low-level API
- Add generic check_pkcs_pad() function in jumbo.c

Obtained from:	https://github.com/magnumripper/JohnTheRipper/commit/f837171
		https://github.com/magnumripper/JohnTheRipper/commit/04d2b35
2019-03-07 13:46:10 +00:00

13 lines
375 B
C

--- jumbo.h.orig 2014-12-18 07:59:02 UTC
+++ jumbo.h
@@ -388,4 +388,10 @@ extern int setenv(const char *name, const char *val, i
//HAVE_STRTOL
//HAVE_STRTOUL
+/*
+ * Standard PKCS padding check. On success, returns net length.
+ * On failure, returns -1.
+ */
+extern int check_pkcs_pad(const unsigned char* data, size_t len, int blocksize);
+
#endif /* _JTR_JUMBO_H */