Warning: Attempt to read property "date" on null in /usr/local/www/websvn.planix.org/blame.php on line 247

Warning: Attempt to read property "msg" on null in /usr/local/www/websvn.planix.org/blame.php on line 247
WebSVN – planix.SVN – Blame – /os/branches/feature_posix/sys/src/cmd/unix/drawterm/libsec/egprivtopub.c – Rev 2

Subversion Repositories planix.SVN

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 - 1
#include "os.h"
2
#include <mp.h>
3
#include <libsec.h>
4
 
5
EGpub*
6
egprivtopub(EGpriv *priv)
7
{
8
	EGpub *pub;
9
 
10
	pub = egpuballoc();
11
	if(pub == nil)
12
		return nil;
13
	pub->p = mpcopy(priv->pub.p);
14
	pub->alpha = mpcopy(priv->pub.alpha);
15
	pub->key = mpcopy(priv->pub.key);
16
	return pub;
17
}