]> git.cryptolib.org Git - avr-crypto-lib.git/blobdiff - des/des.h
forgotten uart files
[avr-crypto-lib.git] / des / des.h
index 082de13084e0366579dc9ba595bdd2d5b85b986d..469e4935a85373fda1536bdadbd62157a95c20ca 100644 (file)
--- a/des/des.h
+++ b/des/des.h
  * Also we only implement the three key mode  */
 
 /** \def tdea_enc
- * \brief defining an alias for void tdes_enc(void* out, const void* in, const void* key)
+ * \brief defining an alias for void tdes_enc(void *out, const void *in, const void *key)
  */
 
 /** \def tdea_dec
- * \brief defining an alias for void tdes_dec(void* out, const void* in, const void* key)
+ * \brief defining an alias for void tdes_dec(void *out, const void *in, const void *key)
  */
 
 #define tdea_enc tdes_enc
 #define tdea_dec tdes_dec
 
-/** \fn void des_enc(void* out, const void* in, const void* key)
+/** \fn void des_enc(void *out, const void *in, const void *key)
  * \brief encrypt a block with DES
  * 
  * This function encrypts a block of 64 bits (8 bytes) with the DES algorithm.
  * Key expansion is done automatically. The key is 64 bits long, but note that
- * only 56 bits are used (the LSB of each byte is droped). The input and output
+ * only 56 bits are used (the LSB of each byte is dropped). The input and output
  * blocks may overlap.
  * 
  * \param out pointer to the block (64 bit = 8 byte) where the ciphertext is written to
  * \param in  pointer to the block (64 bit = 8 byte) where the plaintext is read from
  * \param key pointer to the key (64 bit = 8 byte)
  */
-void des_enc(void* out, const void* in, const void* key);
+void des_enc(void *out, const void *in, const void *key);
 
-/** \fn void des_dec(void* out, const void* in, const void* key)
+/** \fn void des_dec(void *out, const void *in, const void *key)
  * \brief decrypt a block with DES
  * 
  * This function decrypts a block of 64 bits (8 bytes) with the DES algorithm.
  * Key expansion is done automatically. The key is 64 bits long, but note that
- * only 56 bits are used (the LSB of each byte is droped). The input and output
+ * only 56 bits are used (the LSB of each byte is dropped). The input and output
  * blocks may overlap.
  * 
  * \param out pointer to the block (64 bit = 8 byte) where the plaintext is written to
  * \param in  pointer to the block (64 bit = 8 byte) where the ciphertext is read from
  * \param key pointer to the key (64 bit = 8 byte)
  */
-void des_dec(void* out, const void* in, const void* key);
+void des_dec(void *out, const void *in, const void *key);
 
-/** \fn void tdes_enc(void* out, const void* in, const void* key)
+/** \fn void tdes_enc(void *out, const void *in, const void *key)
  * \brief encrypt a block with Tripple-DES
  * 
  * This function encrypts a block of 64 bits (8 bytes) with the Tripple-DES (EDE)
  * algorithm. Key expansion is done automatically. The key is 192 bits long, but
- * note that only 178 bits are used (the LSB of each byte is droped). The input
+ * note that only 178 bits are used (the LSB of each byte is dropped). The input
  * and output blocks may overlap.
  * 
  * \param out pointer to the block (64 bit = 8 byte) where the ciphertext is written to
  * \param in  pointer to the block (64 bit = 8 byte) where the plaintext is read from
  * \param key pointer to the key (192 bit = 24 byte)
  */
-void tdes_enc(void* out, const void* in, const void* key);
+void tdes_enc(void *out, const void *in, const void *key);
 
-/** \fn void tdes_dec(void* out, const void* in, const void* key)
+/** \fn void tdes_dec(void *out, const void *in, const void *key)
  * \brief decrypt a block with Tripple-DES
  * 
  * This function decrypts a block of 64 bits (8 bytes) with the Tripple-DES (EDE)
  * algorithm. Key expansion is done automatically. The key is 192 bits long, but
- * note that only 178 bits are used (the LSB of each byte is droped). The input
+ * note that only 178 bits are used (the LSB of each byte is dropped). The input
  * and output blocks may overlap.
  * 
  * \param out pointer to the block (64 bit = 8 byte) where the plaintext is written to
  * \param in  pointer to the block (64 bit = 8 byte) where the ciphertext is read from
  * \param key pointer to the key (192 bit = 24 byte)
  */
- void tdes_dec(void* out, const void* in, const void* key);
+ void tdes_dec(void *out, const void *in, const void *key);
 
 #endif /*DES_H_*/