Skip to content

Commit

Permalink
des_keyschedule: add license
Browse files Browse the repository at this point in the history
  • Loading branch information
doegox committed Nov 17, 2016
1 parent 35bf29e commit 5e8e778
Showing 1 changed file with 47 additions and 0 deletions.
47 changes: 47 additions & 0 deletions utils/des_keyschedule.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,50 @@
/* ===================================================================== */
/* This file is a little helper to compute DES key scheduling */
/* from the first round key */
/* Original authors: Charles Hubain <me@haxelion.eu> 2016 */
/* Philippe Teuwen <phil@teuwen.org> 2016 */
/* */
/* Usage: */
/* des_keyschedule DES_key_in_hex */
/* des_keyschedule Round_key_in_hex plaintext_in_hex ciphertext_in_hex */
/* */
/* Examples: */
/* des_keyschedule 11223344556677881122334455667788 */
/* des_keyschedule 23D7F7B876B180306793B37432F5C4FC 1 */
/* des_keyschedule 43EDA420DD033E7627347DC2CC6E0B4E 9 */
/* des_keyschedule EAC68B6B37C5B51D10F1C8DFDC9FC391 10 */
/* */
/* Note that parity bits are always discarded */
/* */
/* Based on the unlicensed DES code https://github.com/mimoo/DES */
/* and released under the same licensing terms: */
/* */
/* This is free and unencumbered software released into the public domain*/
/* */
/* Anyone is free to copy, modify, publish, use, compile, sell, or */
/* distribute this software, either in source code form or as a compiled */
/* binary, for any purpose, commercial or non-commercial, and by any */
/* means. */
/* */
/* In jurisdictions that recognize copyright laws, the author or authors */
/* of this software dedicate any and all copyright interest in the */
/* software to the public domain. We make this dedication for the benefit*/
/* of the public at large and to the detriment of our heirs and */
/* successors. We intend this dedication to be an overt act of */
/* relinquishment in perpetuity of all present and future rights to this */
/* software under copyright law. */
/* */
/* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, */
/* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF */
/* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.*/
/* IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR */
/* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, */
/* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR */
/* OTHER DEALINGS IN THE SOFTWARE. */
/* */
/* For more information, please refer to <http://unlicense.org/> */
/* ===================================================================== */

#include "DES.h"
#include <inttypes.h>
#include <stdlib.h>
Expand Down

0 comments on commit 5e8e778

Please sign in to comment.