(closing-stream streams)
(decrypt-stream src out sec-key pass)
Takes a src stream, output stream & public key. Writes decrypted file to output.
Takes a src stream, output stream & public key. Writes decrypted file to output.
(encrypt-file in out pub-key)
Takes a in file path, output target path & public key. Writes encrypted file to target stream.
Takes a in file path, output target path & public key. Writes encrypted file to target stream.
(encrypt-stream in out pub-key)
Takes an input stream, output stream & public key. Writes encrypted file to output.
Takes an input stream, output stream & public key. Writes encrypted file to output.
(encrypted-stream out-stream pub-key buf-size)
(export-keypair key out-pub out-sec & [armored?])
Takes a secret key and two output targets/streams/filepaths to write public & secret keys to. An optional truthy arg can be added to write keys as armored ASCII.
Takes a secret key and two output targets/streams/filepaths to write public & secret keys to. An optional truthy arg can be added to write keys as armored ASCII.
(extract-private-key key pass)
Takes a secret key & passphrase, extracts encrypted private key.
Takes a secret key & passphrase, extracts encrypted private key.
(generate-keypair* algorithm)
(generate-secret-key pair ident pass)
Generates secret key from given keypair, identity & passphrase.
Generates secret key from given keypair, identity & passphrase.
(public-key path)
Retrieves first public key which can be used for encryption from given stream/path.
Retrieves first public key which can be used for encryption from given stream/path.
(secret-key path)
Retrieves first secret key which is usable for signing from given stream/path. Also checks that related public key is not revoked.
Retrieves first secret key which is usable for signing from given stream/path. Also checks that related public key is not revoked.
(zipped-stream out buf-size)
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close