Home
last modified time | relevance | path

Searched refs:pk (Results 1 – 13 of 13) sorted by relevance

/linux/drivers/hid/
A Dhid-prodikeys.c53 struct pk_device *pk; member
765 pm = pk->pm; in pk_input_mapping()
804 struct pk_device *pk; in pk_probe() local
813 pk = kzalloc(sizeof(*pk), GFP_KERNEL); in pk_probe()
814 if (pk == NULL) { in pk_probe()
819 pk->hdev = hdev; in pk_probe()
828 pm->pk = pk; in pk_probe()
829 pk->pm = pm; in pk_probe()
860 kfree(pk); in pk_probe()
870 pm = pk->pm; in pk_remove()
[all …]
/linux/drivers/crypto/keembay/
A Dkeembay-ocs-ecc.c371 if (vli_cmp(curve->p, pk->x, pk->ndigits) != 1) in kmb_ocs_ecc_is_pubkey_valid_partial()
374 if (vli_cmp(curve->p, pk->y, pk->ndigits) != 1) in kmb_ocs_ecc_is_pubkey_valid_partial()
381 rc = kmb_ecc_do_scalar_op(ecc_dev, yy, pk->y, pk->y, curve, pk->ndigits, in kmb_ocs_ecc_is_pubkey_valid_partial()
390 rc = kmb_ecc_do_scalar_op(ecc_dev, xxx, pk->x, w, curve, pk->ndigits, in kmb_ocs_ecc_is_pubkey_valid_partial()
397 pk->ndigits, in kmb_ocs_ecc_is_pubkey_valid_partial()
404 pk->ndigits, in kmb_ocs_ecc_is_pubkey_valid_partial()
605 if (!pk) in kmb_ecc_do_shared_secret()
657 ecc_free_point(pk); in kmb_ecc_do_shared_secret()
677 if (!pk) in kmb_ecc_do_public_key()
693 ecc_swap_digits(pk->x, pubk_buf, pk->ndigits); in kmb_ecc_do_public_key()
[all …]
/linux/arch/s390/crypto/
A Dpaes_s390.c113 struct pkey_protkey pk; member
120 struct pkey_protkey pk[2]; member
126 struct pkey_protkey *pk) in __paes_keyblob2pkey() argument
153 memcpy(&ctx->pk, &pkey, sizeof(pkey)); in __paes_convert_key()
422 memcpy(&ctx->pk[0], &pkey0, sizeof(pkey0)); in __xts_paes_convert_key()
423 memcpy(&ctx->pk[1], &pkey1, sizeof(pkey1)); in __xts_paes_convert_key()
436 if (ctx->pk[0].type != ctx->pk[1].type) in __xts_paes_set_key()
441 (ctx->pk[0].type == PKEY_KEYTYPE_AES_256) ? in __xts_paes_set_key()
483 memcpy(ckey, ctx->pk[0].protkey, ckey_len); in xts_paes_set_key()
535 ctx->pk[0].protkey, keylen); in xts_paes_crypt()
[all …]
/linux/security/integrity/
A Ddigsig_asymmetric.c87 const struct public_key *pk; in asymmetric_verify() local
110 pk = asymmetric_key_public_key(key); in asymmetric_verify()
111 pks.pkey_algo = pk->pkey_algo; in asymmetric_verify()
112 if (!strcmp(pk->pkey_algo, "rsa")) in asymmetric_verify()
114 else if (!strncmp(pk->pkey_algo, "ecdsa-", 6)) in asymmetric_verify()
117 else if (!strcmp(pk->pkey_algo, "ecrdsa") || in asymmetric_verify()
118 !strcmp(pk->pkey_algo, "sm2")) in asymmetric_verify()
/linux/crypto/
A Decc.c1512 struct ecc_point *pk; in ecc_make_pub_key() local
1524 if (!pk) { in ecc_make_pub_key()
1541 ecc_free_point(pk); in ecc_make_pub_key()
1549 struct ecc_point *pk) in ecc_is_pubkey_valid_partial() argument
1557 if (ecc_point_is_zero(pk)) in ecc_is_pubkey_valid_partial()
1561 if (vli_cmp(curve->p, pk->x, pk->ndigits) != 1) in ecc_is_pubkey_valid_partial()
1563 if (vli_cmp(curve->p, pk->y, pk->ndigits) != 1) in ecc_is_pubkey_valid_partial()
1582 struct ecc_point *pk) in ecc_is_pubkey_valid_full() argument
1597 ecc_point_mult(nQ, pk, curve->n, NULL, curve, pk->ndigits); in ecc_is_pubkey_valid_full()
1629 if (!pk) { in crypto_ecdh_shared_secret()
[all …]
/linux/include/crypto/internal/
A Decc.h134 struct ecc_point *pk);
148 struct ecc_point *pk);
/linux/fs/btrfs/
A Dfile-item.c858 struct btrfs_key pk; in btrfs_del_csums() local
860 btrfs_item_key_to_cpu(leaf, &pk, slot); in btrfs_del_csums()
861 if (pk.offset < bytenr || in btrfs_del_csums()
862 pk.type != BTRFS_EXTENT_CSUM_KEY || in btrfs_del_csums()
863 pk.objectid != in btrfs_del_csums()
868 key.offset = pk.offset; in btrfs_del_csums()
/linux/Documentation/devicetree/bindings/interrupt-controller/
A Dmstar,mst-intc.yaml10 - Mark-PK Tsai <mark-pk.tsai@mediatek.com>
/linux/crypto/asymmetric_keys/
A Dpublic_key.c395 const struct public_key *pk = key->payload.data[asym_crypto]; in public_key_verify_signature_2() local
396 return public_key_verify_signature(pk, sig); in public_key_verify_signature_2()
/linux/arch/ia64/include/asm/
A Dprocessor.h95 __u64 pk : 1; member
/linux/Documentation/ia64/
A Dfsys.rst207 PSR.pk Unchanged.
/linux/net/bluetooth/
A Dsmp.c3469 u8 pk[64]; in test_debug_key() local
3476 err = generate_ecdh_public_key(tfm_ecdh, pk); in test_debug_key()
3480 if (crypto_memneq(pk, debug_pk, 64)) in test_debug_key()
/linux/
A DMAINTAINERS12953 M: Mark-PK Tsai <mark-pk.tsai@mediatek.com>

Completed in 56 milliseconds