projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
daacdfa
)
[PATCH] tpm: Fix pubek parsing
author
Kylene Jo Hall
<kjhall@us.ibm.com>
Sat, 25 Jun 2005 21:55:40 +0000
(14:55 -0700)
committer
Linus Torvalds
<torvalds@ppc970.osdl.org>
Sat, 25 Jun 2005 23:24:38 +0000
(16:24 -0700)
Fix parsing of the PUBEK for display which was leading to showing the wrong
modulus length and modulus.
Signed-off-by: Kylene Hall <kjhall@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/tpm/tpm.c
patch
|
blob
|
history
diff --git
a/drivers/char/tpm/tpm.c
b/drivers/char/tpm/tpm.c
index 5c843c9bf8191ecd987968914256a7ac4ec76388..1156d11f02d9ffbedcaf06eaf3c564cd04ac4c7a 100644
(file)
--- a/
drivers/char/tpm/tpm.c
+++ b/
drivers/char/tpm/tpm.c
@@
-233,10
+233,10
@@
ssize_t tpm_show_pubek(struct device *dev, struct device_attribute *attr,
data[15], data[16], data[17], data[22], data[23],
data[24], data[25], data[26], data[27], data[28],
data[29], data[30], data[31], data[32], data[33],
- be32_to_cpu(*((__be32 *) (data + 3
2
))));
+ be32_to_cpu(*((__be32 *) (data + 3
4
))));
for (i = 0; i < 256; i++) {
- str += sprintf(str, "%02X ", data[i + 3
9
]);
+ str += sprintf(str, "%02X ", data[i + 3
8
]);
if ((i + 1) % 16 == 0)
str += sprintf(str, "\n");
}