Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 125103
b: refs/heads/master
c: d409f3b
h: refs/heads/master
i:
  125101: f5e90fa
  125099: b1b0831
  125095: bb8990e
  125087: 73c22f8
v: v3
  • Loading branch information
David Vrabel committed Oct 28, 2008
1 parent 4301b29 commit b8d21f4
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: cae1c11414912bf77a62aebd65ced321f0b9da51
refs/heads/master: d409f3bf47c5e5ae10601d079204e263bc176bcf
15 changes: 11 additions & 4 deletions trunk/drivers/usb/wusbcore/crypto.c
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@
#define D_LOCAL 0
#include <linux/uwb/debug.h>

static int debug_crypto_verify = 0;

module_param(debug_crypto_verify, int, 0);
MODULE_PARM_DESC(debug_crypto_verify, "verify the key generation algorithms");

/*
* Block of data, as understood by AES-CCM
Expand Down Expand Up @@ -526,10 +530,13 @@ int wusb_crypto_init(void)
{
int result;

result = wusb_key_derive_verify();
if (result < 0)
return result;
return wusb_oob_mic_verify();
if (debug_crypto_verify) {
result = wusb_key_derive_verify();
if (result < 0)
return result;
return wusb_oob_mic_verify();
}
return 0;
}

void wusb_crypto_exit(void)
Expand Down

0 comments on commit b8d21f4

Please sign in to comment.