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
/
blowfish.c
diff --git
a/lib/silccrypt/blowfish.c
b/lib/silccrypt/blowfish.c
index 25b9deab08da1082cbe6a93de645a298562e42b4..c1b11b29fe268371f1e2df7d26e0dd9580adc22a 100644
(file)
--- a/
lib/silccrypt/blowfish.c
+++ b/
lib/silccrypt/blowfish.c
@@
-43,15
+43,22
@@
/* Sets the key for the cipher. */
/* Sets the key for the cipher. */
-SILC_CIPHER_API_SET_KEY(blowfish)
+SILC_CIPHER_API_SET_KEY(blowfish
_cbc
)
{
blowfish_set_key((BlowfishContext *)context, (unsigned char *)key, keylen);
return TRUE;
}
{
blowfish_set_key((BlowfishContext *)context, (unsigned char *)key, keylen);
return TRUE;
}
+/* Sets IV for the cipher. */
+
+SILC_CIPHER_API_SET_IV(blowfish_cbc)
+{
+
+}
+
/* Returns the size of the cipher context. */
/* Returns the size of the cipher context. */
-SILC_CIPHER_API_CONTEXT_LEN(blowfish)
+SILC_CIPHER_API_CONTEXT_LEN(blowfish
_cbc
)
{
return sizeof(BlowfishContext);
}
{
return sizeof(BlowfishContext);
}
@@
-59,7
+66,7
@@
SILC_CIPHER_API_CONTEXT_LEN(blowfish)
/* 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(blowfish
)
+SILC_CIPHER_API_ENCRYPT
(blowfish_cbc
)
{
SilcUInt32 tiv[4];
int i;
{
SilcUInt32 tiv[4];
int i;
@@
-84,7
+91,7
@@
SILC_CIPHER_API_ENCRYPT_CBC(blowfish)
/* 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(blowfish
)
+SILC_CIPHER_API_DECRYPT
(blowfish_cbc
)
{
SilcUInt32 tmp[4], tmp2[4], tiv[4];
int i;
{
SilcUInt32 tmp[4], tmp2[4], tiv[4];
int i;