mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-09 18:04:25 +09:00
libcrypto: Avoid incompatible pointers
Fixes: T164 Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
@@ -686,8 +686,12 @@ static int aes_ctr_set_key(struct ssh_cipher_struct *cipher, void *key,
|
|||||||
return SSH_OK;
|
return SSH_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void aes_ctr_encrypt(struct ssh_cipher_struct *cipher, void *in, void *out,
|
static void
|
||||||
unsigned long len) {
|
aes_ctr_encrypt(struct ssh_cipher_struct *cipher,
|
||||||
|
void *in,
|
||||||
|
void *out,
|
||||||
|
size_t len)
|
||||||
|
{
|
||||||
unsigned char tmp_buffer[AES_BLOCK_SIZE];
|
unsigned char tmp_buffer[AES_BLOCK_SIZE];
|
||||||
unsigned int num=0;
|
unsigned int num=0;
|
||||||
/* Some things are special with ctr128 :
|
/* Some things are special with ctr128 :
|
||||||
|
|||||||
Reference in New Issue
Block a user