tpm-interface.c (85ab3bf305b96e5f4c83b23a0b7e11d90144eb18) tpm-interface.c (be4c9acfe2976b6e024d15656254d2eb207b83a8)
1/*
2 * Copyright (C) 2004 IBM Corporation
3 * Copyright (C) 2014 Intel Corporation
4 *
5 * Authors:
6 * Leendert van Doorn <leendert@watson.ibm.com>
7 * Dave Safford <safford@watson.ibm.com>
8 * Reiner Sailer <sailer@watson.ibm.com>

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

533 if (err)
534 return err;
535
536 if (len < min_rsp_body_length + TPM_HEADER_SIZE)
537 return -EFAULT;
538
539 return 0;
540}
1/*
2 * Copyright (C) 2004 IBM Corporation
3 * Copyright (C) 2014 Intel Corporation
4 *
5 * Authors:
6 * Leendert van Doorn <leendert@watson.ibm.com>
7 * Dave Safford <safford@watson.ibm.com>
8 * Reiner Sailer <sailer@watson.ibm.com>

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

533 if (err)
534 return err;
535
536 if (len < min_rsp_body_length + TPM_HEADER_SIZE)
537 return -EFAULT;
538
539 return 0;
540}
541EXPORT_SYMBOL_GPL(tpm_transmit_cmd);
541
542#define TPM_DIGEST_SIZE 20
543#define TPM_RET_CODE_IDX 6
544#define TPM_INTERNAL_RESULT_SIZE 200
545#define TPM_ORD_GET_CAP 101
546#define TPM_ORD_GET_RANDOM 70
547
548static const struct tpm_input_header tpm_getcap_header = {

--- 776 unchanged lines hidden ---
542
543#define TPM_DIGEST_SIZE 20
544#define TPM_RET_CODE_IDX 6
545#define TPM_INTERNAL_RESULT_SIZE 200
546#define TPM_ORD_GET_CAP 101
547#define TPM_ORD_GET_RANDOM 70
548
549static const struct tpm_input_header tpm_getcap_header = {

--- 776 unchanged lines hidden ---