protkey 172 arch/s390/crypto/paes_s390.c k = cpacf_km(ctx->fc | modifier, ctx->pk.protkey, protkey 292 arch/s390/crypto/paes_s390.c memcpy(param.key, ctx->pk.protkey, MAXPROTKEYSIZE); protkey 303 arch/s390/crypto/paes_s390.c memcpy(param.key, ctx->pk.protkey, MAXPROTKEYSIZE); protkey 428 arch/s390/crypto/paes_s390.c memcpy(ckey, ctx->pk[0].protkey, ckey_len); protkey 429 arch/s390/crypto/paes_s390.c memcpy(ckey + ckey_len, ctx->pk[1].protkey, ckey_len); protkey 457 arch/s390/crypto/paes_s390.c memcpy(pcc_param.key + offset, ctx->pk[1].protkey, keylen); protkey 460 arch/s390/crypto/paes_s390.c memcpy(xts_param.key + offset, ctx->pk[0].protkey, keylen); protkey 607 arch/s390/crypto/paes_s390.c k = cpacf_kmctr(ctx->fc | modifier, ctx->pk.protkey, protkey 633 arch/s390/crypto/paes_s390.c ctx->pk.protkey, buf, protkey 26 arch/s390/include/asm/pkey.h struct pkey_protkey *protkey); protkey 81 arch/s390/include/uapi/asm/pkey.h __u8 protkey[MAXPROTKEYSIZE]; /* the protected key blob */ protkey 119 arch/s390/include/uapi/asm/pkey.h struct pkey_protkey protkey; /* out: the protected key */ protkey 129 arch/s390/include/uapi/asm/pkey.h struct pkey_protkey protkey; /* out: the protected key */ protkey 149 arch/s390/include/uapi/asm/pkey.h struct pkey_protkey protkey; /* out: the protected key */ protkey 177 arch/s390/include/uapi/asm/pkey.h struct pkey_protkey protkey; /* out: the protected key */ protkey 186 arch/s390/include/uapi/asm/pkey.h struct pkey_protkey protkey; /* in: the protected key to verify */ protkey 197 arch/s390/include/uapi/asm/pkey.h struct pkey_protkey protkey; /* out: the protected key */ protkey 309 arch/s390/include/uapi/asm/pkey.h struct pkey_protkey protkey; /* out: the protected key */ protkey 71 drivers/s390/crypto/pkey_api.c u8 protkey[MAXPROTKEYSIZE]; /* the protected key blob */ protkey 79 drivers/s390/crypto/pkey_api.c struct pkey_protkey *protkey) protkey 122 drivers/s390/crypto/pkey_api.c protkey->type = keytype; protkey 123 drivers/s390/crypto/pkey_api.c protkey->len = keysize + 32; protkey 124 drivers/s390/crypto/pkey_api.c memcpy(protkey->protkey, paramblock, keysize + 32); protkey 154 drivers/s390/crypto/pkey_api.c key, pkey->protkey, protkey 159 drivers/s390/crypto/pkey_api.c key, pkey->protkey, protkey 221 drivers/s390/crypto/pkey_api.c static int pkey_genprotkey(u32 keytype, struct pkey_protkey *protkey) protkey 247 drivers/s390/crypto/pkey_api.c rc = pkey_clr2protkey(keytype, &clrkey, protkey); protkey 252 drivers/s390/crypto/pkey_api.c get_random_bytes(protkey->protkey, keysize); protkey 260 drivers/s390/crypto/pkey_api.c static int pkey_verifyprotkey(const struct pkey_protkey *protkey) protkey 271 drivers/s390/crypto/pkey_api.c switch (protkey->type) { protkey 283 drivers/s390/crypto/pkey_api.c protkey->type); protkey 290 drivers/s390/crypto/pkey_api.c memcpy(param.key, protkey->protkey, sizeof(param.key)); protkey 306 drivers/s390/crypto/pkey_api.c struct pkey_protkey *protkey) protkey 317 drivers/s390/crypto/pkey_api.c protkey->len = t->len; protkey 318 drivers/s390/crypto/pkey_api.c protkey->type = t->keytype; protkey 319 drivers/s390/crypto/pkey_api.c memcpy(protkey->protkey, t->protkey, protkey 320 drivers/s390/crypto/pkey_api.c sizeof(protkey->protkey)); protkey 322 drivers/s390/crypto/pkey_api.c return pkey_verifyprotkey(protkey); protkey 334 drivers/s390/crypto/pkey_api.c struct pkey_protkey *protkey) protkey 353 drivers/s390/crypto/pkey_api.c return pkey_skey2pkey(key, protkey); protkey 360 drivers/s390/crypto/pkey_api.c struct pkey_protkey *protkey) protkey 372 drivers/s390/crypto/pkey_api.c rc = pkey_nonccatok2pkey(key, keylen, protkey); protkey 375 drivers/s390/crypto/pkey_api.c rc = pkey_ccainttok2pkey(key, keylen, protkey); protkey 615 drivers/s390/crypto/pkey_api.c rc = cca_sec2protkey(card, dom, key, pkey->protkey, protkey 618 drivers/s390/crypto/pkey_api.c rc = cca_cipher2protkey(card, dom, key, pkey->protkey, protkey 796 drivers/s390/crypto/pkey_api.c ksp.seckey.seckey, ksp.protkey.protkey, protkey 797 drivers/s390/crypto/pkey_api.c &ksp.protkey.len, &ksp.protkey.type); protkey 812 drivers/s390/crypto/pkey_api.c &kcp.clrkey, &kcp.protkey); protkey 842 drivers/s390/crypto/pkey_api.c rc = pkey_skey2pkey(ksp.seckey.seckey, &ksp.protkey); protkey 871 drivers/s390/crypto/pkey_api.c rc = pkey_genprotkey(kgp.keytype, &kgp.protkey); protkey 885 drivers/s390/crypto/pkey_api.c rc = pkey_verifyprotkey(&kvp.protkey); protkey 899 drivers/s390/crypto/pkey_api.c rc = pkey_keyblob2pkey(kkey, ktp.keylen, &ktp.protkey); protkey 1031 drivers/s390/crypto/pkey_api.c kkey, ktp.keylen, &ktp.protkey); protkey 1154 drivers/s390/crypto/pkey_api.c struct pkey_protkey protkey; protkey 1168 drivers/s390/crypto/pkey_api.c rc = pkey_genprotkey(protkeytoken.keytype, &protkey); protkey 1172 drivers/s390/crypto/pkey_api.c protkeytoken.len = protkey.len; protkey 1173 drivers/s390/crypto/pkey_api.c memcpy(&protkeytoken.protkey, &protkey.protkey, protkey.len); protkey 1178 drivers/s390/crypto/pkey_api.c rc = pkey_genprotkey(protkeytoken.keytype, &protkey); protkey 1182 drivers/s390/crypto/pkey_api.c protkeytoken.len = protkey.len; protkey 1183 drivers/s390/crypto/pkey_api.c memcpy(&protkeytoken.protkey, &protkey.protkey, protkey.len); protkey 554 drivers/s390/crypto/zcrypt_ccamisc.c u8 *protkey, u32 *protkeylen, u32 *protkeytype) protkey 683 drivers/s390/crypto/zcrypt_ccamisc.c memcpy(protkey, prepparm->lv3.keyblock.key, prepparm->lv3.keyblock.len); protkey 1150 drivers/s390/crypto/zcrypt_ccamisc.c u8 *protkey, u32 *protkeylen, u32 *protkeytype) protkey 1301 drivers/s390/crypto/zcrypt_ccamisc.c memcpy(protkey, prepparm->vud.ckb.key, prepparm->vud.ckb.keylen); protkey 140 drivers/s390/crypto/zcrypt_ccamisc.h u8 *protkey, u32 *protkeylen, u32 *protkeytype); protkey 152 drivers/s390/crypto/zcrypt_ccamisc.h u8 *protkey, u32 *protkeylen, u32 *protkeytype);