Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
nettle
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
5
Merge Requests
5
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Nettle
nettle
Commits
e084d347
Commit
e084d347
authored
Oct 08, 2001
by
Niels Möller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* yarrow.h (struct yarrow_key_event_ctx): New struct.
Rev: src/nettle/ChangeLog:1.36 Rev: src/nettle/yarrow.h:1.5
parent
0a8dcf44
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
0 deletions
+17
-0
ChangeLog
ChangeLog
+2
-0
yarrow.h
yarrow.h
+15
-0
No files found.
ChangeLog
View file @
e084d347
2001-10-08 Niels Mller <nisse@cuckoo.hack.org>
2001-10-08 Niels Mller <nisse@cuckoo.hack.org>
* yarrow.h (struct yarrow_key_event_ctx): New struct.
* yarrow256.c (yarrow_fast_reseed): Generate two block of output
* yarrow256.c (yarrow_fast_reseed): Generate two block of output
using the old key and feed into the pool.
using the old key and feed into the pool.
...
...
yarrow.h
View file @
e084d347
...
@@ -103,5 +103,20 @@ yarrow256_random(struct yarrow256_ctx *ctx, unsigned length, uint8_t *dst);
...
@@ -103,5 +103,20 @@ yarrow256_random(struct yarrow256_ctx *ctx, unsigned length, uint8_t *dst);
int
int
yarrow256_seeded
(
struct
yarrow256_ctx
*
ctx
);
yarrow256_seeded
(
struct
yarrow256_ctx
*
ctx
);
/* Key event estimator */
struct
yarrow_key_event_ctx
{
/* Counter for initial priming of the state */
unsigned
index
;
unsigned
chars
[
16
];
unsigned
previous
;
};
void
yarrow_key_event_init
(
struct
yarrow_key_event_ctx
*
ctx
);
unsigned
yarrow_key_event_estimate
(
struct
yarrow_key_event_ctx
*
ctx
,
unsigned
key
,
unsigned
time
);
#endif
/* NETTLE_YARROW_COMPAT_H_INCLUDED */
#endif
/* NETTLE_YARROW_COMPAT_H_INCLUDED */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment