des.c
char *des_dec(char *msg, char *k64) {
    size_t msglen = bstr_len(msg);
    if (msglen != 64)
        return NULL;    //only 64 bit msg allowed

    char *k56 = key_init(k64);
    char *plain = NULL;
    if (k56 != NULL) {
        plain = des(msg, k56, &key_rot_dec);
        free(k56);
    }
    return plain;
}
/**
 * Decrypts the specified message with the given key. The key must be 
 * 64 bits, if it is not then it will be padded or truncated. The result 
 * plain text will be dynamically allocated. If any error occurred, then 
 * NULL will be returned. The message length must be 64 bits. 
 *
 * PARAMETERS: 
 * msg - the message to decrypt
 * k64 - the 64-bit key
 *
 * RETURNS: 
 * The plain text, or NULL if any error occurred. 
 */
Decrypts the specified message with the given key. The key must be
64 bits, if it is not then it will be padded or truncated. The result
plain text will be dynamically allocated. If any error occurred, then
NULL will be returned. The message length must be 64 bits.

the message to decrypt
k64 - the 64-bit key

The plain text, or NULL if any error occurred.
Decrypts the specified message with the given key . The key must be 64 bits if it is not then it will be padded or truncated . The result plain text will be dynamically allocated . If any error occurred then NULL will be returned . The message length must be 64 bits . the message to decrypt k64 - the 64 - bit key The plain text or NULL if any error occurred .
char *des_dec(char *msg, char *k64) {
    size_t msglen = bstr_len(msg);
    if (msglen != 64)
        return NULL;    
    char *k56 = key_init(k64);
    char *plain = NULL;
    if (k56 != NULL) {
        plain = des(msg, k56, &key_rot_dec);
        free(k56);
    }
    return plain;
}
char * des_dec ( char * msg , char * k64 ) { size_t msglen = bstr_len ( msg ) ; if ( msglen != 64 ) return NULL ; char * k56 = key_init ( k64 ) ; char * plain = NULL ; if ( k56 != NULL ) { plain = des ( msg , k56 , & key_rot_dec ) ; free ( k56 ) ; } return plain ; }
Decrypts the specified message with the given key.
Decrypts the specified message with the given key .
//only 64 bit msg allowed