Commit eba42ba4 authored by gerd's avatar gerd

Added module for DES.


git-svn-id: https://godirepo.camlcity.org/svn/lib-cryptgps/trunk@2 b101cce4-44db-0310-b718-db4b2d8d2e05
parent 02333b5b
......@@ -10,8 +10,10 @@
#----------------------------------------------------------------------
# specific rules for this package:
OBJECTS = cryptsystem_64.cmo cryptmodes_64.cmo crypt_blowfish.cmo
XOBJECTS = cryptsystem_64.cmx cryptmodes_64.cmx crypt_blowfish.cmx
OBJECTS = cryptsystem_64.cmo cryptmodes_64.cmo \
crypt_blowfish.cmo crypt_des.cmo
XOBJECTS = cryptsystem_64.cmx cryptmodes_64.cmx \
crypt_blowfish.cmx crypt_des.cmx
ARCHIVE = cryptgps.cma
XARCHIVE = cryptgps.cmxa
NAME = cryptgps
......@@ -32,7 +34,7 @@ $(XARCHIVE): $(XOBJECTS)
OPTIONS =
OCAMLC = ocamlc $(OPTIONS) $(ROPTIONS)
OCAMLOPT = ocamlopt $(OPTIONS) $(ROPTIONS)
OCAMLOPT = ocamlopt -p $(OPTIONS) $(ROPTIONS)
OCAMLDEP = ocamldep $(OPTIONS)
OCAMLFIND = ocamlfind
......@@ -57,11 +59,11 @@ clean:
.PHONY: distclean
distclean: clean
rm -f *~
rm -f *~ depend depend.pkg
.PHONY: dist
dist:
r=`head -1 RELEASE`; cd ..; gtar czf $(NAME)-$$r.tar.gz $(NAME)
r=`head -1 RELEASE`; cd ..; gtar czf $(NAME)-$$r.tar.gz --exclude='*/CVS*' --exclude="*/depend.pkg" --exclude="*/depend" $(NAME)
.PHONY: tag-release
tag-release:
......
This diff is collapsed.
(* $Id: crypt_des.mli,v 1.1 1999/06/17 14:55:04 gerd Exp $
* ----------------------------------------------------------------------
* This module is part of the cryptgps package by Gerd Stolpmann.
*)
(* DES, created by the NSA, is a 64 bit block cipher,
* so the following applies:
*)
module Cryptsystem : Cryptsystem_64.T;;
module Cryptmodes : Cryptmodes_64.T with type key = Cryptsystem.key;;
(* Key management functions:
*
* Although only 56 bits count a DES key is written with 64 bits. The
* extra bits are used for parity checking.
*)
val check_parity : string -> unit
(* Checks that the parity of the key given as string is ok. The string
* must have a length of 8 characters.
*)
val set_parity : string -> string
(* Sets the parity bits in the given key and returns a new string. *)
(* - DES has been heavily studied and seems to have a rather good design
* - DES has only 56 bit keys (this means DES should be considered a
* weak algorithm today, but the variant 3DES is still secure)
* - DES has been designed to be implemented in hardware, and software
* implementations are relatively slow
* - DES is an ANSI and (indirectly) an ISO standard.
* - There are very few weak keys.
*)
(* ======================================================================
* History:
*
* $Log: crypt_des.mli,v $
* Revision 1.1 1999/06/17 14:55:04 gerd
* Added module for DES.
*
*)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment