projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
updates. New data types.
[silc.git]
/
lib
/
silccrypt
/
silccipher.c
diff --git
a/lib/silccrypt/silccipher.c
b/lib/silccrypt/silccipher.c
index 5eba8bcae6562293268833c56968a90cd452635c..c321f6f9ea3258d76bb75ed499de3280d1387917 100644
(file)
--- a/
lib/silccrypt/silccipher.c
+++ b/
lib/silccrypt/silccipher.c
@@
-317,7
+317,7
@@
char *silc_cipher_get_supported()
/* Encrypts */
int silc_cipher_encrypt(SilcCipher cipher, const unsigned char *src,
/* Encrypts */
int silc_cipher_encrypt(SilcCipher cipher, const unsigned char *src,
- unsigned char *dst, u
nsigned int
len,
+ unsigned char *dst, u
int32
len,
unsigned char *iv)
{
return cipher->cipher->encrypt(cipher->context, src, dst, len, iv);
unsigned char *iv)
{
return cipher->cipher->encrypt(cipher->context, src, dst, len, iv);
@@
-326,7
+326,7
@@
int silc_cipher_encrypt(SilcCipher cipher, const unsigned char *src,
/* Decrypts */
int silc_cipher_decrypt(SilcCipher cipher, const unsigned char *src,
/* Decrypts */
int silc_cipher_decrypt(SilcCipher cipher, const unsigned char *src,
- unsigned char *dst, u
nsigned int
len,
+ unsigned char *dst, u
int32
len,
unsigned char *iv)
{
return cipher->cipher->decrypt(cipher->context, src, dst, len, iv);
unsigned char *iv)
{
return cipher->cipher->decrypt(cipher->context, src, dst, len, iv);
@@
-335,7
+335,7
@@
int silc_cipher_decrypt(SilcCipher cipher, const unsigned char *src,
/* Sets the key for the cipher */
int silc_cipher_set_key(SilcCipher cipher, const unsigned char *key,
/* Sets the key for the cipher */
int silc_cipher_set_key(SilcCipher cipher, const unsigned char *key,
- u
nsigned int
keylen)
+ u
int32
keylen)
{
return cipher->cipher->set_key(cipher->context, key, keylen);
}
{
return cipher->cipher->set_key(cipher->context, key, keylen);
}
@@
-358,14
+358,14
@@
void silc_cipher_get_iv(SilcCipher cipher, unsigned char *iv)
/* Returns the key length of the cipher. */
/* Returns the key length of the cipher. */
-u
nsigned int
silc_cipher_get_key_len(SilcCipher cipher)
+u
int32
silc_cipher_get_key_len(SilcCipher cipher)
{
return cipher->cipher->key_len;
}
/* Returns the block size of the cipher. */
{
return cipher->cipher->key_len;
}
/* Returns the block size of the cipher. */
-u
nsigned int
silc_cipher_get_block_len(SilcCipher cipher)
+u
int32
silc_cipher_get_block_len(SilcCipher cipher)
{
return cipher->cipher->block_len;
}
{
return cipher->cipher->block_len;
}