Lines Matching refs:gost
154 pk11_object_t *gost;
160 gost = key->keydata.pkey;
161 REQUIRE(gost != NULL);
168 gost->reqlogon, NULL,
173 if (gost->ontoken && (gost->object != CK_INVALID_HANDLE)) {
174 pk11_ctx->ontoken = gost->ontoken;
175 pk11_ctx->object = gost->object;
179 for (attr = pk11_attribute_first(gost);
181 attr = pk11_attribute_next(gost, attr))
259 pk11_object_t *gost;
265 gost = key->keydata.pkey;
266 REQUIRE(gost != NULL);
273 gost->reqlogon, NULL,
278 if (gost->ontoken && (gost->object != CK_INVALID_HANDLE)) {
279 pk11_ctx->ontoken = gost->ontoken;
280 pk11_ctx->object = gost->object;
284 for (attr = pk11_attribute_first(gost);
286 attr = pk11_attribute_next(gost, attr))
500 pk11_object_t *gost;
523 gost = (pk11_object_t *) isc_mem_get(key->mctx, sizeof(*gost));
524 if (gost == NULL)
526 memset(gost, 0, sizeof(*gost));
527 key->keydata.pkey = gost;
529 gost->repr = (CK_ATTRIBUTE *) isc_mem_get(key->mctx,
531 if (gost->repr == NULL)
533 memset(gost->repr, 0, sizeof(*attr) * 2);
534 gost->attrcnt = 2;
536 attr = gost->repr;
540 attr = gost->repr;
589 pk11_object_t *gost = key->keydata.pkey;
592 if (gost == NULL)
594 attr = pk11_attribute_bytype(gost, CKA_VALUE2);
595 return (ISC_TF((attr != NULL) || gost->ontoken));
600 pk11_object_t *gost = key->keydata.pkey;
603 if (gost == NULL)
606 INSIST((gost->object == CK_INVALID_HANDLE) || gost->ontoken);
608 for (attr = pk11_attribute_first(gost);
610 attr = pk11_attribute_next(gost, attr))
623 if (gost->repr != NULL) {
624 isc_safe_memwipe(gost->repr, gost->attrcnt * sizeof(*attr));
626 gost->repr, gost->attrcnt * sizeof(*attr));
628 isc_safe_memwipe(gost, sizeof(*gost));
629 isc_mem_put(key->mctx, gost, sizeof(*gost));
635 pk11_object_t *gost;
641 gost = key->keydata.pkey;
642 attr = pk11_attribute_bytype(gost, CKA_VALUE);
657 pk11_object_t *gost;
667 gost = (pk11_object_t *) isc_mem_get(key->mctx, sizeof(*gost));
668 if (gost == NULL)
670 memset(gost, 0, sizeof(*gost));
671 gost->repr = (CK_ATTRIBUTE *) isc_mem_get(key->mctx, sizeof(*attr));
672 if (gost->repr == NULL)
674 gost->attrcnt = 1;
676 attr = gost->repr;
685 key->keydata.pkey = gost;
690 for (attr = pk11_attribute_first(gost);
692 attr = pk11_attribute_next(gost, attr))
704 if (gost->repr != NULL) {
705 isc_safe_memwipe(gost->repr, gost->attrcnt * sizeof(*attr));
707 gost->repr, gost->attrcnt * sizeof(*attr));
709 isc_safe_memwipe(gost, sizeof(*gost));
710 isc_mem_put(key->mctx, gost, sizeof(*gost));
727 pk11_object_t *gost;
742 gost = key->keydata.pkey;
743 attr = pk11_attribute_bytype(gost, CKA_VALUE2);
779 pk11_object_t *gost;
793 gost = key->keydata.pkey;
794 attr = pk11_attribute_bytype(gost, CKA_VALUE2);
822 pk11_object_t *gost = NULL;
869 gost = (pk11_object_t *) isc_mem_get(key->mctx, sizeof(*gost));
870 if (gost == NULL)
872 memset(gost, 0, sizeof(*gost));
873 key->keydata.pkey = gost;
876 gost->repr = (CK_ATTRIBUTE *) isc_mem_get(key->mctx,
878 if (gost->repr == NULL)
880 memset(gost->repr, 0, sizeof(*attr) * 2);
881 gost->attrcnt = 2;
883 attr = gost->repr;