Home
last modified time | relevance | path

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

/linux/drivers/crypto/intel/keembay/
H A Dkeembay-ocs-ecc.c366 if (vli_cmp(curve->p, pk->x, pk->ndigits) != 1) in kmb_ocs_ecc_is_pubkey_valid_partial()
369 if (vli_cmp(curve->p, pk->y, pk->ndigits) != 1) in kmb_ocs_ecc_is_pubkey_valid_partial()
376 rc = kmb_ecc_do_scalar_op(ecc_dev, yy, pk->y, pk->y, curve, pk->ndigits, in kmb_ocs_ecc_is_pubkey_valid_partial()
385 rc = kmb_ecc_do_scalar_op(ecc_dev, xxx, pk->x, w, curve, pk->ndigits, in kmb_ocs_ecc_is_pubkey_valid_partial()
392 pk->ndigits, in kmb_ocs_ecc_is_pubkey_valid_partial()
399 pk->ndigits, in kmb_ocs_ecc_is_pubkey_valid_partial()
600 if (!pk) in kmb_ecc_do_shared_secret()
652 ecc_free_point(pk); in kmb_ecc_do_shared_secret()
672 if (!pk) in kmb_ecc_do_public_key()
688 ecc_swap_digits(pk->x, pubk_buf, pk->ndigits); in kmb_ecc_do_public_key()
[all …]
/linux/arch/s390/crypto/
H 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
137 pk->protkey, &pk->len, &pk->type); in __paes_keyblob2pkey()
154 memcpy(&ctx->pk, &pkey, sizeof(pkey)); in __paes_convert_key()
426 memcpy(&ctx->pk[0], &pkey0, sizeof(pkey0)); in __xts_paes_convert_key()
427 memcpy(&ctx->pk[1], &pkey1, sizeof(pkey1)); in __xts_paes_convert_key()
440 if (ctx->pk[0].type != ctx->pk[1].type) in __xts_paes_set_key()
487 memcpy(ckey, ctx->pk[0].protkey, ckey_len); in xts_paes_set_key()
539 ctx->pk[0].protkey, keylen); in xts_paes_crypt()
[all …]
/linux/security/integrity/
H 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/
H A Decc.c1570 struct ecc_point *pk; in ecc_make_pub_key() local
1579 if (!pk) { in ecc_make_pub_key()
1596 ecc_free_point(pk); in ecc_make_pub_key()
1604 struct ecc_point *pk) in ecc_is_pubkey_valid_partial() argument
1612 if (ecc_point_is_zero(pk)) in ecc_is_pubkey_valid_partial()
1616 if (vli_cmp(curve->p, pk->x, pk->ndigits) != 1) in ecc_is_pubkey_valid_partial()
1618 if (vli_cmp(curve->p, pk->y, pk->ndigits) != 1) in ecc_is_pubkey_valid_partial()
1637 struct ecc_point *pk) in ecc_is_pubkey_valid_full() argument
1652 ecc_point_mult(nQ, pk, curve->n, NULL, curve, pk->ndigits); in ecc_is_pubkey_valid_full()
1682 if (!pk) { in crypto_ecdh_shared_secret()
[all …]
/linux/include/crypto/internal/
H A Decc.h146 struct ecc_point *pk);
160 struct ecc_point *pk);
/linux/Documentation/devicetree/bindings/phy/
H A Dfsl,imx8mq-usb-phy.yaml60 Adjust the boosted transmit launch pk-pk differential amplitude
/linux/fs/btrfs/
H A Dfile-item.c941 struct btrfs_key pk; in btrfs_del_csums() local
943 btrfs_item_key_to_cpu(leaf, &pk, slot); in btrfs_del_csums()
944 if (pk.offset < bytenr || in btrfs_del_csums()
945 pk.type != BTRFS_EXTENT_CSUM_KEY || in btrfs_del_csums()
946 pk.objectid != in btrfs_del_csums()
951 key.offset = pk.offset; in btrfs_del_csums()
/linux/Documentation/devicetree/bindings/interrupt-controller/
H A Dmstar,mst-intc.yaml10 - Mark-PK Tsai <mark-pk.tsai@mediatek.com>
/linux/crypto/asymmetric_keys/
H A Dpublic_key.c471 const struct public_key *pk = key->payload.data[asym_crypto]; in public_key_verify_signature_2() local
472 return public_key_verify_signature(pk, sig); in public_key_verify_signature_2()
/linux/net/bluetooth/
H A Dsmp.c3482 u8 pk[64]; in test_debug_key() local
3489 err = generate_ecdh_public_key(tfm_ecdh, pk); in test_debug_key()
3493 if (crypto_memneq(pk, debug_pk, 64)) in test_debug_key()
/linux/
H A DMAINTAINERS15314 M: Mark-PK Tsai <mark-pk.tsai@mediatek.com>