Lines Matching defs:pub
152 pkcs11dh_computesecret(const dst_key_t *pub, const dst_key_t *priv,
182 REQUIRE(pub->keydata.pkey != NULL);
185 attr = pk11_attribute_bytype(pub->keydata.pkey, CKA_PRIME);
190 attr = pk11_attribute_bytype(pub->keydata.pkey, CKA_VALUE);
201 mech.pParameter = isc_mem_get(pub->mctx, mech.ulParameterLen);
219 attr->pValue = isc_mem_get(pub->mctx, attr->ulValueLen);
245 isc_mem_put(pub->mctx,
253 isc_mem_put(pub->mctx, mech.pParameter, mech.ulParameterLen);
377 CK_OBJECT_HANDLE pub = CK_INVALID_HANDLE;
488 &pub, &priv),
516 (pk11_ctx->session, pub, attr, 1),
523 (pk11_ctx->session, pub, attr, 1),
541 (void) pkcs_C_DestroyObject(pk11_ctx->session, pub);
553 if (pub != CK_INVALID_HANDLE)
554 (void) pkcs_C_DestroyObject(pk11_ctx->session, pub);
668 CK_BYTE *prime = NULL, *base = NULL, *pub = NULL;
679 pub = (CK_BYTE *) attr->pValue;
691 REQUIRE((prime != NULL) && (base != NULL) && (pub != NULL));
731 memmove(r.base, pub, publen);
744 CK_BYTE *prime = NULL, *base = NULL, *pub = NULL;
848 pub = r.base;
878 memmove(attr[2].pValue, pub, publen);
924 CK_ATTRIBUTE *prime = NULL, *base = NULL, *pub = NULL, *prv = NULL;
942 pub = attr;
955 (pub == NULL) || (prv == NULL))
989 priv.elements[i].length = (unsigned short) pub->ulValueLen;
990 memmove(bufs[i], pub->pValue, pub->ulValueLen);
1007 pkcs11dh_parse(dst_key_t *key, isc_lex_t *lexer, dst_key_t *pub) {
1015 UNUSED(pub);