Home
last modified time | relevance | path

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

/Linux-v5.15/drivers/s390/crypto/
Dpkey_api.c70 u8 protkey[MAXPROTKEYSIZE]; /* the protected key blob */ member
89 struct pkey_protkey *protkey) in pkey_clr2protkey() argument
137 protkey->type = keytype; in pkey_clr2protkey()
138 protkey->len = keysize + 32; in pkey_clr2protkey()
139 memcpy(protkey->protkey, paramblock, keysize + 32); in pkey_clr2protkey()
171 key, pkey->protkey, in pkey_skey2pkey()
176 key, pkey->protkey, in pkey_skey2pkey()
249 pkey->len = sizeof(pkey->protkey); in pkey_ep11key2pkey()
251 pkey->protkey, &pkey->len, &pkey->type); in pkey_ep11key2pkey()
309 static int pkey_genprotkey(u32 keytype, struct pkey_protkey *protkey) in pkey_genprotkey() argument
[all …]
Dzcrypt_ccamisc.h174 const u8 *seckey, u8 *protkey, u32 *protkeylen,
187 u8 *protkey, u32 *protkeylen, u32 *protkeytype);
199 u8 *protkey, u32 *protkeylen, u32 *protkeytype);
Dzcrypt_ep11misc.h151 u8 *protkey, u32 *protkeylen, u32 *protkeytype);
Dzcrypt_ccamisc.c580 const u8 *seckey, u8 *protkey, u32 *protkeylen, in cca_sec2protkey() argument
715 memcpy(protkey, prepparm->lv3.ckb.key, prepparm->lv3.ckb.len); in cca_sec2protkey()
1184 u8 *protkey, u32 *protkeylen, u32 *protkeytype) in cca_cipher2protkey() argument
1339 memcpy(protkey, prepparm->vud.ckb.key, prepparm->vud.ckb.keylen); in cca_cipher2protkey()
1353 u8 *protkey, u32 *protkeylen, u32 *protkeytype) in cca_ecc2protkey() argument
1491 memcpy(protkey, prepparm->vud.ckb.key, prepparm->vud.ckb.keylen); in cca_ecc2protkey()
Dzcrypt_ep11misc.c1267 u8 *protkey, u32 *protkeylen, u32 *protkeytype) in ep11_kblob2protkey() argument
1378 memcpy(protkey, wki->pkey, wki->pkeysize); in ep11_kblob2protkey()
/Linux-v5.15/arch/s390/include/uapi/asm/
Dpkey.h87 __u8 protkey[MAXPROTKEYSIZE]; /* the protected key blob */ member
139 struct pkey_protkey protkey; /* out: the protected key */ member
149 struct pkey_protkey protkey; /* out: the protected key */ member
169 struct pkey_protkey protkey; /* out: the protected key */ member
197 struct pkey_protkey protkey; /* out: the protected key */ member
206 struct pkey_protkey protkey; /* in: the protected key to verify */ member
217 struct pkey_protkey protkey; /* out: the protected key */ member
342 struct pkey_protkey protkey; /* out: the protected key */ member
/Linux-v5.15/arch/s390/crypto/
Dpaes_s390.c226 memcpy(param.key, ctx->pk.protkey, MAXPROTKEYSIZE); in ecb_paes_crypt()
240 memcpy(param.key, ctx->pk.protkey, MAXPROTKEYSIZE); in ecb_paes_crypt()
343 memcpy(param.key, ctx->pk.protkey, MAXPROTKEYSIZE); in cbc_paes_crypt()
359 memcpy(param.key, ctx->pk.protkey, MAXPROTKEYSIZE); in cbc_paes_crypt()
483 memcpy(ckey, ctx->pk[0].protkey, ckey_len); in xts_paes_set_key()
484 memcpy(ckey + ckey_len, ctx->pk[1].protkey, ckey_len); in xts_paes_set_key()
517 memcpy(pcc_param.key + offset, ctx->pk[1].protkey, keylen); in xts_paes_crypt()
518 memcpy(xts_param.key + offset, ctx->pk[0].protkey, keylen); in xts_paes_crypt()
535 ctx->pk[0].protkey, keylen); in xts_paes_crypt()
655 memcpy(param.key, ctx->pk.protkey, MAXPROTKEYSIZE); in ctr_paes_crypt()
[all …]
/Linux-v5.15/arch/s390/include/asm/
Dpkey.h26 struct pkey_protkey *protkey);