blob: b9e362d3b96a58dfcf67d7549a60357620275848 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
@node Cryptographic and Hash Procedures
@section Cryptographic and Hash Procedures
This module links libcrypto, exposing some hash procedures.
@defun sha256 message
Calculate the sha256-sum of @var{message}. The message can either be a
bytevector or a string (in which case it will de encoded as UTF-8).
Returns the checksum as a bytevector.
@end defun
@defun checksum->string message-digest [port]
Generates a hex digest string from a checksum (generated by
@code{sha256}). The checksum is written to @var{port} if given, or
returned as a string otherwise.
@end defun
|