Lines Matching defs:priv
353 dst_private_t priv;
362 priv.nelements = 0;
363 return (dst__privstruct_writefile(key, &priv, directory));
380 priv.elements[0].tag = TAG_GOST_PRIVASN1;
381 priv.elements[0].length = len;
382 priv.elements[0].data = der;
383 priv.nelements = 1;
385 result = dst__privstruct_writefile(key, &priv, directory);
399 dst_private_t priv;
407 priv.nelements = 0;
408 return (dst__privstruct_writefile(key, &priv, directory));
423 priv.elements[0].tag = TAG_GOST_PRIVRAW;
424 priv.elements[0].length = BN_num_bytes(privkey);
426 priv.elements[0].data = buf;
427 priv.nelements = 1;
429 ret = dst__privstruct_writefile(key, &priv, directory);
451 dst_private_t priv;
461 ret = dst__privstruct_parse(key, DST_ALG_ECCGOST, lexer, mctx, &priv);
466 if (priv.nelements != 0)
473 dst__privstruct_free(&priv, mctx);
474 isc_safe_memwipe(&priv, sizeof(priv));
478 INSIST((priv.elements[0].tag == TAG_GOST_PRIVASN1) ||
479 (priv.elements[0].tag == TAG_GOST_PRIVRAW));
481 if (priv.elements[0].tag == TAG_GOST_PRIVASN1) {
482 p = priv.elements[0].data;
484 (long) priv.elements[0].length) == NULL)
494 privkey = BN_bin2bn(priv.elements[0].data,
495 priv.elements[0].length, NULL);
525 dst__privstruct_free(&priv, mctx);
526 isc_safe_memwipe(&priv, sizeof(priv));
535 dst__privstruct_free(&priv, mctx);
536 isc_safe_memwipe(&priv, sizeof(priv));