Lines Matching defs:priv
528 CK_OBJECT_HANDLE priv = CK_INVALID_HANDLE;
606 &pub, &priv),
625 (pk11_ctx->session, priv, attr, 1),
632 (pk11_ctx->session, priv, attr, 1),
636 (void) pkcs_C_DestroyObject(pk11_ctx->session, priv);
647 if (priv != CK_INVALID_HANDLE)
648 (void) pkcs_C_DestroyObject(pk11_ctx->session, priv);
906 dst_private_t priv;
913 priv.nelements = 0;
914 return (dst__privstruct_writefile(key, &priv, directory));
943 priv.elements[cnt].tag = TAG_DSA_PRIME;
944 priv.elements[cnt].length = (unsigned short) prime->ulValueLen;
946 priv.elements[cnt].data = bufs[cnt];
949 priv.elements[cnt].tag = TAG_DSA_SUBPRIME;
950 priv.elements[cnt].length = (unsigned short) subprime->ulValueLen;
952 priv.elements[cnt].data = bufs[cnt];
955 priv.elements[cnt].tag = TAG_DSA_BASE;
956 priv.elements[cnt].length = (unsigned short) base->ulValueLen;
958 priv.elements[cnt].data = bufs[cnt];
961 priv.elements[cnt].tag = TAG_DSA_PRIVATE;
962 priv.elements[cnt].length = (unsigned short) priv_key->ulValueLen;
964 priv.elements[cnt].data = bufs[cnt];
967 priv.elements[cnt].tag = TAG_DSA_PUBLIC;
968 priv.elements[cnt].length = (unsigned short) pub_key->ulValueLen;
970 priv.elements[cnt].data = bufs[cnt];
973 priv.nelements = cnt;
974 return (dst__privstruct_writefile(key, &priv, directory));
979 dst_private_t priv;
987 ret = dst__privstruct_parse(key, DST_ALG_DSA, lexer, mctx, &priv);
992 if (priv.nelements != 0)
1001 dst__privstruct_free(&priv, mctx);
1002 isc_safe_memwipe(&priv, sizeof(priv));
1025 for (i = 0; i < priv.nelements; i++) {
1028 bn = isc_mem_get(key->mctx, priv.elements[i].length);
1031 memmove(bn, priv.elements[i].data, priv.elements[i].length);
1033 switch (priv.elements[i].tag) {
1038 attr->ulValueLen = priv.elements[i].length;
1045 attr->ulValueLen = priv.elements[i].length;
1051 attr->ulValueLen = priv.elements[i].length;
1057 attr->ulValueLen = priv.elements[i].length;
1063 attr->ulValueLen = priv.elements[i].length;
1067 dst__privstruct_free(&priv, mctx);
1077 dst__privstruct_free(&priv, mctx);
1078 isc_safe_memwipe(&priv, sizeof(priv));