Changeset View
Changeset View
Standalone View
Standalone View
share/man/man9/crypto_buffer.9
Show First 20 Lines • Show All 88 Lines • ▼ Show 20 Lines | |||||
.Fc | .Fc | ||||
.Ft void | .Ft void | ||||
.Fo crypto_cursor_copydata_noadv | .Fo crypto_cursor_copydata_noadv | ||||
.Fa "struct crypto_buffer_cursor *cc" | .Fa "struct crypto_buffer_cursor *cc" | ||||
.Fa "int size" | .Fa "int size" | ||||
.Fa "void *dst" | .Fa "void *dst" | ||||
.Fc | .Fc | ||||
.Ft void * | .Ft void * | ||||
.Fn crypto_cursor_segment "struct crypto_buffer_cursor *cc" "size_t *len" | |||||
.Ft void * | |||||
.Fn crypto_cursor_segbase "struct crypto_buffer_cursor *cc" | .Fn crypto_cursor_segbase "struct crypto_buffer_cursor *cc" | ||||
.Ft size_t | .Ft size_t | ||||
.Fn crypto_cursor_seglen "struct crypto_buffer_cursor *cc" | .Fn crypto_cursor_seglen "struct crypto_buffer_cursor *cc" | ||||
.Ft bool | .Ft bool | ||||
.Fn CRYPTO_HAS_OUTPUT_BUFFER "struct cryptop *crp" | .Fn CRYPTO_HAS_OUTPUT_BUFFER "struct cryptop *crp" | ||||
.Sh DESCRIPTION | .Sh DESCRIPTION | ||||
Symmetric cryptographic requests use data buffers to describe the data to | Symmetric cryptographic requests use data buffers to describe the data to | ||||
be modified. | be modified. | ||||
▲ Show 20 Lines • Show All 183 Lines • ▼ Show 20 Lines | |||||
bytes. | bytes. | ||||
.Pp | .Pp | ||||
.Fn crypto_cursor_copydata_noadv | .Fn crypto_cursor_copydata_noadv | ||||
is similar to | is similar to | ||||
.Fn crypto_cursor_copydata | .Fn crypto_cursor_copydata | ||||
except that it does not change the current position of | except that it does not change the current position of | ||||
.Fa cc . | .Fa cc . | ||||
.Pp | .Pp | ||||
.Fn crypto_cursor_segment | |||||
returns the start of the virtually-contiguous segment at the current position of | |||||
.Fa cc . | |||||
The length of the segment is stored in | |||||
.Fa len . | |||||
.Pp | |||||
.Fn crypto_cursor_segbase | .Fn crypto_cursor_segbase | ||||
and | and | ||||
.Fn crypto_cursor_seglen | .Fn crypto_cursor_seglen | ||||
return the start and length, respectively, | return the start and length, respectively, | ||||
of the virtually-contiguous segment at the current position of | of the virtually-contiguous segment at the current position of | ||||
.Fa cc . | .Fa cc . | ||||
.Sh RETURN VALUES | .Sh RETURN VALUES | ||||
.Fn crypto_apply | .Fn crypto_apply | ||||
and | and | ||||
.Fn crypto_apply_buf | .Fn crypto_apply_buf | ||||
return the return value from the caller-supplied callback function. | return the return value from the caller-supplied callback function. | ||||
.Pp | .Pp | ||||
.Fn crypto_buffer_contiguous_subsegment , | .Fn crypto_buffer_contiguous_subsegment , | ||||
.Fn crypto_contiguous_subsegment , | .Fn crypto_contiguous_subsegment , | ||||
and | |||||
.Fn crypto_cursor_segbase , | .Fn crypto_cursor_segbase , | ||||
and | |||||
.Fn crypto_cursor_segment | |||||
return a pointer to a contiguous segment or | return a pointer to a contiguous segment or | ||||
.Dv NULL . | .Dv NULL . | ||||
.Pp | .Pp | ||||
.Fn crypto_buffer_len | .Fn crypto_buffer_len | ||||
returns the length of a buffer in bytes. | returns the length of a buffer in bytes. | ||||
.Pp | .Pp | ||||
.Fn crypto_cursor_seglen | .Fn crypto_cursor_seglen | ||||
returns the length in bytes of a contiguous segment. | returns the length in bytes of a contiguous segment. | ||||
Show All 23 Lines |