Lines Matching refs:pubkey
163 const unsigned char *pa = key1->haspubkey ? key1->pubkey : NULL; in ecx_match()
164 const unsigned char *pb = key2->haspubkey ? key2->pubkey : NULL; in ecx_match()
222 key->pubkey, key->keylen)) in key_to_params()
304 if (!OSSL_PARAM_set_octet_string(p, ecx->pubkey, ecx->keylen)) in ecx_get_params()
419 void *buf = ecxkey->pubkey; in ecx_set_params()
422 || !OSSL_PARAM_get_octet_string(p, &buf, sizeof(ecxkey->pubkey), in ecx_set_params()
651 operation_result = ossl_ed25519_sign(sig, msg, msg_len, ecx->pubkey, in ecd_fips140_pairwise_test()
656 ecx->pubkey, ecx->privkey, NULL, 0, in ecd_fips140_pairwise_test()
664 operation_result = ossl_ed25519_verify(msg, msg_len, sig, ecx->pubkey, in ecd_fips140_pairwise_test()
669 ecx->pubkey, NULL, 0, 0, ecx->propq); in ecd_fips140_pairwise_test()
722 ossl_x25519_public_from_private(key->pubkey, privkey); in ecx_gen()
727 ossl_x448_public_from_private(key->pubkey, privkey); in ecx_gen()
730 if (!ossl_ed25519_public_from_private(gctx->libctx, key->pubkey, privkey, in ecx_gen()
735 if (!ossl_ed448_public_from_private(gctx->libctx, key->pubkey, privkey, in ecx_gen()
886 return CRYPTO_memcmp(ecx->pubkey, pub, ecx->keylen) == 0; in ecx_key_pairwise_check()
899 return ossl_ed25519_pubkey_verify(ecx->pubkey, ecx->keylen); in ecd_key_pub_check()
901 return ossl_ed448_pubkey_verify(ecx->pubkey, ecx->keylen); in ecd_key_pub_check()
932 return CRYPTO_memcmp(ecx->pubkey, pub, ecx->keylen) == 0; in ecd_key_pairwise_check()
1037 unsigned char *privkey = NULL, *pubkey; in MAKE_KEYMGMT_FUNCTIONS() local
1048 pubkey = key->pubkey; in MAKE_KEYMGMT_FUNCTIONS()
1074 if (s390x_x25519_mul(pubkey, generator, privkey) != 1) in MAKE_KEYMGMT_FUNCTIONS()
1094 unsigned char *privkey = NULL, *pubkey; in s390x_ecx_keygen448() local
1105 pubkey = key->pubkey; in s390x_ecx_keygen448()
1130 if (s390x_x448_mul(pubkey, generator, privkey) != 1) in s390x_ecx_keygen448()
1154 unsigned char *privkey = NULL, *pubkey; in s390x_ecd_keygen25519() local
1168 pubkey = key->pubkey; in s390x_ecd_keygen25519()
1191 if (s390x_ed25519_mul(x_dst, pubkey, in s390x_ecd_keygen25519()
1195 pubkey[31] |= ((x_dst[0] & 0x01) << 7); in s390x_ecd_keygen25519()
1222 unsigned char *privkey = NULL, *pubkey; in s390x_ecd_keygen448() local
1235 pubkey = key->pubkey; in s390x_ecd_keygen448()
1263 if (s390x_ed448_mul(x_dst, pubkey, in s390x_ecd_keygen448()
1267 pubkey[56] |= ((x_dst[0] & 0x01) << 7); in s390x_ecd_keygen448()