return TRUE;
}
+/* Sets IV for the cipher. */
+
+SILC_CIPHER_API_SET_IV(aes_cbc)
+{
+
+}
+
/* Returns the size of the cipher context. */
SILC_CIPHER_API_CONTEXT_LEN(aes_cbc)
return TRUE;
}
+/* Sets IV for the cipher. */
+
+SILC_CIPHER_API_SET_IV(aes_ctr)
+{
+ AesContext *aes = context;
+
+ /* Starts new block. */
+ aes->u.enc.inf.b[2] = 0;
+}
+
/* Returns the size of the cipher context. */
SILC_CIPHER_API_CONTEXT_LEN(aes_ctr)
}
/* Encrypts with the cipher in CTR mode. Source and destination buffers
- maybe one and same. Assumes MSB first ordered counter. */
+ may be one and same. Assumes MSB first ordered counter. */
SILC_CIPHER_API_ENCRYPT(aes_ctr)
{