tpm-sysfs.c (03b22057e8ed2d1df416c9ae8e6e247e0b87ecc8) tpm-sysfs.c (745b361e989af21ad40811c2586b60229f870a68)
1/*
2 * Copyright (C) 2004 IBM Corporation
3 * Authors:
4 * Leendert van Doorn <leendert@watson.ibm.com>
5 * Dave Safford <safford@watson.ibm.com>
6 * Reiner Sailer <sailer@watson.ibm.com>
7 * Kylene Hall <kjhall@us.ibm.com>
8 *

--- 26 unchanged lines hidden (view full) ---

35 struct tpm_cmd_t tpm_cmd;
36 ssize_t err;
37 int i, rc;
38 char *str = buf;
39
40 struct tpm_chip *chip = to_tpm_chip(dev);
41
42 tpm_cmd.header.in = tpm_readpubek_header;
1/*
2 * Copyright (C) 2004 IBM Corporation
3 * Authors:
4 * Leendert van Doorn <leendert@watson.ibm.com>
5 * Dave Safford <safford@watson.ibm.com>
6 * Reiner Sailer <sailer@watson.ibm.com>
7 * Kylene Hall <kjhall@us.ibm.com>
8 *

--- 26 unchanged lines hidden (view full) ---

35 struct tpm_cmd_t tpm_cmd;
36 ssize_t err;
37 int i, rc;
38 char *str = buf;
39
40 struct tpm_chip *chip = to_tpm_chip(dev);
41
42 tpm_cmd.header.in = tpm_readpubek_header;
43 err = tpm_transmit_cmd(chip, &tpm_cmd, READ_PUBEK_RESULT_SIZE,
43 err = tpm_transmit_cmd(chip, NULL, &tpm_cmd, READ_PUBEK_RESULT_SIZE,
44 READ_PUBEK_RESULT_MIN_BODY_SIZE, 0,
45 "attempting to read the PUBEK");
46 if (err)
47 goto out;
48
49 /*
50 ignore header 10 bytes
51 algorithm 32 bits (1 == RSA )

--- 255 unchanged lines hidden ---
44 READ_PUBEK_RESULT_MIN_BODY_SIZE, 0,
45 "attempting to read the PUBEK");
46 if (err)
47 goto out;
48
49 /*
50 ignore header 10 bytes
51 algorithm 32 bits (1 == RSA )

--- 255 unchanged lines hidden ---