Home
last modified time | relevance | path

Searched refs:protkey (Results 1 – 14 of 14) sorted by relevance

/linux-6.12.1/drivers/s390/crypto/
Dpkey_api.c27 u8 *protkey, u32 *protkeylen, u32 *protkeytype) in key2protkey() argument
34 protkey, protkeylen, in key2protkey()
41 protkey, protkeylen, in key2protkey()
55 u8 *protkey, u32 *protkeylen, u32 *protkeytype) in pkey_key2protkey() argument
60 protkey, protkeylen, protkeytype); in pkey_key2protkey()
64 protkey, protkeylen, protkeytype); in pkey_key2protkey()
152 ksp.protkey.len = sizeof(ksp.protkey.protkey); in pkey_ioctl_sec2protk()
156 ksp.protkey.protkey, in pkey_ioctl_sec2protk()
157 &ksp.protkey.len, &ksp.protkey.type); in pkey_ioctl_sec2protk()
196 kcp.protkey.len = sizeof(kcp.protkey.protkey); in pkey_ioctl_clr2protk()
[all …]
Dpkey_sysfs.c55 struct pkey_protkey protkey; in pkey_protkey_aes_attr_read() local
69 protkey.len = sizeof(protkey.protkey); in pkey_protkey_aes_attr_read()
71 protkey.protkey, &protkey.len, in pkey_protkey_aes_attr_read()
72 &protkey.type); in pkey_protkey_aes_attr_read()
76 protkeytoken.len = protkey.len; in pkey_protkey_aes_attr_read()
77 memcpy(&protkeytoken.protkey, &protkey.protkey, protkey.len); in pkey_protkey_aes_attr_read()
83 protkey.len = sizeof(protkey.protkey); in pkey_protkey_aes_attr_read()
85 protkey.protkey, &protkey.len, in pkey_protkey_aes_attr_read()
86 &protkey.type); in pkey_protkey_aes_attr_read()
90 protkeytoken.len = protkey.len; in pkey_protkey_aes_attr_read()
[all …]
Dpkey_pckmo.c82 u8 *protkey, u32 *protkeylen, u32 *protkeytype) in pckmo_clr2protkey() argument
207 memcpy(protkey, paramblock, *protkeylen); in pckmo_clr2protkey()
221 static int pckmo_verify_protkey(const u8 *protkey, u32 protkeylen, in pckmo_verify_protkey() argument
261 memcpy(param.key, protkey, protkeylen); in pckmo_verify_protkey()
279 u8 *protkey, u32 *protkeylen, u32 *protkeytype) in pckmo_key2protkey() argument
301 rc = pckmo_verify_protkey(t->protkey, t->len, in pckmo_key2protkey()
324 memcpy(protkey, t->protkey, t->len); in pckmo_key2protkey()
384 protkey, protkeylen, protkeytype); in pckmo_key2protkey()
404 u8 *protkey, u32 *protkeylen, u32 *protkeytype) in pckmo_gen_protkey() argument
442 protkey, protkeylen, protkeytype); in pckmo_gen_protkey()
[all …]
Dpkey_base.h44 u8 protkey[]; /* the protected key blob */ member
55 u8 protkey[MAXPROTKEYSIZE]; /* the protected key blob */ member
126 u8 *protkey, u32 *protkeylen, u32 *protkeytype);
130 u8 *protkey, u32 *protkeylen,
166 u8 *protkey, u32 *protkeylen, u32 *protkeytype);
170 u8 *protkey, u32 *protkeylen,
Dpkey_ep11.c189 u8 *protkey, u32 *protkeylen, u32 *protkeytype) in ep11_key2protkey() argument
244 key, hdr->len, protkey, in ep11_key2protkey()
250 key, hdr->len, protkey, in ep11_key2protkey()
256 key, hdr->len, protkey, in ep11_key2protkey()
503 u8 *protkey, u32 *protkeylen, in ep11_slowpath_key2protkey() argument
536 protkey, protkeylen, protkeytype); in ep11_slowpath_key2protkey()
Dpkey_base.c153 u8 *protkey, u32 *protkeylen, u32 *protkeytype) in pkey_handler_key_to_protkey() argument
161 protkey, protkeylen, in pkey_handler_key_to_protkey()
179 u8 *protkey, u32 *protkeylen, in pkey_handler_slowpath_key_to_protkey() argument
201 protkey, protkeylen, in pkey_handler_slowpath_key_to_protkey()
Dzcrypt_ccamisc.h174 const u8 *seckey, u8 *protkey, u32 *protkeylen,
187 u8 *protkey, u32 *protkeylen, u32 *protkeytype);
199 u8 *protkey, u32 *protkeylen, u32 *protkeytype);
Dpkey_cca.c216 u8 *protkey, u32 *protkeylen, u32 *protkeytype) in cca_key2protkey() argument
271 key, protkey, in cca_key2protkey()
276 key, protkey, in cca_key2protkey()
280 key, protkey, in cca_key2protkey()
554 u8 *protkey, u32 *protkeylen, in cca_slowpath_key2protkey() argument
587 protkey, protkeylen, protkeytype); in cca_slowpath_key2protkey()
Dzcrypt_ep11misc.h153 u8 *protkey, u32 *protkeylen, u32 *protkeytype);
Dzcrypt_ccamisc.c575 const u8 *seckey, u8 *protkey, u32 *protkeylen, in cca_sec2protkey() argument
710 memcpy(protkey, prepparm->lv3.ckb.key, prepparm->lv3.ckb.len); in cca_sec2protkey()
1170 u8 *protkey, u32 *protkeylen, u32 *protkeytype) in cca_cipher2protkey() argument
1321 memcpy(protkey, prepparm->vud.ckb.key, prepparm->vud.ckb.keylen); in cca_cipher2protkey()
1335 u8 *protkey, u32 *protkeylen, u32 *protkeytype) in cca_ecc2protkey() argument
1467 memcpy(protkey, prepparm->vud.ckb.key, prepparm->vud.ckb.keylen); in cca_ecc2protkey()
Dzcrypt_ep11misc.c1475 u8 *protkey, u32 *protkeylen, u32 *protkeytype) in ep11_kblob2protkey() argument
1572 memcpy(protkey, wki->pkey, wki->pkeysize); in ep11_kblob2protkey()
/linux-6.12.1/arch/s390/include/uapi/asm/
Dpkey.h97 __u8 protkey[MAXPROTKEYSIZE]; /* the protected key blob */ member
149 struct pkey_protkey protkey; /* out: the protected key */ member
159 struct pkey_protkey protkey; /* out: the protected key */ member
179 struct pkey_protkey protkey; /* out: the protected key */ member
207 struct pkey_protkey protkey; /* out: the protected key */ member
216 struct pkey_protkey protkey; /* in: the protected key to verify */ member
227 struct pkey_protkey protkey; /* out: the protected key */ member
352 struct pkey_protkey protkey; /* out: the protected key */ member
/linux-6.12.1/arch/s390/crypto/
Dpaes_s390.c137 pk->protkey, &pk->len, &pk->type); in __paes_keyblob2pkey()
148 pkey.len = sizeof(pkey.protkey); in __paes_convert_key()
227 memcpy(param.key, ctx->pk.protkey, MAXPROTKEYSIZE); in ecb_paes_crypt()
241 memcpy(param.key, ctx->pk.protkey, MAXPROTKEYSIZE); in ecb_paes_crypt()
344 memcpy(param.key, ctx->pk.protkey, MAXPROTKEYSIZE); in cbc_paes_crypt()
360 memcpy(param.key, ctx->pk.protkey, MAXPROTKEYSIZE); in cbc_paes_crypt()
418 pkey0.len = sizeof(pkey0.protkey); in __xts_paes_convert_key()
419 pkey1.len = sizeof(pkey1.protkey); in __xts_paes_convert_key()
487 memcpy(ckey, ctx->pk[0].protkey, ckey_len); in xts_paes_set_key()
488 memcpy(ckey + ckey_len, ctx->pk[1].protkey, ckey_len); in xts_paes_set_key()
[all …]
/linux-6.12.1/arch/s390/include/asm/
Dpkey.h26 u8 *protkey, u32 *protkeylen, u32 *protkeytype);