projects
/
u
/
mdw
/
catacomb
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
51a0f80
)
Change dummy names in grand objects so that they say what sort of thing
author
mdw
<mdw>
Fri, 6 Apr 2001 22:05:53 +0000
(22:05 +0000)
committer
mdw
<mdw>
Fri, 6 Apr 2001 22:05:53 +0000
(22:05 +0000)
they are.
tlsprf.c
patch
|
blob
|
blame
|
history
diff --git
a/tlsprf.c
b/tlsprf.c
index
4e191a8
..
d45eb43
100644
(file)
--- a/
tlsprf.c
+++ b/
tlsprf.c
@@
-1,6
+1,6
@@
/* -*-c-*-
*
/* -*-c-*-
*
- * $Id: tlsprf.c,v 1.
1 2001/04/04 20:10:52
mdw Exp $
+ * $Id: tlsprf.c,v 1.
2 2001/04/06 22:05:53
mdw Exp $
*
* The TLS pseudo-random function
*
*
* The TLS pseudo-random function
*
@@
-30,6
+30,10
@@
/*----- Revision history --------------------------------------------------*
*
* $Log: tlsprf.c,v $
/*----- Revision history --------------------------------------------------*
*
* $Log: tlsprf.c,v $
+ * Revision 1.2 2001/04/06 22:05:53 mdw
+ * Change dummy names in grand objects so that they say what sort of thing
+ * they are.
+ *
* Revision 1.1 2001/04/04 20:10:52 mdw
* Add support for the TLS pseudo-random function.
*
* Revision 1.1 2001/04/04 20:10:52 mdw
* Add support for the TLS pseudo-random function.
*
@@
-68,6
+72,7
@@
void tlsdx_init(tlsdx_ctx *c, gmac *m, const void *sd, size_t sdsz)
c->k = m;
c->hashsz = c->k->ops->c->hashsz;
c->sd = sd; c->sdsz = sdsz;
c->k = m;
c->hashsz = c->k->ops->c->hashsz;
c->sd = sd; c->sdsz = sdsz;
+
c->i = c->k->ops->init(c->k);
c->i->ops->hash(c->i, sd, sdsz);
c->ai = c->i->ops->done(c->i, 0);
c->i = c->k->ops->init(c->k);
c->i->ops->hash(c->i, sd, sdsz);
c->ai = c->i->ops->done(c->i, 0);
@@
-255,7
+260,7
@@
static void dx_grfill(grand *r, void *p, size_t sz)
}
static const grand_ops dx_grops = {
}
static const grand_ops dx_grops = {
- "<dummy>",
+ "<
tlsdx-
dummy>",
GRAND_CRYPTO, 0,
dx_grmisc, dx_grdestroy,
dx_grword, dx_grbyte, dx_grword, grand_range, dx_grfill
GRAND_CRYPTO, 0,
dx_grmisc, dx_grdestroy,
dx_grword, dx_grbyte, dx_grword, grand_range, dx_grfill
@@
-460,7
+465,7
@@
static void prf_grfill(grand *r, void *p, size_t sz)
}
static const grand_ops prf_grops = {
}
static const grand_ops prf_grops = {
- "<dummy>",
+ "<
tlsprf-
dummy>",
GRAND_CRYPTO, 0,
prf_grmisc, prf_grdestroy,
prf_grword, prf_grbyte, prf_grword, grand_range, prf_grfill
GRAND_CRYPTO, 0,
prf_grmisc, prf_grdestroy,
prf_grword, prf_grbyte, prf_grword, grand_range, prf_grfill