Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 132690
b: refs/heads/master
c: c5b1e54
h: refs/heads/master
v: v3
  • Loading branch information
Neil Horman authored and Herbert Xu committed Feb 18, 2009
1 parent 153b2d7 commit c96230f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 563f346d04e8373739240604a51ce8529dd9f07e
refs/heads/master: c5b1e545a567c52081239bd5d187669640d0146f
6 changes: 6 additions & 0 deletions trunk/crypto/ansi_cprng.c
Original file line number Diff line number Diff line change
Expand Up @@ -132,9 +132,15 @@ static int _get_more_prng_bytes(struct prng_context *ctx)
*/
if (!memcmp(ctx->rand_data, ctx->last_rand_data,
DEFAULT_BLK_SZ)) {
if (fips_enabled) {
panic("cprng %p Failed repetition check!\n",
ctx);
}

printk(KERN_ERR
"ctx %p Failed repetition check!\n",
ctx);

ctx->flags |= PRNG_NEED_RESET;
return -EINVAL;
}
Expand Down

0 comments on commit c96230f

Please sign in to comment.