summaryrefslogtreecommitdiff
path: root/security/py-pycrypto/files/patch-src-ARC2.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/py-pycrypto/files/patch-src-ARC2.c')
-rw-r--r--security/py-pycrypto/files/patch-src-ARC2.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/security/py-pycrypto/files/patch-src-ARC2.c b/security/py-pycrypto/files/patch-src-ARC2.c
deleted file mode 100644
index e4df631c1ce2..000000000000
--- a/security/py-pycrypto/files/patch-src-ARC2.c
+++ /dev/null
@@ -1,25 +0,0 @@
-diff --git a/src/ARC2.c b/src/ARC2.c
-index eb61713..35d9151 100644
---- src/ARC2.c
-+++ src/ARC2.c
-@@ -11,6 +11,7 @@
- */
-
- #include <string.h>
-+#include "Python.h"
-
- #define MODULE_NAME ARC2
- #define BLOCK_SIZE 8
-@@ -144,6 +145,12 @@ block_init(block_state *self, U8 *key, int keylength)
- 197,243,219, 71,229,165,156,119, 10,166, 32,104,254,127,193,173
- };
-
-+ if ((U32)keylength > sizeof(self->xkey)) {
-+ PyErr_SetString(PyExc_ValueError,
-+ "ARC2 key length must be less than 128 bytes");
-+ return;
-+ }
-+
- memcpy(self->xkey, key, keylength);
-
- /* Phase 1: Expand input key to 128 bytes */