Skip to content

Commit ad0faae

Browse files
hfreudehcahca
authored andcommitted
s390/zcrypt: introduce ctfm field in struct CPRBX
Modify the CPRBX struct to expose a new field ctfm for use with hardware command filtering within a CEX8 crypto card in CCA coprocessor mode. The field replaces a reserved byte padding field so that the layout of the struct and the size does not change. The new field is used only by user space applications which may use this to expose the HW filtering facilities in the crypto firmware layers. Signed-off-by: Harald Freudenberger <[email protected]> Signed-off-by: Heiko Carstens <[email protected]>
1 parent 8eff2e2 commit ad0faae

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arch/s390/include/uapi/asm/zcrypt.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ struct ica_rsa_modexpo_crt {
8585
struct CPRBX {
8686
__u16 cprb_len; /* CPRB length 220 */
8787
__u8 cprb_ver_id; /* CPRB version id. 0x02 */
88-
__u8 _pad_000[3]; /* Alignment pad bytes */
88+
__u8 ctfm; /* Command Type Filtering Mask */
89+
__u8 pad_000[2]; /* Alignment pad bytes */
8990
__u8 func_id[2]; /* function id 0x5432 */
9091
__u8 cprb_flags[4]; /* Flags */
9192
__u32 req_parml; /* request parameter buffer len */

0 commit comments

Comments
 (0)