The two documentation comments disagreed about the orders of the key
pieces. The implementation had it right: the DES key comes first,
followed by the whitening keys. Fix the header, and a stupid typo.
* Use: Initializes a DESX key buffer. The key buffer contains, in
* order, a single-DES key (either 7 or 8 bytes), an optional
* 8-byte pre-whitening key, and an optional 8-byte
* Use: Initializes a DESX key buffer. The key buffer contains, in
* order, a single-DES key (either 7 or 8 bytes), an optional
* 8-byte pre-whitening key, and an optional 8-byte
- * port-whitening key. If no whitening keys are specified, the
+ * post-whitening key. If no whitening keys are specified, the
* algorithm becomes the same as single-DES.
*/
* algorithm becomes the same as single-DES.
*/
* Returns: ---
*
* Use: Initializes a DESX key buffer. The key buffer contains, in
* Returns: ---
*
* Use: Initializes a DESX key buffer. The key buffer contains, in
- * order, an optional 8-byte pre-whitening key, a single-DES key
- * (either 7 or 8 bytes), and an optional 8-byte port-whitening
- * key. If no whitening keys are specified, the algorithm
- * becomes the same as single-DES.
+ * order, a single-DES key (either 7 or 8 bytes), an optional
+ * 8-byte pre-whitening key, and an optional 8-byte
+ * post-whitening key. If no whitening keys are specified, the
+ * algorithm becomes the same as single-DES.
*/
extern void desx_init(desx_ctx */*k*/, const void */*buf*/, size_t /*sz*/);
*/
extern void desx_init(desx_ctx */*k*/, const void */*buf*/, size_t /*sz*/);