| 1 | .TH surf 3 |
| 2 | .SH NAME |
| 3 | surf \- Simple Unpredictable Random Function |
| 4 | .SH SYNTAX |
| 5 | .B #include <surf.h> |
| 6 | |
| 7 | void \fBsurf\fP(\fIout\fR,\fIin\fR,\fIseed\fR); |
| 8 | |
| 9 | uint32 \fIout\fR[8]; |
| 10 | .br |
| 11 | uint32 \fIin\fR[12]; |
| 12 | .br |
| 13 | uint32 \fIseed\fR[32]; |
| 14 | .SH DESCRIPTION |
| 15 | .B surf |
| 16 | changes a 384-bit input to a 256-bit output, |
| 17 | under control of a 1024-bit seed. |
| 18 | When the seed is secret, |
| 19 | .B surf |
| 20 | appears to be indistinguishable from a completely random |
| 21 | 384-bit-to-256-bit function. |
| 22 | .SH "SEE ALSO" |
| 23 | surfpcs(3) |