Lines Matching defs:priv
1183 CK_OBJECT_HANDLE priv = CK_INVALID_HANDLE;
1260 &pub, &priv),
1299 (pk11_ctx->session, priv, attr, 6),
1308 (pk11_ctx->session, priv, attr, 6),
1311 (void) pkcs_C_DestroyObject(pk11_ctx->session, priv);
1321 if (priv != CK_INVALID_HANDLE)
1322 (void) pkcs_C_DestroyObject(pk11_ctx->session, priv);
1549 dst_private_t priv;
1557 priv.nelements = 0;
1558 return (dst__privstruct_writefile(key, &priv, directory));
1608 priv.elements[i].tag = TAG_RSA_MODULUS;
1609 priv.elements[i].length = (unsigned short) modulus->ulValueLen;
1611 priv.elements[i].data = bufs[i];
1614 priv.elements[i].tag = TAG_RSA_PUBLICEXPONENT;
1615 priv.elements[i].length = (unsigned short) exponent->ulValueLen;
1617 priv.elements[i].data = bufs[i];
1621 priv.elements[i].tag = TAG_RSA_PRIVATEEXPONENT;
1622 priv.elements[i].length = (unsigned short) d->ulValueLen;
1624 priv.elements[i].data = bufs[i];
1629 priv.elements[i].tag = TAG_RSA_PRIME1;
1630 priv.elements[i].length = (unsigned short) p->ulValueLen;
1632 priv.elements[i].data = bufs[i];
1637 priv.elements[i].tag = TAG_RSA_PRIME2;
1638 priv.elements[i].length = (unsigned short) q->ulValueLen;
1640 priv.elements[i].data = bufs[i];
1645 priv.elements[i].tag = TAG_RSA_EXPONENT1;
1646 priv.elements[i].length = (unsigned short) dmp1->ulValueLen;
1648 priv.elements[i].data = bufs[i];
1653 priv.elements[i].tag = TAG_RSA_EXPONENT2;
1654 priv.elements[i].length = (unsigned short) dmq1->ulValueLen;
1656 priv.elements[i].data = bufs[i];
1661 priv.elements[i].tag = TAG_RSA_COEFFICIENT;
1662 priv.elements[i].length = (unsigned short) iqmp->ulValueLen;
1664 priv.elements[i].data = bufs[i];
1669 priv.elements[i].tag = TAG_RSA_ENGINE;
1670 priv.elements[i].length =
1672 priv.elements[i].data = (unsigned char *)key->engine;
1677 priv.elements[i].tag = TAG_RSA_LABEL;
1678 priv.elements[i].length =
1680 priv.elements[i].data = (unsigned char *)key->label;
1684 priv.nelements = i;
1685 result = dst__privstruct_writefile(key, &priv, directory);
1880 dst_private_t priv;
1889 ret = dst__privstruct_parse(key, DST_ALG_RSA, lexer, mctx, &priv);
1894 if (priv.nelements != 0)
1903 dst__privstruct_free(&priv, mctx);
1904 isc_safe_memwipe(&priv, sizeof(priv));
1909 for (i = 0; i < priv.nelements; i++) {
1910 switch (priv.elements[i].tag) {
1912 engine = (char *)priv.elements[i].data;
1915 label = (char *)priv.elements[i].data;
1932 dst__privstruct_free(&priv, mctx);
1933 isc_safe_memwipe(&priv, sizeof(priv));
1952 for (i = 0; i < priv.nelements; i++) {
1955 switch (priv.elements[i].tag) {
1961 bn = isc_mem_get(key->mctx, priv.elements[i].length);
1964 memmove(bn, priv.elements[i].data,
1965 priv.elements[i].length);
1968 switch (priv.elements[i].tag) {
1973 attr->ulValueLen = priv.elements[i].length;
1980 attr->ulValueLen = priv.elements[i].length;
1987 attr->ulValueLen = priv.elements[i].length;
1993 attr->ulValueLen = priv.elements[i].length;
1999 attr->ulValueLen = priv.elements[i].length;
2006 attr->ulValueLen = priv.elements[i].length;
2013 attr->ulValueLen = priv.elements[i].length;
2020 attr->ulValueLen = priv.elements[i].length;
2037 dst__privstruct_free(&priv, mctx);
2038 isc_safe_memwipe(&priv, sizeof(priv));
2044 dst__privstruct_free(&priv, mctx);
2045 isc_safe_memwipe(&priv, sizeof(priv));