#| -*-Scheme-*-
-$Id: blowfish.scm,v 1.17 1999/08/14 03:41:01 cph Exp $
+$Id: blowfish.scm,v 1.18 1999/12/21 19:05:18 cph Exp $
Copyright (c) 1997, 1999 Massachusetts Institute of Technology
(make-string 8 #\NUL))
((string=? blowfish-file-header-v2 line)
(let ((init-vector (make-string 8)))
- (if (not (= 8 (read-string! init-vector 0 8 port)))
+ (if (not (= 8 (read-substring! init-vector 0 8 port)))
(error "Short read while getting init-vector:" port))
init-vector))
(else
unspecific)
(lambda ()
(let loop ()
- (let ((n (read-string! buffer 0 4096 port)))
+ (let ((n (read-substring! buffer 0 4096 port)))
(if (fix:= 0 n)
(md5-final context)
(begin
#| -*-Scheme-*-
-$Id: input.scm,v 14.19 1999/01/02 06:11:34 cph Exp $
+$Id: input.scm,v 14.20 1999/12/21 19:05:13 cph Exp $
Copyright (c) 1988-1999 Massachusetts Institute of Technology
(current-input-port)
(guarantee-input-port port))))
-(define (read-string! string #!optional start end port)
+(define (read-string! string #!optional port)
+ (input-port/read-string! (if (default-object? port)
+ (current-input-port)
+ (guarantee-input-port port))
+ string))
+
+(define (read-substring! string start end #!optional port)
(input-port/read-substring! (if (default-object? port)
(current-input-port)
(guarantee-input-port port))
- string
- (if (default-object? start)
- 0
- start)
- (if (default-object? end)
- (string-length string)
- end)))
\ No newline at end of file
+ string start end))
\ No newline at end of file
#| -*-Scheme-*-
-$Id: runtime.pkg,v 14.333 1999/12/16 22:06:35 cph Exp $
+$Id: runtime.pkg,v 14.334 1999/12/21 19:05:20 cph Exp $
Copyright (c) 1988-1999 Massachusetts Institute of Technology
read-char-no-hang
read-line
read-string
- read-string!)
+ read-string!
+ read-substring!)
(export (runtime primitive-io)
eof-object))