<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
Question obsolete; I was mixing up some details.<br>
<br>
<div class="moz-cite-prefix">On 6/30/19 12:35 PM, Ian Bruene wrote:<br>
</div>
<blockquote type="cite"
cite="mid:5f2e1318-651d-cb3f-dd5b-6f540db221ee@gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<br>
I have been trying to write tests for the NTS packet extension
code in nts_extens.c. Almost all of the functions end up needing
to encrypt or decrypt something. It is simple enough to feed in
random data for encryption, but for decryption the various keys
and other data needs to match up.<br>
<br>
This is a problem because the key generation code requires an SSL
context. How do I generate a set of keys that can be used in the
tests?<br>
<br>
Manual hardcoded keys can work, or generated on the fly. But there
needs to be *something*.<br>
<br>
<div class="moz-signature">-- <br>
<i>"In the end; what separates a Man, from a Slave? Money?
Power? No. A Man Chooses, a Slave Obeys."</i> -- Andrew Ryan
<p> <i>"Utopia cannot precede the Utopian. It will exist the
moment we are fit to occupy it."</i> -- Sophia Lamb </p>
</div>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<i>"In the end; what separates a Man, from a Slave? Money? Power?
No. A Man Chooses, a Slave Obeys."</i> -- Andrew Ryan
<p>
<i>"Utopia cannot precede the Utopian.
It will exist the moment we are fit to occupy it."</i> --
Sophia Lamb
</p>
</div>
</body>
</html>