mirror of
https://git.freebsd.org/ports.git
synced 2025-06-14 09:10:32 -04:00
- 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
13 lines
375 B
C
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 */
|