diff --git a/lib/chibi/crypto/sha2.sld b/lib/chibi/crypto/sha2.sld index 7079d727..6aa17072 100644 --- a/lib/chibi/crypto/sha2.sld +++ b/lib/chibi/crypto/sha2.sld @@ -1,8 +1,14 @@ (define-library (chibi crypto sha2) - (import (scheme base) (srfi 33) (chibi bytevector)) (export sha-224 sha-256) - (include "sha2.scm")) + (cond-expand + (chibi + (import (scheme base)) + (include "sha2-native.scm") + (include-shared "crypto")) + (else + (import (scheme base) (srfi 33) (chibi bytevector)) + (include "sha2.scm")))) ;;> \procedure{(sha-224 src)} ;;>