Lines Matching defs:priv
490 dst_private_t priv;
498 priv.elements[cnt].tag = TAG_DSA_PRIME;
499 priv.elements[cnt].length = BN_num_bytes(dsa->p);
501 priv.elements[cnt].data = bufs[cnt];
504 priv.elements[cnt].tag = TAG_DSA_SUBPRIME;
505 priv.elements[cnt].length = BN_num_bytes(dsa->q);
507 priv.elements[cnt].data = bufs[cnt];
510 priv.elements[cnt].tag = TAG_DSA_BASE;
511 priv.elements[cnt].length = BN_num_bytes(dsa->g);
513 priv.elements[cnt].data = bufs[cnt];
516 priv.elements[cnt].tag = TAG_DSA_PRIVATE;
517 priv.elements[cnt].length = BN_num_bytes(dsa->priv_key);
519 priv.elements[cnt].data = bufs[cnt];
522 priv.elements[cnt].tag = TAG_DSA_PUBLIC;
523 priv.elements[cnt].length = BN_num_bytes(dsa->pub_key);
525 priv.elements[cnt].data = bufs[cnt];
528 priv.nelements = cnt;
529 return (dst__privstruct_writefile(key, &priv, directory));
534 dst_private_t priv;
542 ret = dst__privstruct_parse(key, DST_ALG_DSA, lexer, mctx, &priv);
552 for (i=0; i < priv.nelements; i++) {
554 bn = BN_bin2bn(priv.elements[i].data,
555 priv.elements[i].length, NULL);
559 switch (priv.elements[i].tag) {
577 dst__privstruct_free(&priv, mctx);
585 dst__privstruct_free(&priv, mctx);
586 memset(&priv, 0, sizeof(priv));