Lines Matching defs:priv
487 CK_OBJECT_HANDLE priv = CK_INVALID_HANDLE;
520 &pub, &priv),
555 (pk11_ctx->session, priv, attr, 1),
562 (pk11_ctx->session, priv, attr, 1),
566 (void) pkcs_C_DestroyObject(pk11_ctx->session, priv);
576 if (priv != CK_INVALID_HANDLE)
577 (void) pkcs_C_DestroyObject(pk11_ctx->session, priv);
728 dst_private_t priv;
738 priv.nelements = 0;
739 return (dst__privstruct_writefile(key, &priv, directory));
748 priv.elements[i].tag = TAG_GOST_PRIVASN1;
749 priv.elements[i].length =
759 priv.elements[i].data = buf;
764 priv.nelements = i;
765 ret = dst__privstruct_writefile(key, &priv, directory);
780 dst_private_t priv;
789 priv.nelements = 0;
790 return (dst__privstruct_writefile(key, &priv, directory));
799 priv.elements[i].tag = TAG_GOST_PRIVRAW;
800 priv.elements[i].length = (unsigned short) attr->ulValueLen;
802 priv.elements[i].data = buf;
807 priv.nelements = i;
808 ret = dst__privstruct_writefile(key, &priv, directory);
820 dst_private_t priv;
830 ret = dst__privstruct_parse(key, DST_ALG_ECDSA256, lexer, mctx, &priv);
835 if (priv.nelements != 0)
842 dst__privstruct_free(&priv, mctx);
843 isc_safe_memwipe(&priv, sizeof(priv));
848 if (priv.elements[0].tag == TAG_GOST_PRIVASN1) {
849 int adj = (int) priv.elements[0].length - (39 + 32);
860 if (!isc_safe_memequal(priv.elements[0].data, buf, 39))
862 priv.elements[0].tag = TAG_GOST_PRIVRAW;
863 priv.elements[0].length -= 39;
864 memmove(priv.elements[0].data,
865 priv.elements[0].data + 39,
895 attr->pValue = isc_mem_get(key->mctx, priv.elements[0].length);
898 memmove(attr->pValue, priv.elements[0].data, priv.elements[0].length);
899 attr->ulValueLen = priv.elements[0].length;
901 dst__privstruct_free(&priv, mctx);
902 isc_safe_memwipe(&priv, sizeof(priv));
908 dst__privstruct_free(&priv, mctx);
909 isc_safe_memwipe(&priv, sizeof(priv));