Changeset 35092 in project


Ignore:
Timestamp:
01/30/18 22:47:30 (7 months ago)
Author:
chust
Message:

[tweetnacl] Updated documentation of open-random-stream

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/eggref/4/tweetnacl

    r35090 r35092  
    167167Derive a new key for pseudo-random streams from secret key {{sk}} to public key {{pk}}.
    168168
    169 <procedure>(open-random-stream k n #!optional [limit most-positive-fixnum])</procedure>
    170 
    171 Open a stream of pseudo-random bytes using the shared key {{k}} and nonce {{n}} for algorithm randomization. The stream ends after {{limit}} bytes.
     169<procedure>(open-random-stream k n #!optional [limit (expt 2 30)])</procedure>
     170
     171Open a stream of pseudo-random bytes using the shared key {{k}} and nonce {{n}} for algorithm randomization. The stream ends after {{limit}} bytes, unless {{limit}} is {{#f}} or infinity.
    172172
    173173<procedure>(stream-xor! buffer #!optional [stream (current-input-port)])</procedure>
Note: See TracChangeset for help on using the changeset viewer.