Document CRD_F_KEY_EXPLICIT flag. While here more flags description more
readable. MFC after: 2 weeks
This commit is contained in:
parent
6131838b7c
commit
1deaec4368
@ -318,7 +318,7 @@ For MAC algorithms, this is where the result of the keyed hash will be
|
||||
inserted.
|
||||
.It Va crd_flags
|
||||
The following flags are defined:
|
||||
.Bl -tag -width ".Dv CRD_F_IV_EXPLICIT"
|
||||
.Bl -tag -width ".Dv CRD"
|
||||
.It Dv CRD_F_ENCRYPT
|
||||
For encryption algorithms, this bit is set when encryption is required
|
||||
(when not set, decryption is performed).
|
||||
@ -344,7 +344,7 @@ flag.
|
||||
For encryption algorithms, this bit is set when the IV is explicitly
|
||||
provided by the consumer in the
|
||||
.Va cri_iv
|
||||
fields.
|
||||
field.
|
||||
Otherwise, for encryption operations the IV is provided for by
|
||||
the driver used to perform the operation, whereas for decryption
|
||||
operations it is pointed to by the
|
||||
@ -355,6 +355,12 @@ This flag is typically used when the IV is calculated
|
||||
by the consumer, and does not precede the data (some
|
||||
.Xr ipsec 4
|
||||
configurations, and the encrypted swap are two such examples).
|
||||
.It Dv CRD_F_KEY_EXPLICIT
|
||||
For encryption algorithms, this bit is set when the key is explicitly
|
||||
provided by the consumer in the
|
||||
.Va cri_key
|
||||
field for the given operation.
|
||||
Otherwise, the key is taken from at newsession time from the same field.
|
||||
.It Dv CRD_F_COMP
|
||||
For compression algorithms, this bit is set when compression is required (when
|
||||
not set, decompression is performed).
|
||||
|
Loading…
Reference in New Issue
Block a user