aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/libssh/crypto.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/include/libssh/crypto.h b/include/libssh/crypto.h
index 9eea580b..454dacf7 100644
--- a/include/libssh/crypto.h
+++ b/include/libssh/crypto.h
@@ -165,10 +165,14 @@ struct ssh_cipher_struct {
/* sets the new key for immediate use */
int (*set_encrypt_key)(struct ssh_cipher_struct *cipher, void *key, void *IV);
int (*set_decrypt_key)(struct ssh_cipher_struct *cipher, void *key, void *IV);
- void (*encrypt)(struct ssh_cipher_struct *cipher, void *in, void *out,
- unsigned long len);
- void (*decrypt)(struct ssh_cipher_struct *cipher, void *in, void *out,
- unsigned long len);
+ void (*encrypt)(struct ssh_cipher_struct *cipher,
+ void *in,
+ void *out,
+ size_t len);
+ void (*decrypt)(struct ssh_cipher_struct *cipher,
+ void *in,
+ void *out,
+ size_t len);
void (*aead_encrypt)(struct ssh_cipher_struct *cipher, void *in, void *out,
size_t len, uint8_t *mac, uint64_t seq);
int (*aead_decrypt_length)(struct ssh_cipher_struct *cipher, void *in,