;;;; sha1-primitive.scm -*- Scheme -*- ;;;; Kon Lovett, Jul '18 (module sha1-primitive (;export sha1-primitive) (import scheme (chicken base) (chicken type) message-digest-primitive sha1-api) (include-relative "message-digest-primitive.types") (: sha1-primitive (-> message-digest-primitive)) (define sha1-primitive (let ((the-sha1-primitive (the (or false message-digest-primitive) #f))) (lambda () (unless the-sha1-primitive (set! the-sha1-primitive (make-message-digest-primitive context-size digest-length init update final #:block-length block-length #:raw-update raw-update #:name name)) ) the-sha1-primitive ) ) ) ) ;sha1-primitive