File: speed_des.ml

package info (click to toggle)
cryptgps 0.2.1-7
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 280 kB
  • ctags: 420
  • sloc: ml: 2,627; ansic: 172; sh: 169; makefile: 118
file content (11 lines) | stat: -rw-r--r-- 244 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
open Crypt_des;;
open Cryptsystem;;
open Cryptmodes;;
let k = prepare (set_parity "abcdefgh");;
let s = String.make (1024*1024) ' ';;

let x0 = Sys.time() in
ignore(encrypt_cbc k (0,0,0,0) s);
print_float (Sys.time() -. x0);
print_newline()
;;