Lines Matching refs:pubkey

41     penc = OPENSSL_memdup(ecxkey->pubkey, KEYLEN(pkey));  in ecx_pub_encode()
54 static int ecx_pub_decode(EVP_PKEY *pkey, const X509_PUBKEY *pubkey) in ecx_pub_decode() argument
62 if (!X509_PUBKEY_get0_param(NULL, &p, &pklen, &palg, pubkey)) in ecx_pub_decode()
81 return CRYPTO_memcmp(akey->pubkey, bkey->pubkey, KEYLEN(a)) == 0; in ecx_pub_cmp()
197 if (ASN1_buf_print(bp, ecxkey->pubkey, KEYLEN(pkey), in ecx_key_print()
233 *ppt = OPENSSL_memdup(pkey->pkey.ecx->pubkey, KEYLEN(pkey)); in ecx_ctrl()
332 memcpy(pub, key->pubkey, *len); in ecx_get_pub_key()
361 key->pubkey, key->keylen)) in ecx_pkey_export_to()
726 const unsigned char **pubkey) in validate_ecx_derive() argument
745 *pubkey = peerkey->pubkey; in validate_ecx_derive()
753 const unsigned char *privkey, *pubkey; in pkey_ecx_derive25519() local
755 if (!validate_ecx_derive(ctx, key, keylen, &privkey, &pubkey) in pkey_ecx_derive25519()
757 && ossl_x25519(key, privkey, pubkey) == 0)) in pkey_ecx_derive25519()
766 const unsigned char *privkey, *pubkey; in pkey_ecx_derive448() local
768 if (!validate_ecx_derive(ctx, key, keylen, &privkey, &pubkey) in pkey_ecx_derive448()
770 && ossl_x448(key, privkey, pubkey) == 0)) in pkey_ecx_derive448()
824 if (ossl_ed25519_sign(sig, tbs, tbslen, edkey->pubkey, edkey->privkey, in pkey_ecd_digestsign25519()
853 if (ossl_ed448_sign(edkey->libctx, sig, tbs, tbslen, edkey->pubkey, in pkey_ecd_digestsign448()
874 return ossl_ed25519_verify(tbs, tbslen, sig, edkey->pubkey, in pkey_ecd_digestverify25519()
894 return ossl_ed448_verify(edkey->libctx, tbs, tbslen, sig, edkey->pubkey, in pkey_ecd_digestverify448()
948 unsigned char *privkey = NULL, *pubkey; in s390x_pkey_ecx_keygen25519() local
955 pubkey = key->pubkey; in s390x_pkey_ecx_keygen25519()
970 if (s390x_x25519_mul(pubkey, generator, privkey) != 1) in s390x_pkey_ecx_keygen25519()
991 unsigned char *privkey = NULL, *pubkey; in s390x_pkey_ecx_keygen448() local
998 pubkey = key->pubkey; in s390x_pkey_ecx_keygen448()
1012 if (s390x_x448_mul(pubkey, generator, privkey) != 1) in s390x_pkey_ecx_keygen448()
1037 unsigned char *privkey = NULL, *pubkey; in s390x_pkey_ecd_keygen25519() local
1047 pubkey = key->pubkey; in s390x_pkey_ecd_keygen25519()
1071 if (s390x_ed25519_mul(x_dst, pubkey, in s390x_pkey_ecd_keygen25519()
1075 pubkey[31] |= ((x_dst[0] & 0x01) << 7); in s390x_pkey_ecd_keygen25519()
1103 unsigned char *privkey = NULL, *pubkey; in s390x_pkey_ecd_keygen448() local
1113 pubkey = key->pubkey; in s390x_pkey_ecd_keygen448()
1146 if (s390x_ed448_mul(x_dst, pubkey, in s390x_pkey_ecd_keygen448()
1150 pubkey[56] |= ((x_dst[0] & 0x01) << 7); in s390x_pkey_ecd_keygen448()
1164 const unsigned char *privkey, *pubkey; in s390x_pkey_ecx_derive25519() local
1166 if (!validate_ecx_derive(ctx, key, keylen, &privkey, &pubkey) in s390x_pkey_ecx_derive25519()
1168 && s390x_x25519_mul(key, privkey, pubkey) == 0)) in s390x_pkey_ecx_derive25519()
1177 const unsigned char *privkey, *pubkey; in s390x_pkey_ecx_derive448() local
1179 if (!validate_ecx_derive(ctx, key, keylen, &privkey, &pubkey) in s390x_pkey_ecx_derive448()
1181 && s390x_x448_mul(key, pubkey, privkey) == 0)) in s390x_pkey_ecx_derive448()
1305 s390x_flip_endian32(param.ed25519.pub, edkey->pubkey); in s390x_pkey_ecd_digestverify25519()
1339 memcpy(param.ed448.pub, edkey->pubkey, 57); in s390x_pkey_ecd_digestverify448()