mirror of
https://github.com/ashinn/chibi-scheme.git
synced 2025-05-19 13:49:17 +02:00
They can be close()d explicitly with close-file-descriptor, and will close() on gc, but only explicitly closing the last port on them will close the fileno. Notably needed for network sockets where we open separate input and output ports on the same socket.
7 lines
321 B
Scheme
7 lines
321 B
Scheme
|
|
(define-library (chibi crypto rsa)
|
|
(import (scheme base) (srfi 33) (chibi bytevector) (chibi math prime))
|
|
(export make-rsa-key rsa-key-gen rsa-key-gen-from-primes rsa-pub-key
|
|
rsa-encrypt rsa-decrypt rsa-sign rsa-verify?
|
|
rsa-key? rsa-key-bits rsa-key-n rsa-key-e rsa-key-d)
|
|
(include "rsa.scm"))
|