projects
/
openssl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
e_aes.c: prevent potential DoS in aes_gcm_tls_cipher.
[openssl.git]
/
crypto
/
bf
/
bf_skey.c
diff --git
a/crypto/bf/bf_skey.c
b/crypto/bf/bf_skey.c
index 86574c0acc49cab7e4cbd7ecccd5322a1a320aed..3673cdee6e26172c78a3de35da48eb62b4e26dee 100644
(file)
--- a/
crypto/bf/bf_skey.c
+++ b/
crypto/bf/bf_skey.c
@@
-58,21
+58,18
@@
#include <stdio.h>
#include <string.h>
#include <stdio.h>
#include <string.h>
-#include
"blowfish.h"
+#include
<openssl/blowfish.h>
#include "bf_locl.h"
#include "bf_pi.h"
#include "bf_locl.h"
#include "bf_pi.h"
-void BF_set_key(key,len,data)
-BF_KEY *key;
-int len;
-unsigned char *data;
+void BF_set_key(BF_KEY *key, int len, const unsigned char *data)
{
int i;
BF_LONG *p,ri,in[2];
{
int i;
BF_LONG *p,ri,in[2];
- unsigned char *d,*end;
+
const
unsigned char *d,*end;
- memcpy(
(char *)key,(char *)
&bf_init,sizeof(BF_KEY));
+ memcpy(
key,
&bf_init,sizeof(BF_KEY));
p=key->P;
if (len > ((BF_ROUNDS+2)*4)) len=(BF_ROUNDS+2)*4;
p=key->P;
if (len > ((BF_ROUNDS+2)*4)) len=(BF_ROUNDS+2)*4;