#| -*-Scheme-*-
-$Id: blowfish.scm,v 1.8 1999/08/09 03:24:27 cph Exp $
+$Id: blowfish.scm,v 1.9 1999/08/09 04:07:11 cph Exp $
Copyright (c) 1997, 1999 Massachusetts Institute of Technology
key init-vector num
encrypt?))))
\f
-(define (blowfish-encrypt-string plaintext key-string encrypt?)
+(define (blowfish-encrypt-string plaintext key-string init-vector encrypt?)
(blowfish-encrypt-substring plaintext 0 (string-length plaintext)
key-string encrypt?))
-(define (blowfish-encrypt-substring plaintext start end key-string encrypt?)
+(define (blowfish-encrypt-substring plaintext start end
+ key-string init-vector encrypt?)
(blowfish-cfb64-substring plaintext start end
(blowfish-set-key (md5 key-string))
- (make-string 8 #\NUL)
- 0
- encrypt?))
+ init-vector 0 encrypt?))
(define (blowfish-encrypt-port input output key-string init-vector encrypt?)
;; Assumes that INPUT is in blocking mode.