projects
/
silc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added SILC Thread Queue API
[silc.git]
/
lib
/
silccrypt
/
rc5.c
diff --git
a/lib/silccrypt/rc5.c
b/lib/silccrypt/rc5.c
index 30c5dffd396075c05a3fe137976607e3bb8b66b3..290d311089e27306fdc4a0b4c2c2cfc76dd9b2ac 100644
(file)
--- a/
lib/silccrypt/rc5.c
+++ b/
lib/silccrypt/rc5.c
@@
-48,7
+48,7
@@
/* Sets the key for the cipher. */
/* Sets the key for the cipher. */
-SILC_CIPHER_API_SET_KEY(rc5)
+SILC_CIPHER_API_SET_KEY(rc5
_cbc
)
{
SilcUInt32 k[8];
{
SilcUInt32 k[8];
@@
-58,9
+58,16
@@
SILC_CIPHER_API_SET_KEY(rc5)
return TRUE;
}
return TRUE;
}
+/* Sets IV for the cipher. */
+
+SILC_CIPHER_API_SET_IV(rc5_cbc)
+{
+
+}
+
/* Returns the size of the cipher context. */
/* Returns the size of the cipher context. */
-SILC_CIPHER_API_CONTEXT_LEN(rc5)
+SILC_CIPHER_API_CONTEXT_LEN(rc5
_cbc
)
{
return sizeof(RC5Context);
}
{
return sizeof(RC5Context);
}
@@
-68,7
+75,7
@@
SILC_CIPHER_API_CONTEXT_LEN(rc5)
/* Encrypts with the cipher in CBC mode. Source and destination buffers
maybe one and same. */
/* Encrypts with the cipher in CBC mode. Source and destination buffers
maybe one and same. */
-SILC_CIPHER_API_ENCRYPT
_CBC(rc5
)
+SILC_CIPHER_API_ENCRYPT
(rc5_cbc
)
{
SilcUInt32 tiv[4];
int i;
{
SilcUInt32 tiv[4];
int i;
@@
-93,7
+100,7
@@
SILC_CIPHER_API_ENCRYPT_CBC(rc5)
/* Decrypts with the cipher in CBC mode. Source and destination buffers
maybe one and same. */
/* Decrypts with the cipher in CBC mode. Source and destination buffers
maybe one and same. */
-SILC_CIPHER_API_DECRYPT
_CBC(rc5
)
+SILC_CIPHER_API_DECRYPT
(rc5_cbc
)
{
SilcUInt32 tmp[4], tmp2[4], tiv[4];
int i;
{
SilcUInt32 tmp[4], tmp2[4], tiv[4];
int i;