protkeytoken     1153 drivers/s390/crypto/pkey_api.c 	struct protaeskeytoken protkeytoken;
protkeytoken     1157 drivers/s390/crypto/pkey_api.c 	if (off != 0 || count < sizeof(protkeytoken))
protkeytoken     1160 drivers/s390/crypto/pkey_api.c 		if (count < 2 * sizeof(protkeytoken))
protkeytoken     1163 drivers/s390/crypto/pkey_api.c 	memset(&protkeytoken, 0, sizeof(protkeytoken));
protkeytoken     1164 drivers/s390/crypto/pkey_api.c 	protkeytoken.type = TOKTYPE_NON_CCA;
protkeytoken     1165 drivers/s390/crypto/pkey_api.c 	protkeytoken.version = TOKVER_PROTECTED_KEY;
protkeytoken     1166 drivers/s390/crypto/pkey_api.c 	protkeytoken.keytype = keytype;
protkeytoken     1168 drivers/s390/crypto/pkey_api.c 	rc = pkey_genprotkey(protkeytoken.keytype, &protkey);
protkeytoken     1172 drivers/s390/crypto/pkey_api.c 	protkeytoken.len = protkey.len;
protkeytoken     1173 drivers/s390/crypto/pkey_api.c 	memcpy(&protkeytoken.protkey, &protkey.protkey, protkey.len);
protkeytoken     1175 drivers/s390/crypto/pkey_api.c 	memcpy(buf, &protkeytoken, sizeof(protkeytoken));
protkeytoken     1178 drivers/s390/crypto/pkey_api.c 		rc = pkey_genprotkey(protkeytoken.keytype, &protkey);
protkeytoken     1182 drivers/s390/crypto/pkey_api.c 		protkeytoken.len = protkey.len;
protkeytoken     1183 drivers/s390/crypto/pkey_api.c 		memcpy(&protkeytoken.protkey, &protkey.protkey, protkey.len);
protkeytoken     1185 drivers/s390/crypto/pkey_api.c 		memcpy(buf + sizeof(protkeytoken), &protkeytoken,
protkeytoken     1186 drivers/s390/crypto/pkey_api.c 		       sizeof(protkeytoken));
protkeytoken     1188 drivers/s390/crypto/pkey_api.c 		return 2 * sizeof(protkeytoken);
protkeytoken     1191 drivers/s390/crypto/pkey_api.c 	return sizeof(protkeytoken);