Lines Matching defs:TPM_RC

471 typedef UINT32 TPM_RC;
648 constexpr TPM_RC TPM_RC_SUCCESS = 0x000;
649 constexpr TPM_RC TPM_RC_BAD_TAG = 0x01E;
650 constexpr TPM_RC RC_VER1 = 0x100;
651 constexpr TPM_RC TPM_RC_INITIALIZE = RC_VER1 + 0x000;
652 constexpr TPM_RC TPM_RC_FAILURE = RC_VER1 + 0x001;
653 constexpr TPM_RC TPM_RC_SEQUENCE = RC_VER1 + 0x003;
654 constexpr TPM_RC TPM_RC_PRIVATE = RC_VER1 + 0x00B;
655 constexpr TPM_RC TPM_RC_HMAC = RC_VER1 + 0x019;
656 constexpr TPM_RC TPM_RC_DISABLED = RC_VER1 + 0x020;
657 constexpr TPM_RC TPM_RC_EXCLUSIVE = RC_VER1 + 0x021;
658 constexpr TPM_RC TPM_RC_AUTH_TYPE = RC_VER1 + 0x024;
659 constexpr TPM_RC TPM_RC_AUTH_MISSING = RC_VER1 + 0x025;
660 constexpr TPM_RC TPM_RC_POLICY = RC_VER1 + 0x026;
661 constexpr TPM_RC TPM_RC_PCR = RC_VER1 + 0x027;
662 constexpr TPM_RC TPM_RC_PCR_CHANGED = RC_VER1 + 0x028;
663 constexpr TPM_RC TPM_RC_UPGRADE = RC_VER1 + 0x02D;
664 constexpr TPM_RC TPM_RC_TOO_MANY_CONTEXTS = RC_VER1 + 0x02E;
665 constexpr TPM_RC TPM_RC_AUTH_UNAVAILABLE = RC_VER1 + 0x02F;
666 constexpr TPM_RC TPM_RC_REBOOT = RC_VER1 + 0x030;
667 constexpr TPM_RC TPM_RC_UNBALANCED = RC_VER1 + 0x031;
668 constexpr TPM_RC TPM_RC_COMMAND_SIZE = RC_VER1 + 0x042;
669 constexpr TPM_RC TPM_RC_COMMAND_CODE = RC_VER1 + 0x043;
670 constexpr TPM_RC TPM_RC_AUTHSIZE = RC_VER1 + 0x044;
671 constexpr TPM_RC TPM_RC_AUTH_CONTEXT = RC_VER1 + 0x045;
672 constexpr TPM_RC TPM_RC_NV_RANGE = RC_VER1 + 0x046;
673 constexpr TPM_RC TPM_RC_NV_SIZE = RC_VER1 + 0x047;
674 constexpr TPM_RC TPM_RC_NV_LOCKED = RC_VER1 + 0x048;
675 constexpr TPM_RC TPM_RC_NV_AUTHORIZATION = RC_VER1 + 0x049;
676 constexpr TPM_RC TPM_RC_NV_UNINITIALIZED = RC_VER1 + 0x04A;
677 constexpr TPM_RC TPM_RC_NV_SPACE = RC_VER1 + 0x04B;
678 constexpr TPM_RC TPM_RC_NV_DEFINED = RC_VER1 + 0x04C;
679 constexpr TPM_RC TPM_RC_BAD_CONTEXT = RC_VER1 + 0x050;
680 constexpr TPM_RC TPM_RC_CPHASH = RC_VER1 + 0x051;
681 constexpr TPM_RC TPM_RC_PARENT = RC_VER1 + 0x052;
682 constexpr TPM_RC TPM_RC_NEEDS_TEST = RC_VER1 + 0x053;
683 constexpr TPM_RC TPM_RC_NO_RESULT = RC_VER1 + 0x054;
684 constexpr TPM_RC TPM_RC_SENSITIVE = RC_VER1 + 0x055;
685 constexpr TPM_RC RC_MAX_FM0 = RC_VER1 + 0x07F;
686 constexpr TPM_RC RC_FMT1 = 0x080;
687 constexpr TPM_RC TPM_RC_ASYMMETRIC = RC_FMT1 + 0x001;
688 constexpr TPM_RC TPM_RC_ATTRIBUTES = RC_FMT1 + 0x002;
689 constexpr TPM_RC TPM_RC_HASH = RC_FMT1 + 0x003;
690 constexpr TPM_RC TPM_RC_VALUE = RC_FMT1 + 0x004;
691 constexpr TPM_RC TPM_RC_HIERARCHY = RC_FMT1 + 0x005;
692 constexpr TPM_RC TPM_RC_KEY_SIZE = RC_FMT1 + 0x007;
693 constexpr TPM_RC TPM_RC_MGF = RC_FMT1 + 0x008;
694 constexpr TPM_RC TPM_RC_MODE = RC_FMT1 + 0x009;
695 constexpr TPM_RC TPM_RC_TYPE = RC_FMT1 + 0x00A;
696 constexpr TPM_RC TPM_RC_HANDLE = RC_FMT1 + 0x00B;
697 constexpr TPM_RC TPM_RC_KDF = RC_FMT1 + 0x00C;
698 constexpr TPM_RC TPM_RC_RANGE = RC_FMT1 + 0x00D;
699 constexpr TPM_RC TPM_RC_AUTH_FAIL = RC_FMT1 + 0x00E;
700 constexpr TPM_RC TPM_RC_NONCE = RC_FMT1 + 0x00F;
701 constexpr TPM_RC TPM_RC_PP = RC_FMT1 + 0x010;
702 constexpr TPM_RC TPM_RC_SCHEME = RC_FMT1 + 0x012;
703 constexpr TPM_RC TPM_RC_SIZE = RC_FMT1 + 0x015;
704 constexpr TPM_RC TPM_RC_SYMMETRIC = RC_FMT1 + 0x016;
705 constexpr TPM_RC TPM_RC_TAG = RC_FMT1 + 0x017;
706 constexpr TPM_RC TPM_RC_SELECTOR = RC_FMT1 + 0x018;
707 constexpr TPM_RC TPM_RC_INSUFFICIENT = RC_FMT1 + 0x01A;
708 constexpr TPM_RC TPM_RC_SIGNATURE = RC_FMT1 + 0x01B;
709 constexpr TPM_RC TPM_RC_KEY = RC_FMT1 + 0x01C;
710 constexpr TPM_RC TPM_RC_POLICY_FAIL = RC_FMT1 + 0x01D;
711 constexpr TPM_RC TPM_RC_INTEGRITY = RC_FMT1 + 0x01F;
712 constexpr TPM_RC TPM_RC_TICKET = RC_FMT1 + 0x020;
713 constexpr TPM_RC TPM_RC_RESERVED_BITS = RC_FMT1 + 0x021;
714 constexpr TPM_RC TPM_RC_BAD_AUTH = RC_FMT1 + 0x022;
715 constexpr TPM_RC TPM_RC_EXPIRED = RC_FMT1 + 0x023;
716 constexpr TPM_RC TPM_RC_POLICY_CC = RC_FMT1 + 0x024;
717 constexpr TPM_RC TPM_RC_BINDING = RC_FMT1 + 0x025;
718 constexpr TPM_RC TPM_RC_CURVE = RC_FMT1 + 0x026;
719 constexpr TPM_RC TPM_RC_ECC_POINT = RC_FMT1 + 0x027;
720 constexpr TPM_RC RC_WARN = 0x900;
721 constexpr TPM_RC TPM_RC_CONTEXT_GAP = RC_WARN + 0x001;
722 constexpr TPM_RC TPM_RC_OBJECT_MEMORY = RC_WARN + 0x002;
723 constexpr TPM_RC TPM_RC_SESSION_MEMORY = RC_WARN + 0x003;
724 constexpr TPM_RC TPM_RC_MEMORY = RC_WARN + 0x004;
725 constexpr TPM_RC TPM_RC_SESSION_HANDLES = RC_WARN + 0x005;
726 constexpr TPM_RC TPM_RC_OBJECT_HANDLES = RC_WARN + 0x006;
727 constexpr TPM_RC TPM_RC_LOCALITY = RC_WARN + 0x007;
728 constexpr TPM_RC TPM_RC_YIELDED = RC_WARN + 0x008;
729 constexpr TPM_RC TPM_RC_CANCELED = RC_WARN + 0x009;
730 constexpr TPM_RC TPM_RC_TESTING = RC_WARN + 0x00A;
731 constexpr TPM_RC TPM_RC_REFERENCE_H0 = RC_WARN + 0x010;
732 constexpr TPM_RC TPM_RC_REFERENCE_H1 = RC_WARN + 0x011;
733 constexpr TPM_RC TPM_RC_REFERENCE_H2 = RC_WARN + 0x012;
734 constexpr TPM_RC TPM_RC_REFERENCE_H3 = RC_WARN + 0x013;
735 constexpr TPM_RC TPM_RC_REFERENCE_H4 = RC_WARN + 0x014;
736 constexpr TPM_RC TPM_RC_REFERENCE_H5 = RC_WARN + 0x015;
737 constexpr TPM_RC TPM_RC_REFERENCE_H6 = RC_WARN + 0x016;
738 constexpr TPM_RC TPM_RC_REFERENCE_S0 = RC_WARN + 0x018;
739 constexpr TPM_RC TPM_RC_REFERENCE_S1 = RC_WARN + 0x019;
740 constexpr TPM_RC TPM_RC_REFERENCE_S2 = RC_WARN + 0x01A;
741 constexpr TPM_RC TPM_RC_REFERENCE_S3 = RC_WARN + 0x01B;
742 constexpr TPM_RC TPM_RC_REFERENCE_S4 = RC_WARN + 0x01C;
743 constexpr TPM_RC TPM_RC_REFERENCE_S5 = RC_WARN + 0x01D;
744 constexpr TPM_RC TPM_RC_REFERENCE_S6 = RC_WARN + 0x01E;
745 constexpr TPM_RC TPM_RC_NV_RATE = RC_WARN + 0x020;
746 constexpr TPM_RC TPM_RC_LOCKOUT = RC_WARN + 0x021;
747 constexpr TPM_RC TPM_RC_RETRY = RC_WARN + 0x022;
748 constexpr TPM_RC TPM_RC_NV_UNAVAILABLE = RC_WARN + 0x023;
749 constexpr TPM_RC TPM_RC_NOT_USED = RC_WARN + 0x7F;
750 constexpr TPM_RC TPM_RC_H = 0x000;
751 constexpr TPM_RC TPM_RC_P = 0x040;
752 constexpr TPM_RC TPM_RC_S = 0x800;
753 constexpr TPM_RC TPM_RC_1 = 0x100;
754 constexpr TPM_RC TPM_RC_2 = 0x200;
755 constexpr TPM_RC TPM_RC_3 = 0x300;
756 constexpr TPM_RC TPM_RC_4 = 0x400;
757 constexpr TPM_RC TPM_RC_5 = 0x500;
758 constexpr TPM_RC TPM_RC_6 = 0x600;
759 constexpr TPM_RC TPM_RC_7 = 0x700;
760 constexpr TPM_RC TPM_RC_8 = 0x800;
761 constexpr TPM_RC TPM_RC_9 = 0x900;
762 constexpr TPM_RC TPM_RC_A = 0xA00;
763 constexpr TPM_RC TPM_RC_B = 0xB00;
764 constexpr TPM_RC TPM_RC_C = 0xC00;
765 constexpr TPM_RC TPM_RC_D = 0xD00;
766 constexpr TPM_RC TPM_RC_E = 0xE00;
767 constexpr TPM_RC TPM_RC_F = 0xF00;
768 constexpr TPM_RC TPM_RC_N_MASK = 0xF00;
1658 TRUNKS_EXPORT TPM_RC Serialize_uint8_t(const uint8_t& value,
1661 TRUNKS_EXPORT TPM_RC Parse_uint8_t(std::string* buffer,
1665 TRUNKS_EXPORT TPM_RC Serialize_int8_t(const int8_t& value, std::string* buffer);
1667 TRUNKS_EXPORT TPM_RC Parse_int8_t(std::string* buffer,
1671 TRUNKS_EXPORT TPM_RC Serialize_int(const int& value, std::string* buffer);
1673 TRUNKS_EXPORT TPM_RC Parse_int(std::string* buffer,
1677 TRUNKS_EXPORT TPM_RC Serialize_uint16_t(const uint16_t& value,
1680 TRUNKS_EXPORT TPM_RC Parse_uint16_t(std::string* buffer,
1684 TRUNKS_EXPORT TPM_RC Serialize_int16_t(const int16_t& value,
1687 TRUNKS_EXPORT TPM_RC Parse_int16_t(std::string* buffer,
1691 TRUNKS_EXPORT TPM_RC Serialize_uint32_t(const uint32_t& value,
1694 TRUNKS_EXPORT TPM_RC Parse_uint32_t(std::string* buffer,
1698 TRUNKS_EXPORT TPM_RC Serialize_int32_t(const int32_t& value,
1701 TRUNKS_EXPORT TPM_RC Parse_int32_t(std::string* buffer,
1705 TRUNKS_EXPORT TPM_RC Serialize_uint64_t(const uint64_t& value,
1708 TRUNKS_EXPORT TPM_RC Parse_uint64_t(std::string* buffer,
1712 TRUNKS_EXPORT TPM_RC Serialize_int64_t(const int64_t& value,
1715 TRUNKS_EXPORT TPM_RC Parse_int64_t(std::string* buffer,
1719 TRUNKS_EXPORT TPM_RC Serialize_UINT8(const UINT8& value, std::string* buffer);
1721 TRUNKS_EXPORT TPM_RC Parse_UINT8(std::string* buffer,
1725 TRUNKS_EXPORT TPM_RC Serialize_BYTE(const BYTE& value, std::string* buffer);
1727 TRUNKS_EXPORT TPM_RC Parse_BYTE(std::string* buffer,
1731 TRUNKS_EXPORT TPM_RC Serialize_INT8(const INT8& value, std::string* buffer);
1733 TRUNKS_EXPORT TPM_RC Parse_INT8(std::string* buffer,
1737 TRUNKS_EXPORT TPM_RC Serialize_BOOL(const BOOL& value, std::string* buffer);
1739 TRUNKS_EXPORT TPM_RC Parse_BOOL(std::string* buffer,
1743 TRUNKS_EXPORT TPM_RC Serialize_UINT16(const UINT16& value, std::string* buffer);
1745 TRUNKS_EXPORT TPM_RC Parse_UINT16(std::string* buffer,
1749 TRUNKS_EXPORT TPM_RC Serialize_INT16(const INT16& value, std::string* buffer);
1751 TRUNKS_EXPORT TPM_RC Parse_INT16(std::string* buffer,
1755 TRUNKS_EXPORT TPM_RC Serialize_UINT32(const UINT32& value, std::string* buffer);
1757 TRUNKS_EXPORT TPM_RC Parse_UINT32(std::string* buffer,
1761 TRUNKS_EXPORT TPM_RC Serialize_INT32(const INT32& value, std::string* buffer);
1763 TRUNKS_EXPORT TPM_RC Parse_INT32(std::string* buffer,
1767 TRUNKS_EXPORT TPM_RC Serialize_UINT64(const UINT64& value, std::string* buffer);
1769 TRUNKS_EXPORT TPM_RC Parse_UINT64(std::string* buffer,
1773 TRUNKS_EXPORT TPM_RC Serialize_INT64(const INT64& value, std::string* buffer);
1775 TRUNKS_EXPORT TPM_RC Parse_INT64(std::string* buffer,
1779 TRUNKS_EXPORT TPM_RC Serialize_TPM_ALGORITHM_ID(const TPM_ALGORITHM_ID& value,
1782 TRUNKS_EXPORT TPM_RC Parse_TPM_ALGORITHM_ID(std::string* buffer,
1786 TRUNKS_EXPORT TPM_RC
1790 TRUNKS_EXPORT TPM_RC Parse_TPM_MODIFIER_INDICATOR(std::string* buffer,
1794 TRUNKS_EXPORT TPM_RC
1798 TRUNKS_EXPORT TPM_RC Parse_TPM_AUTHORIZATION_SIZE(std::string* buffer,
1802 TRUNKS_EXPORT TPM_RC
1806 TRUNKS_EXPORT TPM_RC Parse_TPM_PARAMETER_SIZE(std::string* buffer,
1810 TRUNKS_EXPORT TPM_RC Serialize_TPM_KEY_SIZE(const TPM_KEY_SIZE& value,
1813 TRUNKS_EXPORT TPM_RC Parse_TPM_KEY_SIZE(std::string* buffer,
1817 TRUNKS_EXPORT TPM_RC Serialize_TPM_KEY_BITS(const TPM_KEY_BITS& value,
1820 TRUNKS_EXPORT TPM_RC Parse_TPM_KEY_BITS(std::string* buffer,
1824 TRUNKS_EXPORT TPM_RC Serialize_TPM_HANDLE(const TPM_HANDLE& value,
1827 TRUNKS_EXPORT TPM_RC Parse_TPM_HANDLE(std::string* buffer,
1831 TRUNKS_EXPORT TPM_RC Serialize_TPM2B_NONCE(const TPM2B_NONCE& value,
1834 TRUNKS_EXPORT TPM_RC Parse_TPM2B_NONCE(std::string* buffer,
1838 TRUNKS_EXPORT TPM_RC Serialize_TPM2B_AUTH(const TPM2B_AUTH& value,
1841 TRUNKS_EXPORT TPM_RC Parse_TPM2B_AUTH(std::string* buffer,
1845 TRUNKS_EXPORT TPM_RC Serialize_TPM2B_OPERAND(const TPM2B_OPERAND& value,
1848 TRUNKS_EXPORT TPM_RC Parse_TPM2B_OPERAND(std::string* buffer,
1852 TRUNKS_EXPORT TPM_RC Serialize_TPMS_SCHEME_HMAC(const TPMS_SCHEME_HMAC& value,
1855 TRUNKS_EXPORT TPM_RC Parse_TPMS_SCHEME_HMAC(std::string* buffer,
1859 TRUNKS_EXPORT TPM_RC
1863 TRUNKS_EXPORT TPM_RC Parse_TPMS_SCHEME_RSASSA(std::string* buffer,
1867 TRUNKS_EXPORT TPM_RC
1871 TRUNKS_EXPORT TPM_RC Parse_TPMS_SCHEME_RSAPSS(std::string* buffer,
1875 TRUNKS_EXPORT TPM_RC Serialize_TPMS_SCHEME_ECDSA(const TPMS_SCHEME_ECDSA& value,
1878 TRUNKS_EXPORT TPM_RC Parse_TPMS_SCHEME_ECDSA(std::string* buffer,
1882 TRUNKS_EXPORT TPM_RC Serialize_TPMS_SCHEME_SM2(const TPMS_SCHEME_SM2& value,
1885 TRUNKS_EXPORT TPM_RC Parse_TPMS_SCHEME_SM2(std::string* buffer,
1889 TRUNKS_EXPORT TPM_RC
1893 TRUNKS_EXPORT TPM_RC Parse_TPMS_SCHEME_ECSCHNORR(std::string* buffer,
1897 TRUNKS_EXPORT TPM_RC Serialize_TPMI_YES_NO(const TPMI_YES_NO& value,
1900 TRUNKS_EXPORT TPM_RC Parse_TPMI_YES_NO(std::string* buffer,
1904 TRUNKS_EXPORT TPM_RC Serialize_TPMI_DH_OBJECT(const TPMI_DH_OBJECT& value,
1907 TRUNKS_EXPORT TPM_RC Parse_TPMI_DH_OBJECT(std::string* buffer,
1911 TRUNKS_EXPORT TPM_RC
1915 TRUNKS_EXPORT TPM_RC Parse_TPMI_DH_PERSISTENT(std::string* buffer,
1919 TRUNKS_EXPORT TPM_RC Serialize_TPMI_DH_ENTITY(const TPMI_DH_ENTITY& value,
1922 TRUNKS_EXPORT TPM_RC Parse_TPMI_DH_ENTITY(std::string* buffer,
1926 TRUNKS_EXPORT TPM_RC Serialize_TPMI_DH_PCR(const TPMI_DH_PCR& value,
1929 TRUNKS_EXPORT TPM_RC Parse_TPMI_DH_PCR(std::string* buffer,
1933 TRUNKS_EXPORT TPM_RC
1937 TRUNKS_EXPORT TPM_RC Parse_TPMI_SH_AUTH_SESSION(std::string* buffer,
1941 TRUNKS_EXPORT TPM_RC Serialize_TPMI_SH_HMAC(const TPMI_SH_HMAC& value,
1944 TRUNKS_EXPORT TPM_RC Parse_TPMI_SH_HMAC(std::string* buffer,
1948 TRUNKS_EXPORT TPM_RC Serialize_TPMI_SH_POLICY(const TPMI_SH_POLICY& value,
1951 TRUNKS_EXPORT TPM_RC Parse_TPMI_SH_POLICY(std::string* buffer,
1955 TRUNKS_EXPORT TPM_RC Serialize_TPMI_DH_CONTEXT(const TPMI_DH_CONTEXT& value,
1958 TRUNKS_EXPORT TPM_RC Parse_TPMI_DH_CONTEXT(std::string* buffer,
1962 TRUNKS_EXPORT TPM_RC Serialize_TPMI_RH_HIERARCHY(const TPMI_RH_HIERARCHY& value,
1965 TRUNKS_EXPORT TPM_RC Parse_TPMI_RH_HIERARCHY(std::string* buffer,
1969 TRUNKS_EXPORT TPM_RC Serialize_TPMI_RH_ENABLES(const TPMI_RH_ENABLES& value,
1972 TRUNKS_EXPORT TPM_RC Parse_TPMI_RH_ENABLES(std::string* buffer,
1976 TRUNKS_EXPORT TPM_RC
1980 TRUNKS_EXPORT TPM_RC Parse_TPMI_RH_HIERARCHY_AUTH(std::string* buffer,
1984 TRUNKS_EXPORT TPM_RC Serialize_TPMI_RH_PLATFORM(const TPMI_RH_PLATFORM& value,
1987 TRUNKS_EXPORT TPM_RC Parse_TPMI_RH_PLATFORM(std::string* buffer,
1991 TRUNKS_EXPORT TPM_RC Serialize_TPMI_RH_OWNER(const TPMI_RH_OWNER& value,
1994 TRUNKS_EXPORT TPM_RC Parse_TPMI_RH_OWNER(std::string* buffer,
1998 TRUNKS_EXPORT TPM_RC
2002 TRUNKS_EXPORT TPM_RC Parse_TPMI_RH_ENDORSEMENT(std::string* buffer,
2006 TRUNKS_EXPORT TPM_RC Serialize_TPMI_RH_PROVISION(const TPMI_RH_PROVISION& value,
2009 TRUNKS_EXPORT TPM_RC Parse_TPMI_RH_PROVISION(std::string* buffer,
2013 TRUNKS_EXPORT TPM_RC Serialize_TPMI_RH_CLEAR(const TPMI_RH_CLEAR& value,
2016 TRUNKS_EXPORT TPM_RC Parse_TPMI_RH_CLEAR(std::string* buffer,
2020 TRUNKS_EXPORT TPM_RC Serialize_TPMI_RH_NV_AUTH(const TPMI_RH_NV_AUTH& value,
2023 TRUNKS_EXPORT TPM_RC Parse_TPMI_RH_NV_AUTH(std::string* buffer,
2027 TRUNKS_EXPORT TPM_RC Serialize_TPMI_RH_LOCKOUT(const TPMI_RH_LOCKOUT& value,
2030 TRUNKS_EXPORT TPM_RC Parse_TPMI_RH_LOCKOUT(std::string* buffer,
2034 TRUNKS_EXPORT TPM_RC Serialize_TPMI_RH_NV_INDEX(const TPMI_RH_NV_INDEX& value,
2037 TRUNKS_EXPORT TPM_RC Parse_TPMI_RH_NV_INDEX(std::string* buffer,
2041 TRUNKS_EXPORT TPM_RC Serialize_TPMI_ALG_HASH(const TPMI_ALG_HASH& value,
2044 TRUNKS_EXPORT TPM_RC Parse_TPMI_ALG_HASH(std::string* buffer,
2048 TRUNKS_EXPORT TPM_RC Serialize_TPMI_ALG_ASYM(const TPMI_ALG_ASYM& value,
2051 TRUNKS_EXPORT TPM_RC Parse_TPMI_ALG_ASYM(std::string* buffer,
2055 TRUNKS_EXPORT TPM_RC Serialize_TPMI_ALG_SYM(const TPMI_ALG_SYM& value,
2058 TRUNKS_EXPORT TPM_RC Parse_TPMI_ALG_SYM(std::string* buffer,
2062 TRUNKS_EXPORT TPM_RC
2066 TRUNKS_EXPORT TPM_RC Parse_TPMI_ALG_SYM_OBJECT(std::string* buffer,
2070 TRUNKS_EXPORT TPM_RC Serialize_TPMI_ALG_SYM_MODE(const TPMI_ALG_SYM_MODE& value,
2073 TRUNKS_EXPORT TPM_RC Parse_TPMI_ALG_SYM_MODE(std::string* buffer,
2077 TRUNKS_EXPORT TPM_RC Serialize_TPMI_ALG_KDF(const TPMI_ALG_KDF& value,
2080 TRUNKS_EXPORT TPM_RC Parse_TPMI_ALG_KDF(std::string* buffer,
2084 TRUNKS_EXPORT TPM_RC
2088 TRUNKS_EXPORT TPM_RC Parse_TPMI_ALG_SIG_SCHEME(std::string* buffer,
2092 TRUNKS_EXPORT TPM_RC
2096 TRUNKS_EXPORT TPM_RC Parse_TPMI_ECC_KEY_EXCHANGE(std::string* buffer,
2100 TRUNKS_EXPORT TPM_RC
2104 TRUNKS_EXPORT TPM_RC Parse_TPMI_ST_COMMAND_TAG(std::string* buffer,
2108 TRUNKS_EXPORT TPM_RC Serialize_TPMI_ST_ATTEST(const TPMI_ST_ATTEST& value,
2111 TRUNKS_EXPORT TPM_RC Parse_TPMI_ST_ATTEST(std::string* buffer,
2115 TRUNKS_EXPORT TPM_RC Serialize_TPMI_AES_KEY_BITS(const TPMI_AES_KEY_BITS& value,
2118 TRUNKS_EXPORT TPM_RC Parse_TPMI_AES_KEY_BITS(std::string* buffer,
2122 TRUNKS_EXPORT TPM_RC Serialize_TPMI_SM4_KEY_BITS(const TPMI_SM4_KEY_BITS& value,
2125 TRUNKS_EXPORT TPM_RC Parse_TPMI_SM4_KEY_BITS(std::string* buffer,
2129 TRUNKS_EXPORT TPM_RC
2133 TRUNKS_EXPORT TPM_RC
2138 TRUNKS_EXPORT TPM_RC
2142 TRUNKS_EXPORT TPM_RC Parse_TPMI_ALG_ASYM_SCHEME(std::string* buffer,
2146 TRUNKS_EXPORT TPM_RC
2150 TRUNKS_EXPORT TPM_RC Parse_TPMI_ALG_RSA_SCHEME(std::string* buffer,
2154 TRUNKS_EXPORT TPM_RC
2158 TRUNKS_EXPORT TPM_RC Parse_TPMI_ALG_RSA_DECRYPT(std::string* buffer,
2162 TRUNKS_EXPORT TPM_RC Serialize_TPMI_RSA_KEY_BITS(const TPMI_RSA_KEY_BITS& value,
2165 TRUNKS_EXPORT TPM_RC Parse_TPMI_RSA_KEY_BITS(std::string* buffer,
2169 TRUNKS_EXPORT TPM_RC
2173 TRUNKS_EXPORT TPM_RC Parse_TPMI_ALG_ECC_SCHEME(std::string* buffer,
2177 TRUNKS_EXPORT TPM_RC Serialize_TPMI_ECC_CURVE(const TPMI_ECC_CURVE& value,
2180 TRUNKS_EXPORT TPM_RC Parse_TPMI_ECC_CURVE(std::string* buffer,
2184 TRUNKS_EXPORT TPM_RC Serialize_TPMI_ALG_PUBLIC(const TPMI_ALG_PUBLIC& value,
2187 TRUNKS_EXPORT TPM_RC Parse_TPMI_ALG_PUBLIC(std::string* buffer,
2191 TRUNKS_EXPORT TPM_RC Serialize_TPMA_ALGORITHM(const TPMA_ALGORITHM& value,
2194 TRUNKS_EXPORT TPM_RC Parse_TPMA_ALGORITHM(std::string* buffer,
2198 TRUNKS_EXPORT TPM_RC Serialize_TPMA_OBJECT(const TPMA_OBJECT& value,
2201 TRUNKS_EXPORT TPM_RC Parse_TPMA_OBJECT(std::string* buffer,
2205 TRUNKS_EXPORT TPM_RC Serialize_TPMA_SESSION(const TPMA_SESSION& value,
2208 TRUNKS_EXPORT TPM_RC Parse_TPMA_SESSION(std::string* buffer,
2212 TRUNKS_EXPORT TPM_RC Serialize_TPMA_LOCALITY(const TPMA_LOCALITY& value,
2215 TRUNKS_EXPORT TPM_RC Parse_TPMA_LOCALITY(std::string* buffer,
2219 TRUNKS_EXPORT TPM_RC Serialize_TPMA_PERMANENT(const TPMA_PERMANENT& value,
2222 TRUNKS_EXPORT TPM_RC Parse_TPMA_PERMANENT(std::string* buffer,
2226 TRUNKS_EXPORT TPM_RC
2230 TRUNKS_EXPORT TPM_RC Parse_TPMA_STARTUP_CLEAR(std::string* buffer,
2234 TRUNKS_EXPORT TPM_RC Serialize_TPMA_MEMORY(const TPMA_MEMORY& value,
2237 TRUNKS_EXPORT TPM_RC Parse_TPMA_MEMORY(std::string* buffer,
2241 TRUNKS_EXPORT TPM_RC Serialize_TPMA_CC(const TPMA_CC& value,
2244 TRUNKS_EXPORT TPM_RC Parse_TPMA_CC(std::string* buffer,
2248 TRUNKS_EXPORT TPM_RC Serialize_TPM_NV_INDEX(const TPM_NV_INDEX& value,
2251 TRUNKS_EXPORT TPM_RC Parse_TPM_NV_INDEX(std::string* buffer,
2255 TRUNKS_EXPORT TPM_RC Serialize_TPMA_NV(const TPMA_NV& value,
2258 TRUNKS_EXPORT TPM_RC Parse_TPMA_NV(std::string* buffer,
2262 TRUNKS_EXPORT TPM_RC Serialize_TPM_SPEC(const TPM_SPEC& value,
2265 TRUNKS_EXPORT TPM_RC Parse_TPM_SPEC(std::string* buffer,
2269 TRUNKS_EXPORT TPM_RC Serialize_TPM_GENERATED(const TPM_GENERATED& value,
2272 TRUNKS_EXPORT TPM_RC Parse_TPM_GENERATED(std::string* buffer,
2276 TRUNKS_EXPORT TPM_RC Serialize_TPM_ALG_ID(const TPM_ALG_ID& value,
2279 TRUNKS_EXPORT TPM_RC Parse_TPM_ALG_ID(std::string* buffer,
2283 TRUNKS_EXPORT TPM_RC Serialize_TPM_ECC_CURVE(const TPM_ECC_CURVE& value,
2286 TRUNKS_EXPORT TPM_RC Parse_TPM_ECC_CURVE(std::string* buffer,
2290 TRUNKS_EXPORT TPM_RC Serialize_TPM_CC(const TPM_CC& value, std::string* buffer);
2292 TRUNKS_EXPORT TPM_RC Parse_TPM_CC(std::string* buffer,
2296 TRUNKS_EXPORT TPM_RC Serialize_TPM_RC(const TPM_RC& value, std::string* buffer);
2298 TRUNKS_EXPORT TPM_RC Parse_TPM_RC(std::string* buffer,
2299 TPM_RC* value,
2302 TRUNKS_EXPORT TPM_RC Serialize_TPM_CLOCK_ADJUST(const TPM_CLOCK_ADJUST& value,
2305 TRUNKS_EXPORT TPM_RC Parse_TPM_CLOCK_ADJUST(std::string* buffer,
2309 TRUNKS_EXPORT TPM_RC Serialize_TPM_EO(const TPM_EO& value, std::string* buffer);
2311 TRUNKS_EXPORT TPM_RC Parse_TPM_EO(std::string* buffer,
2315 TRUNKS_EXPORT TPM_RC Serialize_TPM_ST(const TPM_ST& value, std::string* buffer);
2317 TRUNKS_EXPORT TPM_RC Parse_TPM_ST(std::string* buffer,
2321 TRUNKS_EXPORT TPM_RC Serialize_TPM_SU(const TPM_SU& value, std::string* buffer);
2323 TRUNKS_EXPORT TPM_RC Parse_TPM_SU(std::string* buffer,
2327 TRUNKS_EXPORT TPM_RC Serialize_TPM_SE(const TPM_SE& value, std::string* buffer);
2329 TRUNKS_EXPORT TPM_RC Parse_TPM_SE(std::string* buffer,
2333 TRUNKS_EXPORT TPM_RC Serialize_TPM_CAP(const TPM_CAP& value,
2336 TRUNKS_EXPORT TPM_RC Parse_TPM_CAP(std::string* buffer,
2340 TRUNKS_EXPORT TPM_RC Serialize_TPM_PT(const TPM_PT& value, std::string* buffer);
2342 TRUNKS_EXPORT TPM_RC Parse_TPM_PT(std::string* buffer,
2346 TRUNKS_EXPORT TPM_RC Serialize_TPM_PT_PCR(const TPM_PT_PCR& value,
2349 TRUNKS_EXPORT TPM_RC Parse_TPM_PT_PCR(std::string* buffer,
2353 TRUNKS_EXPORT TPM_RC Serialize_TPM_PS(const TPM_PS& value, std::string* buffer);
2355 TRUNKS_EXPORT TPM_RC Parse_TPM_PS(std::string* buffer,
2359 TRUNKS_EXPORT TPM_RC Serialize_TPM_HT(const TPM_HT& value, std::string* buffer);
2361 TRUNKS_EXPORT TPM_RC Parse_TPM_HT(std::string* buffer,
2365 TRUNKS_EXPORT TPM_RC Serialize_TPM_RH(const TPM_RH& value, std::string* buffer);
2367 TRUNKS_EXPORT TPM_RC Parse_TPM_RH(std::string* buffer,
2371 TRUNKS_EXPORT TPM_RC Serialize_TPM_HC(const TPM_HC& value, std::string* buffer);
2373 TRUNKS_EXPORT TPM_RC Parse_TPM_HC(std::string* buffer,
2377 TRUNKS_EXPORT TPM_RC
2381 TRUNKS_EXPORT TPM_RC
2386 TRUNKS_EXPORT TPM_RC Serialize_TPMT_HA(const TPMT_HA& value,
2389 TRUNKS_EXPORT TPM_RC Parse_TPMT_HA(std::string* buffer,
2393 TRUNKS_EXPORT TPM_RC Serialize_TPM2B_DIGEST(const TPM2B_DIGEST& value,
2396 TRUNKS_EXPORT TPM_RC Parse_TPM2B_DIGEST(std::string* buffer,
2403 TRUNKS_EXPORT TPM_RC Serialize_TPM2B_DATA(const TPM2B_DATA& value,
2406 TRUNKS_EXPORT TPM_RC Parse_TPM2B_DATA(std::string* buffer,
2413 TRUNKS_EXPORT TPM_RC Serialize_TPM2B_EVENT(const TPM2B_EVENT& value,
2416 TRUNKS_EXPORT TPM_RC Parse_TPM2B_EVENT(std::string* buffer,
2423 TRUNKS_EXPORT TPM_RC Serialize_TPM2B_MAX_BUFFER(const TPM2B_MAX_BUFFER& value,
2426 TRUNKS_EXPORT TPM_RC Parse_TPM2B_MAX_BUFFER(std::string* buffer,
2434 TRUNKS_EXPORT TPM_RC
2438 TRUNKS_EXPORT TPM_RC Parse_TPM2B_MAX_NV_BUFFER(std::string* buffer,
2447 TRUNKS_EXPORT TPM_RC Serialize_TPM2B_TIMEOUT(const TPM2B_TIMEOUT& value,
2450 TRUNKS_EXPORT TPM_RC Parse_TPM2B_TIMEOUT(std::string* buffer,
2457 TRUNKS_EXPORT TPM_RC Serialize_TPM2B_IV(const TPM2B_IV& value,
2460 TRUNKS_EXPORT TPM_RC Parse_TPM2B_IV(std::string* buffer,
2467 TRUNKS_EXPORT TPM_RC Serialize_TPM2B_NAME(const TPM2B_NAME& value,
2470 TRUNKS_EXPORT TPM_RC Parse_TPM2B_NAME(std::string* buffer,
2477 TRUNKS_EXPORT TPM_RC Serialize_TPMS_PCR_SELECT(const TPMS_PCR_SELECT& value,
2480 TRUNKS_EXPORT TPM_RC Parse_TPMS_PCR_SELECT(std::string* buffer,
2484 TRUNKS_EXPORT TPM_RC
2488 TRUNKS_EXPORT TPM_RC Parse_TPMS_PCR_SELECTION(std::string* buffer,
2492 TRUNKS_EXPORT TPM_RC Serialize_TPMT_TK_CREATION(const TPMT_TK_CREATION& value,
2495 TRUNKS_EXPORT TPM_RC Parse_TPMT_TK_CREATION(std::string* buffer,
2499 TRUNKS_EXPORT TPM_RC Serialize_TPMT_TK_VERIFIED(const TPMT_TK_VERIFIED& value,
2502 TRUNKS_EXPORT TPM_RC Parse_TPMT_TK_VERIFIED(std::string* buffer,
2506 TRUNKS_EXPORT TPM_RC Serialize_TPMT_TK_AUTH(const TPMT_TK_AUTH& value,
2509 TRUNKS_EXPORT TPM_RC Parse_TPMT_TK_AUTH(std::string* buffer,
2513 TRUNKS_EXPORT TPM_RC Serialize_TPMT_TK_HASHCHECK(const TPMT_TK_HASHCHECK& value,
2516 TRUNKS_EXPORT TPM_RC Parse_TPMT_TK_HASHCHECK(std::string* buffer,
2520 TRUNKS_EXPORT TPM_RC Serialize_TPMS_ALG_PROPERTY(const TPMS_ALG_PROPERTY& value,
2523 TRUNKS_EXPORT TPM_RC Parse_TPMS_ALG_PROPERTY(std::string* buffer,
2527 TRUNKS_EXPORT TPM_RC
2531 TRUNKS_EXPORT TPM_RC Parse_TPMS_TAGGED_PROPERTY(std::string* buffer,
2535 TRUNKS_EXPORT TPM_RC
2539 TRUNKS_EXPORT TPM_RC Parse_TPMS_TAGGED_PCR_SELECT(std::string* buffer,
2543 TRUNKS_EXPORT TPM_RC Serialize_TPML_CC(const TPML_CC& value,
2546 TRUNKS_EXPORT TPM_RC Parse_TPML_CC(std::string* buffer,
2550 TRUNKS_EXPORT TPM_RC Serialize_TPML_CCA(const TPML_CCA& value,
2553 TRUNKS_EXPORT TPM_RC Parse_TPML_CCA(std::string* buffer,
2557 TRUNKS_EXPORT TPM_RC Serialize_TPML_ALG(const TPML_ALG& value,
2560 TRUNKS_EXPORT TPM_RC Parse_TPML_ALG(std::string* buffer,
2564 TRUNKS_EXPORT TPM_RC Serialize_TPML_HANDLE(const TPML_HANDLE& value,
2567 TRUNKS_EXPORT TPM_RC Parse_TPML_HANDLE(std::string* buffer,
2571 TRUNKS_EXPORT TPM_RC Serialize_TPML_DIGEST(const TPML_DIGEST& value,
2574 TRUNKS_EXPORT TPM_RC Parse_TPML_DIGEST(std::string* buffer,
2578 TRUNKS_EXPORT TPM_RC
2582 TRUNKS_EXPORT TPM_RC Parse_TPML_DIGEST_VALUES(std::string* buffer,
2586 TRUNKS_EXPORT TPM_RC
2590 TRUNKS_EXPORT TPM_RC Parse_TPM2B_DIGEST_VALUES(std::string* buffer,
2599 TRUNKS_EXPORT TPM_RC
2603 TRUNKS_EXPORT TPM_RC Parse_TPML_PCR_SELECTION(std::string* buffer,
2607 TRUNKS_EXPORT TPM_RC Serialize_TPML_ALG_PROPERTY(const TPML_ALG_PROPERTY& value,
2610 TRUNKS_EXPORT TPM_RC Parse_TPML_ALG_PROPERTY(std::string* buffer,
2614 TRUNKS_EXPORT TPM_RC
2618 TRUNKS_EXPORT TPM_RC
2623 TRUNKS_EXPORT TPM_RC
2627 TRUNKS_EXPORT TPM_RC
2632 TRUNKS_EXPORT TPM_RC Serialize_TPML_ECC_CURVE(const TPML_ECC_CURVE& value,
2635 TRUNKS_EXPORT TPM_RC Parse_TPML_ECC_CURVE(std::string* buffer,
2639 TRUNKS_EXPORT TPM_RC
2643 TRUNKS_EXPORT TPM_RC Parse_TPMS_CAPABILITY_DATA(std::string* buffer,
2647 TRUNKS_EXPORT TPM_RC Serialize_TPMS_CLOCK_INFO(const TPMS_CLOCK_INFO& value,
2650 TRUNKS_EXPORT TPM_RC Parse_TPMS_CLOCK_INFO(std::string* buffer,
2654 TRUNKS_EXPORT TPM_RC Serialize_TPMS_TIME_INFO(const TPMS_TIME_INFO& value,
2657 TRUNKS_EXPORT TPM_RC Parse_TPMS_TIME_INFO(std::string* buffer,
2661 TRUNKS_EXPORT TPM_RC
2665 TRUNKS_EXPORT TPM_RC Parse_TPMS_TIME_ATTEST_INFO(std::string* buffer,
2669 TRUNKS_EXPORT TPM_RC Serialize_TPMS_CERTIFY_INFO(const TPMS_CERTIFY_INFO& value,
2672 TRUNKS_EXPORT TPM_RC Parse_TPMS_CERTIFY_INFO(std::string* buffer,
2676 TRUNKS_EXPORT TPM_RC Serialize_TPMS_QUOTE_INFO(const TPMS_QUOTE_INFO& value,
2679 TRUNKS_EXPORT TPM_RC Parse_TPMS_QUOTE_INFO(std::string* buffer,
2683 TRUNKS_EXPORT TPM_RC
2687 TRUNKS_EXPORT TPM_RC
2692 TRUNKS_EXPORT TPM_RC
2696 TRUNKS_EXPORT TPM_RC
2701 TRUNKS_EXPORT TPM_RC
2705 TRUNKS_EXPORT TPM_RC Parse_TPMS_CREATION_INFO(std::string* buffer,
2709 TRUNKS_EXPORT TPM_RC
2713 TRUNKS_EXPORT TPM_RC Parse_TPMS_NV_CERTIFY_INFO(std::string* buffer,
2717 TRUNKS_EXPORT TPM_RC Serialize_TPMS_ATTEST(const TPMS_ATTEST& value,
2720 TRUNKS_EXPORT TPM_RC Parse_TPMS_ATTEST(std::string* buffer,
2724 TRUNKS_EXPORT TPM_RC Serialize_TPM2B_ATTEST(const TPM2B_ATTEST& value,
2727 TRUNKS_EXPORT TPM_RC Parse_TPM2B_ATTEST(std::string* buffer,
2734 TRUNKS_EXPORT TPM_RC Serialize_TPMS_AUTH_COMMAND(const TPMS_AUTH_COMMAND& value,
2737 TRUNKS_EXPORT TPM_RC Parse_TPMS_AUTH_COMMAND(std::string* buffer,
2741 TRUNKS_EXPORT TPM_RC
2745 TRUNKS_EXPORT TPM_RC Parse_TPMS_AUTH_RESPONSE(std::string* buffer,
2749 TRUNKS_EXPORT TPM_RC Serialize_TPMT_SYM_DEF(const TPMT_SYM_DEF& value,
2752 TRUNKS_EXPORT TPM_RC Parse_TPMT_SYM_DEF(std::string* buffer,
2756 TRUNKS_EXPORT TPM_RC
2760 TRUNKS_EXPORT TPM_RC Parse_TPMT_SYM_DEF_OBJECT(std::string* buffer,
2764 TRUNKS_EXPORT TPM_RC Serialize_TPM2B_SYM_KEY(const TPM2B_SYM_KEY& value,
2767 TRUNKS_EXPORT TPM_RC Parse_TPM2B_SYM_KEY(std::string* buffer,
2774 TRUNKS_EXPORT TPM_RC
2778 TRUNKS_EXPORT TPM_RC Parse_TPMS_SYMCIPHER_PARMS(std::string* buffer,
2782 TRUNKS_EXPORT TPM_RC
2786 TRUNKS_EXPORT TPM_RC Parse_TPM2B_SENSITIVE_DATA(std::string* buffer,
2795 TRUNKS_EXPORT TPM_RC
2799 TRUNKS_EXPORT TPM_RC Parse_TPMS_SENSITIVE_CREATE(std::string* buffer,
2803 TRUNKS_EXPORT TPM_RC
2807 TRUNKS_EXPORT TPM_RC Parse_TPM2B_SENSITIVE_CREATE(std::string* buffer,
2814 TRUNKS_EXPORT TPM_RC
2818 TRUNKS_EXPORT TPM_RC Parse_TPMS_SCHEME_SIGHASH(std::string* buffer,
2822 TRUNKS_EXPORT TPM_RC Serialize_TPMS_SCHEME_XOR(const TPMS_SCHEME_XOR& value,
2825 TRUNKS_EXPORT TPM_RC Parse_TPMS_SCHEME_XOR(std::string* buffer,
2829 TRUNKS_EXPORT TPM_RC
2833 TRUNKS_EXPORT TPM_RC Parse_TPMT_KEYEDHASH_SCHEME(std::string* buffer,
2837 TRUNKS_EXPORT TPM_RC Serialize_TPMS_SCHEME_ECDAA(const TPMS_SCHEME_ECDAA& value,
2840 TRUNKS_EXPORT TPM_RC Parse_TPMS_SCHEME_ECDAA(std::string* buffer,
2844 TRUNKS_EXPORT TPM_RC Serialize_TPMT_SIG_SCHEME(const TPMT_SIG_SCHEME& value,
2847 TRUNKS_EXPORT TPM_RC Parse_TPMT_SIG_SCHEME(std::string* buffer,
2851 TRUNKS_EXPORT TPM_RC Serialize_TPMS_SCHEME_OAEP(const TPMS_SCHEME_OAEP& value,
2854 TRUNKS_EXPORT TPM_RC Parse_TPMS_SCHEME_OAEP(std::string* buffer,
2858 TRUNKS_EXPORT TPM_RC Serialize_TPMS_SCHEME_ECDH(const TPMS_SCHEME_ECDH& value,
2861 TRUNKS_EXPORT TPM_RC Parse_TPMS_SCHEME_ECDH(std::string* buffer,
2865 TRUNKS_EXPORT TPM_RC Serialize_TPMS_SCHEME_MGF1(const TPMS_SCHEME_MGF1& value,
2868 TRUNKS_EXPORT TPM_RC Parse_TPMS_SCHEME_MGF1(std::string* buffer,
2872 TRUNKS_EXPORT TPM_RC
2876 TRUNKS_EXPORT TPM_RC
2881 TRUNKS_EXPORT TPM_RC Serialize_TPMS_SCHEME_KDF2(const TPMS_SCHEME_KDF2& value,
2884 TRUNKS_EXPORT TPM_RC Parse_TPMS_SCHEME_KDF2(std::string* buffer,
2888 TRUNKS_EXPORT TPM_RC
2892 TRUNKS_EXPORT TPM_RC
2897 TRUNKS_EXPORT TPM_RC Serialize_TPMT_KDF_SCHEME(const TPMT_KDF_SCHEME& value,
2900 TRUNKS_EXPORT TPM_RC Parse_TPMT_KDF_SCHEME(std::string* buffer,
2904 TRUNKS_EXPORT TPM_RC Serialize_TPMT_ASYM_SCHEME(const TPMT_ASYM_SCHEME& value,
2907 TRUNKS_EXPORT TPM_RC Parse_TPMT_ASYM_SCHEME(std::string* buffer,
2911 TRUNKS_EXPORT TPM_RC Serialize_TPMT_RSA_SCHEME(const TPMT_RSA_SCHEME& value,
2914 TRUNKS_EXPORT TPM_RC Parse_TPMT_RSA_SCHEME(std::string* buffer,
2918 TRUNKS_EXPORT TPM_RC Serialize_TPMT_RSA_DECRYPT(const TPMT_RSA_DECRYPT& value,
2921 TRUNKS_EXPORT TPM_RC Parse_TPMT_RSA_DECRYPT(std::string* buffer,
2925 TRUNKS_EXPORT TPM_RC
2929 TRUNKS_EXPORT TPM_RC Parse_TPM2B_PUBLIC_KEY_RSA(std::string* buffer,
2938 TRUNKS_EXPORT TPM_RC
2942 TRUNKS_EXPORT TPM_RC Parse_TPM2B_PRIVATE_KEY_RSA(std::string* buffer,
2951 TRUNKS_EXPORT TPM_RC
2955 TRUNKS_EXPORT TPM_RC Parse_TPM2B_ECC_PARAMETER(std::string* buffer,
2964 TRUNKS_EXPORT TPM_RC Serialize_TPMS_ECC_POINT(const TPMS_ECC_POINT& value,
2967 TRUNKS_EXPORT TPM_RC Parse_TPMS_ECC_POINT(std::string* buffer,
2971 TRUNKS_EXPORT TPM_RC Serialize_TPM2B_ECC_POINT(const TPM2B_ECC_POINT& value,
2974 TRUNKS_EXPORT TPM_RC Parse_TPM2B_ECC_POINT(std::string* buffer,
2980 TRUNKS_EXPORT TPM_RC Serialize_TPMT_ECC_SCHEME(const TPMT_ECC_SCHEME& value,
2983 TRUNKS_EXPORT TPM_RC Parse_TPMT_ECC_SCHEME(std::string* buffer,
2987 TRUNKS_EXPORT TPM_RC
2991 TRUNKS_EXPORT TPM_RC
2996 TRUNKS_EXPORT TPM_RC
3000 TRUNKS_EXPORT TPM_RC Parse_TPMS_SIGNATURE_RSASSA(std::string* buffer,
3004 TRUNKS_EXPORT TPM_RC
3008 TRUNKS_EXPORT TPM_RC Parse_TPMS_SIGNATURE_RSAPSS(std::string* buffer,
3012 TRUNKS_EXPORT TPM_RC
3016 TRUNKS_EXPORT TPM_RC Parse_TPMS_SIGNATURE_ECDSA(std::string* buffer,
3020 TRUNKS_EXPORT TPM_RC Serialize_TPMT_SIGNATURE(const TPMT_SIGNATURE& value,
3023 TRUNKS_EXPORT TPM_RC Parse_TPMT_SIGNATURE(std::string* buffer,
3027 TRUNKS_EXPORT TPM_RC
3031 TRUNKS_EXPORT TPM_RC Parse_TPM2B_ENCRYPTED_SECRET(std::string* buffer,
3040 TRUNKS_EXPORT TPM_RC
3044 TRUNKS_EXPORT TPM_RC Parse_TPMS_KEYEDHASH_PARMS(std::string* buffer,
3048 TRUNKS_EXPORT TPM_RC Serialize_TPMS_ASYM_PARMS(const TPMS_ASYM_PARMS& value,
3051 TRUNKS_EXPORT TPM_RC Parse_TPMS_ASYM_PARMS(std::string* buffer,
3055 TRUNKS_EXPORT TPM_RC Serialize_TPMS_RSA_PARMS(const TPMS_RSA_PARMS& value,
3058 TRUNKS_EXPORT TPM_RC Parse_TPMS_RSA_PARMS(std::string* buffer,
3062 TRUNKS_EXPORT TPM_RC Serialize_TPMS_ECC_PARMS(const TPMS_ECC_PARMS& value,
3065 TRUNKS_EXPORT TPM_RC Parse_TPMS_ECC_PARMS(std::string* buffer,
3069 TRUNKS_EXPORT TPM_RC Serialize_TPMT_PUBLIC_PARMS(const TPMT_PUBLIC_PARMS& value,
3072 TRUNKS_EXPORT TPM_RC Parse_TPMT_PUBLIC_PARMS(std::string* buffer,
3076 TRUNKS_EXPORT TPM_RC Serialize_TPMT_PUBLIC(const TPMT_PUBLIC& value,
3079 TRUNKS_EXPORT TPM_RC Parse_TPMT_PUBLIC(std::string* buffer,
3083 TRUNKS_EXPORT TPM_RC Serialize_TPM2B_PUBLIC(const TPM2B_PUBLIC& value,
3086 TRUNKS_EXPORT TPM_RC Parse_TPM2B_PUBLIC(std::string* buffer,
3092 TRUNKS_EXPORT TPM_RC Serialize_TPM2B_PRIVATE_VENDOR_SPECIFIC(
3096 TRUNKS_EXPORT TPM_RC
3106 TRUNKS_EXPORT TPM_RC Serialize_TPMT_SENSITIVE(const TPMT_SENSITIVE& value,
3109 TRUNKS_EXPORT TPM_RC Parse_TPMT_SENSITIVE(std::string* buffer,
3113 TRUNKS_EXPORT TPM_RC Serialize_TPM2B_SENSITIVE(const TPM2B_SENSITIVE& value,
3116 TRUNKS_EXPORT TPM_RC Parse_TPM2B_SENSITIVE(std::string* buffer,
3122 TRUNKS_EXPORT TPM_RC Serialize__PRIVATE(const _PRIVATE& value,
3125 TRUNKS_EXPORT TPM_RC Parse__PRIVATE(std::string* buffer,
3129 TRUNKS_EXPORT TPM_RC Serialize_TPM2B_PRIVATE(const TPM2B_PRIVATE& value,
3132 TRUNKS_EXPORT TPM_RC Parse_TPM2B_PRIVATE(std::string* buffer,
3139 TRUNKS_EXPORT TPM_RC Serialize__ID_OBJECT(const _ID_OBJECT& value,
3142 TRUNKS_EXPORT TPM_RC Parse__ID_OBJECT(std::string* buffer,
3146 TRUNKS_EXPORT TPM_RC Serialize_TPM2B_ID_OBJECT(const TPM2B_ID_OBJECT& value,
3149 TRUNKS_EXPORT TPM_RC Parse_TPM2B_ID_OBJECT(std::string* buffer,
3157 TRUNKS_EXPORT TPM_RC Serialize_TPMS_NV_PUBLIC(const TPMS_NV_PUBLIC& value,
3160 TRUNKS_EXPORT TPM_RC Parse_TPMS_NV_PUBLIC(std::string* buffer,
3164 TRUNKS_EXPORT TPM_RC Serialize_TPM2B_NV_PUBLIC(const TPM2B_NV_PUBLIC& value,
3167 TRUNKS_EXPORT TPM_RC Parse_TPM2B_NV_PUBLIC(std::string* buffer,
3173 TRUNKS_EXPORT TPM_RC
3177 TRUNKS_EXPORT TPM_RC
3187 TRUNKS_EXPORT TPM_RC Serialize_TPMS_CONTEXT_DATA(const TPMS_CONTEXT_DATA& value,
3190 TRUNKS_EXPORT TPM_RC Parse_TPMS_CONTEXT_DATA(std::string* buffer,
3194 TRUNKS_EXPORT TPM_RC
3198 TRUNKS_EXPORT TPM_RC Parse_TPM2B_CONTEXT_DATA(std::string* buffer,
3207 TRUNKS_EXPORT TPM_RC Serialize_TPMS_CONTEXT(const TPMS_CONTEXT& value,
3210 TRUNKS_EXPORT TPM_RC Parse_TPMS_CONTEXT(std::string* buffer,
3214 TRUNKS_EXPORT TPM_RC
3218 TRUNKS_EXPORT TPM_RC Parse_TPMS_CREATION_DATA(std::string* buffer,
3222 TRUNKS_EXPORT TPM_RC
3226 TRUNKS_EXPORT TPM_RC Parse_TPM2B_CREATION_DATA(std::string* buffer,
3233 TRUNKS_EXPORT TPM_RC Serialize_TPMU_HA(const TPMU_HA& value,
3236 TRUNKS_EXPORT TPM_RC Parse_TPMU_HA(std::string* buffer,
3240 TRUNKS_EXPORT TPM_RC Serialize_TPMU_NAME(const TPMU_NAME& value,
3243 TRUNKS_EXPORT TPM_RC Parse_TPMU_NAME(std::string* buffer,
3247 TRUNKS_EXPORT TPM_RC Serialize_TPMU_CAPABILITIES(const TPMU_CAPABILITIES& value,
3250 TRUNKS_EXPORT TPM_RC Parse_TPMU_CAPABILITIES(std::string* buffer,
3254 TRUNKS_EXPORT TPM_RC Serialize_TPMU_ATTEST(const TPMU_ATTEST& value,
3257 TRUNKS_EXPORT TPM_RC Parse_TPMU_ATTEST(std::string* buffer,
3261 TRUNKS_EXPORT TPM_RC Serialize_TPMU_SYM_KEY_BITS(const TPMU_SYM_KEY_BITS& value,
3264 TRUNKS_EXPORT TPM_RC Parse_TPMU_SYM_KEY_BITS(std::string* buffer,
3268 TRUNKS_EXPORT TPM_RC Serialize_TPMU_SYM_MODE(const TPMU_SYM_MODE& value,
3271 TRUNKS_EXPORT TPM_RC Parse_TPMU_SYM_MODE(std::string* buffer,
3275 TRUNKS_EXPORT TPM_RC
3279 TRUNKS_EXPORT TPM_RC Parse_TPMU_SCHEME_KEYEDHASH(std::string* buffer,
3283 TRUNKS_EXPORT TPM_RC Serialize_TPMU_SIG_SCHEME(const TPMU_SIG_SCHEME& value,
3286 TRUNKS_EXPORT TPM_RC Parse_TPMU_SIG_SCHEME(std::string* buffer,
3290 TRUNKS_EXPORT TPM_RC Serialize_TPMU_KDF_SCHEME(const TPMU_KDF_SCHEME& value,
3293 TRUNKS_EXPORT TPM_RC Parse_TPMU_KDF_SCHEME(std::string* buffer,
3297 TRUNKS_EXPORT TPM_RC Serialize_TPMU_ASYM_SCHEME(const TPMU_ASYM_SCHEME& value,
3300 TRUNKS_EXPORT TPM_RC Parse_TPMU_ASYM_SCHEME(std::string* buffer,
3304 TRUNKS_EXPORT TPM_RC Serialize_TPMU_SIGNATURE(const TPMU_SIGNATURE& value,
3307 TRUNKS_EXPORT TPM_RC Parse_TPMU_SIGNATURE(std::string* buffer,
3311 TRUNKS_EXPORT TPM_RC
3315 TRUNKS_EXPORT TPM_RC Parse_TPMU_ENCRYPTED_SECRET(std::string* buffer,
3319 TRUNKS_EXPORT TPM_RC Serialize_TPMU_PUBLIC_ID(const TPMU_PUBLIC_ID& value,
3322 TRUNKS_EXPORT TPM_RC Parse_TPMU_PUBLIC_ID(std::string* buffer,
3326 TRUNKS_EXPORT TPM_RC Serialize_TPMU_PUBLIC_PARMS(const TPMU_PUBLIC_PARMS& value,
3329 TRUNKS_EXPORT TPM_RC Parse_TPMU_PUBLIC_PARMS(std::string* buffer,
3333 TRUNKS_EXPORT TPM_RC
3337 TRUNKS_EXPORT TPM_RC
3342 TRUNKS_EXPORT TPM_RC Serialize_TPMU_SYM_DETAILS(const TPMU_SYM_DETAILS& value,
3345 TRUNKS_EXPORT TPM_RC Parse_TPMU_SYM_DETAILS(std::string* buffer,
3355 typedef base::Callback<void(TPM_RC response_code)> StartupResponse;
3356 static TPM_RC SerializeCommand_Startup(
3360 static TPM_RC ParseResponse_Startup(
3366 virtual TPM_RC StartupSync(const TPM_SU& startup_type,
3368 typedef base::Callback<void(TPM_RC response_code)> ShutdownResponse;
3369 static TPM_RC SerializeCommand_Shutdown(
3373 static TPM_RC ParseResponse_Shutdown(
3379 virtual TPM_RC ShutdownSync(const TPM_SU& shutdown_type,
3381 typedef base::Callback<void(TPM_RC response_code)> SelfTestResponse;
3382 static TPM_RC SerializeCommand_SelfTest(
3386 static TPM_RC ParseResponse_SelfTest(
3392 virtual TPM_RC SelfTestSync(const TPMI_YES_NO& full_test,
3394 typedef base::Callback<void(TPM_RC response_code, const TPML_ALG& to_do_list)>
3396 static TPM_RC SerializeCommand_IncrementalSelfTest(
3400 static TPM_RC ParseResponse_IncrementalSelfTest(
3408 virtual TPM_RC IncrementalSelfTestSync(
3412 typedef base::Callback<void(TPM_RC response_code,
3414 const TPM_RC& test_result)>
3416 static TPM_RC SerializeCommand_GetTestResult(
3419 static TPM_RC ParseResponse_GetTestResult(
3422 TPM_RC* test_result,
3426 virtual TPM_RC GetTestResultSync(
3428 TPM_RC* test_result,
3430 typedef base::Callback<void(TPM_RC response_code,
3434 static TPM_RC SerializeCommand_StartAuthSession(
3446 static TPM_RC ParseResponse_StartAuthSession(
3462 virtual TPM_RC StartAuthSessionSync(
3475 typedef base::Callback<void(TPM_RC response_code)> PolicyRestartResponse;
3476 static TPM_RC SerializeCommand_PolicyRestart(
3481 static TPM_RC ParseResponse_PolicyRestart(
3488 virtual TPM_RC PolicyRestartSync(
3492 typedef base::Callback<void(TPM_RC response_code,
3499 static TPM_RC SerializeCommand_Create(
3508 static TPM_RC ParseResponse_Create(
3524 virtual TPM_RC CreateSync(const TPMI_DH_OBJECT& parent_handle,
3536 typedef base::Callback<void(TPM_RC response_code,
3540 static TPM_RC SerializeCommand_Load(
3547 static TPM_RC ParseResponse_Load(
3558 virtual TPM_RC LoadSync(const TPMI_DH_OBJECT& parent_handle,
3565 typedef base::Callback<void(TPM_RC response_code,
3569 static TPM_RC SerializeCommand_LoadExternal(
3575 static TPM_RC ParseResponse_LoadExternal(
3585 virtual TPM_RC LoadExternalSync(
3592 typedef base::Callback<void(TPM_RC response_code,
3597 static TPM_RC SerializeCommand_ReadPublic(
3602 static TPM_RC ParseResponse_ReadPublic(
3612 virtual TPM_RC ReadPublicSync(const TPMI_DH_OBJECT& object_handle,
3618 typedef base::Callback<void(TPM_RC response_code,
3621 static TPM_RC SerializeCommand_ActivateCredential(
3630 static TPM_RC ParseResponse_ActivateCredential(
3642 virtual TPM_RC ActivateCredentialSync(
3651 typedef base::Callback<void(TPM_RC response_code,
3655 static TPM_RC SerializeCommand_MakeCredential(
3662 static TPM_RC ParseResponse_MakeCredential(
3673 virtual TPM_RC MakeCredentialSync(
3681 typedef base::Callback<void(TPM_RC response_code,
3684 static TPM_RC SerializeCommand_Unseal(
3689 static TPM_RC ParseResponse_Unseal(
3697 virtual TPM_RC UnsealSync(const TPMI_DH_OBJECT& item_handle,
3701 typedef base::Callback<void(TPM_RC response_code,
3704 static TPM_RC SerializeCommand_ObjectChangeAuth(
3712 static TPM_RC ParseResponse_ObjectChangeAuth(
3723 virtual TPM_RC ObjectChangeAuthSync(
3731 typedef base::Callback<void(TPM_RC response_code,
3736 static TPM_RC SerializeCommand_Duplicate(
3745 static TPM_RC ParseResponse_Duplicate(
3759 virtual TPM_RC DuplicateSync(const TPMI_DH_OBJECT& object_handle,
3769 typedef base::Callback<void(TPM_RC response_code,
3773 static TPM_RC SerializeCommand_Rewrap(
3783 static TPM_RC ParseResponse_Rewrap(
3797 virtual TPM_RC RewrapSync(const TPMI_DH_OBJECT& old_parent,
3807 typedef base::Callback<void(TPM_RC response_code,
3810 static TPM_RC SerializeCommand_Import(
3820 static TPM_RC ParseResponse_Import(
3833 virtual TPM_RC ImportSync(const TPMI_DH_OBJECT& parent_handle,
3842 typedef base::Callback<void(TPM_RC response_code,
3845 static TPM_RC SerializeCommand_RSA_Encrypt(
3853 static TPM_RC ParseResponse_RSA_Encrypt(
3864 virtual TPM_RC RSA_EncryptSync(const TPMI_DH_OBJECT& key_handle,
3871 typedef base::Callback<void(TPM_RC response_code,
3874 static TPM_RC SerializeCommand_RSA_Decrypt(
3882 static TPM_RC ParseResponse_RSA_Decrypt(
3893 virtual TPM_RC RSA_DecryptSync(const TPMI_DH_OBJECT& key_handle,
3900 typedef base::Callback<void(TPM_RC response_code,
3904 static TPM_RC SerializeCommand_ECDH_KeyGen(
3909 static TPM_RC ParseResponse_ECDH_KeyGen(
3918 virtual TPM_RC ECDH_KeyGenSync(const TPMI_DH_OBJECT& key_handle,
3923 typedef base::Callback<void(TPM_RC response_code,
3926 static TPM_RC SerializeCommand_ECDH_ZGen(
3932 static TPM_RC ParseResponse_ECDH_ZGen(
3941 virtual TPM_RC ECDH_ZGenSync(const TPMI_DH_OBJECT& key_handle,
3946 typedef base::Callback<void(TPM_RC response_code,
3949 static TPM_RC SerializeCommand_ECC_Parameters(
3953 static TPM_RC ParseResponse_ECC_Parameters(
3960 virtual TPM_RC ECC_ParametersSync(
3964 typedef base::Callback<void(TPM_RC response_code,
3968 static TPM_RC SerializeCommand_ZGen_2Phase(
3977 static TPM_RC ParseResponse_ZGen_2Phase(
3990 virtual TPM_RC ZGen_2PhaseSync(const TPMI_DH_OBJECT& key_a,
3999 typedef base::Callback<void(TPM_RC response_code,
4003 static TPM_RC SerializeCommand_EncryptDecrypt(
4012 static TPM_RC ParseResponse_EncryptDecrypt(
4025 virtual TPM_RC EncryptDecryptSync(
4035 typedef base::Callback<void(TPM_RC response_code,
4039 static TPM_RC SerializeCommand_Hash(
4045 static TPM_RC ParseResponse_Hash(
4055 virtual TPM_RC HashSync(const TPM2B_MAX_BUFFER& data,
4061 typedef base::Callback<void(TPM_RC response_code,
4064 static TPM_RC SerializeCommand_HMAC(
4071 static TPM_RC ParseResponse_HMAC(
4081 virtual TPM_RC HMACSync(const TPMI_DH_OBJECT& handle,
4087 typedef base::Callback<void(TPM_RC response_code,
4090 static TPM_RC SerializeCommand_GetRandom(
4094 static TPM_RC ParseResponse_GetRandom(
4101 virtual TPM_RC GetRandomSync(const UINT16& bytes_requested,
4104 typedef base::Callback<void(TPM_RC response_code)> StirRandomResponse;
4105 static TPM_RC SerializeCommand_StirRandom(
4109 static TPM_RC ParseResponse_StirRandom(
4115 virtual TPM_RC StirRandomSync(const TPM2B_SENSITIVE_DATA& in_data,
4117 typedef base::Callback<void(TPM_RC response_code,
4120 static TPM_RC SerializeCommand_HMAC_Start(
4127 static TPM_RC ParseResponse_HMAC_Start(
4137 virtual TPM_RC HMAC_StartSync(const TPMI_DH_OBJECT& handle,
4143 typedef base::Callback<void(TPM_RC response_code,
4146 static TPM_RC SerializeCommand_HashSequenceStart(
4151 static TPM_RC ParseResponse_HashSequenceStart(
4159 virtual TPM_RC HashSequenceStartSync(
4164 typedef base::Callback<void(TPM_RC response_code)> SequenceUpdateResponse;
4165 static TPM_RC SerializeCommand_SequenceUpdate(
4171 static TPM_RC ParseResponse_SequenceUpdate(
4179 virtual TPM_RC SequenceUpdateSync(
4184 typedef base::Callback<void(TPM_RC response_code,
4188 static TPM_RC SerializeCommand_SequenceComplete(
4195 static TPM_RC ParseResponse_SequenceComplete(
4206 virtual TPM_RC SequenceCompleteSync(
4214 typedef base::Callback<void(TPM_RC response_code,
4217 static TPM_RC SerializeCommand_EventSequenceComplete(
4225 static TPM_RC ParseResponse_EventSequenceComplete(
4237 virtual TPM_RC EventSequenceCompleteSync(
4245 typedef base::Callback<void(TPM_RC response_code,
4249 static TPM_RC SerializeCommand_Certify(
4258 static TPM_RC ParseResponse_Certify(
4271 virtual TPM_RC CertifySync(const TPMI_DH_OBJECT& object_handle,
4280 typedef base::Callback<void(TPM_RC response_code,
4284 static TPM_RC SerializeCommand_CertifyCreation(
4295 static TPM_RC ParseResponse_CertifyCreation(
4310 virtual TPM_RC CertifyCreationSync(
4322 typedef base::Callback<void(TPM_RC response_code,
4326 static TPM_RC SerializeCommand_Quote(
4334 static TPM_RC ParseResponse_Quote(
4346 virtual TPM_RC QuoteSync(const TPMI_DH_OBJECT& sign_handle,
4354 typedef base::Callback<void(TPM_RC response_code,
4358 static TPM_RC SerializeCommand_GetSessionAuditDigest(
4369 static TPM_RC ParseResponse_GetSessionAuditDigest(
4385 virtual TPM_RC GetSessionAuditDigestSync(
4397 typedef base::Callback<void(TPM_RC response_code,
4401 static TPM_RC SerializeCommand_GetCommandAuditDigest(
4410 static TPM_RC ParseResponse_GetCommandAuditDigest(
4424 virtual TPM_RC GetCommandAuditDigestSync(
4434 typedef base::Callback<void(TPM_RC response_code,
4438 static TPM_RC SerializeCommand_GetTime(
4447 static TPM_RC ParseResponse_GetTime(
4460 virtual TPM_RC GetTimeSync(const TPMI_RH_ENDORSEMENT& privacy_admin_handle,
4469 typedef base::Callback<void(TPM_RC response_code,
4476 static TPM_RC SerializeCommand_Commit(
4485 static TPM_RC ParseResponse_Commit(
4501 virtual TPM_RC CommitSync(const TPMI_DH_OBJECT& sign_handle,
4513 typedef base::Callback<void(TPM_RC response_code,
4518 static TPM_RC SerializeCommand_EC_Ephemeral(
4523 static TPM_RC ParseResponse_EC_Ephemeral(
4533 virtual TPM_RC EC_EphemeralSync(
4540 typedef base::Callback<void(TPM_RC response_code,
4543 static TPM_RC SerializeCommand_VerifySignature(
4550 static TPM_RC ParseResponse_VerifySignature(
4560 virtual TPM_RC VerifySignatureSync(
4567 typedef base::Callback<void(TPM_RC response_code,
4570 static TPM_RC SerializeCommand_Sign(
4578 static TPM_RC ParseResponse_Sign(
4589 virtual TPM_RC SignSync(const TPMI_DH_OBJECT& key_handle,
4596 typedef base::Callback<void(TPM_RC response_code)>
4598 static TPM_RC SerializeCommand_SetCommandCodeAuditStatus(
4606 static TPM_RC ParseResponse_SetCommandCodeAuditStatus(
4617 virtual TPM_RC SetCommandCodeAuditStatusSync(
4624 typedef base::Callback<void(TPM_RC response_code)> PCR_ExtendResponse;
4625 static TPM_RC SerializeCommand_PCR_Extend(
4631 static TPM_RC ParseResponse_PCR_Extend(
4639 virtual TPM_RC PCR_ExtendSync(const TPMI_DH_PCR& pcr_handle,
4643 typedef base::Callback<void(TPM_RC response_code,
4646 static TPM_RC SerializeCommand_PCR_Event(
4652 static TPM_RC ParseResponse_PCR_Event(
4661 virtual TPM_RC PCR_EventSync(const TPMI_DH_PCR& pcr_handle,
4666 typedef base::Callback<void(TPM_RC response_code,
4671 static TPM_RC SerializeCommand_PCR_Read(
4675 static TPM_RC ParseResponse_PCR_Read(
4684 virtual TPM_RC PCR_ReadSync(const TPML_PCR_SELECTION& pcr_selection_in,
4689 typedef base::Callback<void(TPM_RC response_code,
4695 static TPM_RC SerializeCommand_PCR_Allocate(
4701 static TPM_RC ParseResponse_PCR_Allocate(
4713 virtual TPM_RC PCR_AllocateSync(
4722 typedef base::Callback<void(TPM_RC response_code)> PCR_SetAuthPolicyResponse;
4723 static TPM_RC SerializeCommand_PCR_SetAuthPolicy(
4732 static TPM_RC ParseResponse_PCR_SetAuthPolicy(
4743 virtual TPM_RC PCR_SetAuthPolicySync(
4751 typedef base::Callback<void(TPM_RC response_code)> PCR_SetAuthValueResponse;
4752 static TPM_RC SerializeCommand_PCR_SetAuthValue(
4758 static TPM_RC ParseResponse_PCR_SetAuthValue(
4766 virtual TPM_RC PCR_SetAuthValueSync(
4771 typedef base::Callback<void(TPM_RC response_code)> PCR_ResetResponse;
4772 static TPM_RC SerializeCommand_PCR_Reset(
4777 static TPM_RC ParseResponse_PCR_Reset(
4784 virtual TPM_RC PCR_ResetSync(const TPMI_DH_PCR& pcr_handle,
4787 typedef base::Callback<void(TPM_RC response_code,
4791 static TPM_RC SerializeCommand_PolicySigned(
4803 static TPM_RC ParseResponse_PolicySigned(
4819 virtual TPM_RC PolicySignedSync(
4832 typedef base::Callback<void(TPM_RC response_code,
4836 static TPM_RC SerializeCommand_PolicySecret(
4847 static TPM_RC ParseResponse_PolicySecret(
4862 virtual TPM_RC PolicySecretSync(
4874 typedef base::Callback<void(TPM_RC response_code)> PolicyTicketResponse;
4875 static TPM_RC SerializeCommand_PolicyTicket(
4885 static TPM_RC ParseResponse_PolicyTicket(
4897 virtual TPM_RC PolicyTicketSync(
4906 typedef base::Callback<void(TPM_RC response_code)> PolicyORResponse;
4907 static TPM_RC SerializeCommand_PolicyOR(
4913 static TPM_RC ParseResponse_PolicyOR(
4921 virtual TPM_RC PolicyORSync(const TPMI_SH_POLICY& policy_session,
4925 typedef base::Callback<void(TPM_RC response_code)> PolicyPCRResponse;
4926 static TPM_RC SerializeCommand_PolicyPCR(
4933 static TPM_RC ParseResponse_PolicyPCR(
4942 virtual TPM_RC PolicyPCRSync(const TPMI_SH_POLICY& policy_session,
4947 typedef base::Callback<void(TPM_RC response_code)> PolicyLocalityResponse;
4948 static TPM_RC SerializeCommand_PolicyLocality(
4954 static TPM_RC ParseResponse_PolicyLocality(
4962 virtual TPM_RC PolicyLocalitySync(
4967 typedef base::Callback<void(TPM_RC response_code)> PolicyNVResponse;
4968 static TPM_RC SerializeCommand_PolicyNV(
4980 static TPM_RC ParseResponse_PolicyNV(
4994 virtual TPM_RC PolicyNVSync(const TPMI_RH_NV_AUTH& auth_handle,
5004 typedef base::Callback<void(TPM_RC response_code)> PolicyCounterTimerResponse;
5005 static TPM_RC SerializeCommand_PolicyCounterTimer(
5013 static TPM_RC ParseResponse_PolicyCounterTimer(
5023 virtual TPM_RC PolicyCounterTimerSync(
5030 typedef base::Callback<void(TPM_RC response_code)> PolicyCommandCodeResponse;
5031 static TPM_RC SerializeCommand_PolicyCommandCode(
5037 static TPM_RC ParseResponse_PolicyCommandCode(
5045 virtual TPM_RC PolicyCommandCodeSync(
5050 typedef base::Callback<void(TPM_RC response_code)>
5052 static TPM_RC SerializeCommand_PolicyPhysicalPresence(
5057 static TPM_RC ParseResponse_PolicyPhysicalPresence(
5065 virtual TPM_RC PolicyPhysicalPresenceSync(
5069 typedef base::Callback<void(TPM_RC response_code)> PolicyCpHashResponse;
5070 static TPM_RC SerializeCommand_PolicyCpHash(
5076 static TPM_RC ParseResponse_PolicyCpHash(
5084 virtual TPM_RC PolicyCpHashSync(
5089 typedef base::Callback<void(TPM_RC response_code)> PolicyNameHashResponse;
5090 static TPM_RC SerializeCommand_PolicyNameHash(
5096 static TPM_RC ParseResponse_PolicyNameHash(
5104 virtual TPM_RC PolicyNameHashSync(
5109 typedef base::Callback<void(TPM_RC response_code)>
5111 static TPM_RC SerializeCommand_PolicyDuplicationSelect(
5119 static TPM_RC ParseResponse_PolicyDuplicationSelect(
5130 virtual TPM_RC PolicyDuplicationSelectSync(
5137 typedef base::Callback<void(TPM_RC response_code)> PolicyAuthorizeResponse;
5138 static TPM_RC SerializeCommand_PolicyAuthorize(
5147 static TPM_RC ParseResponse_PolicyAuthorize(
5158 virtual TPM_RC PolicyAuthorizeSync(
5166 typedef base::Callback<void(TPM_RC response_code)> PolicyAuthValueResponse;
5167 static TPM_RC SerializeCommand_PolicyAuthValue(
5172 static TPM_RC ParseResponse_PolicyAuthValue(
5179 virtual TPM_RC PolicyAuthValueSync(
5183 typedef base::Callback<void(TPM_RC response_code)> PolicyPasswordResponse;
5184 static TPM_RC SerializeCommand_PolicyPassword(
5189 static TPM_RC ParseResponse_PolicyPassword(
5196 virtual TPM_RC PolicyPasswordSync(
5200 typedef base::Callback<void(TPM_RC response_code,
5203 static TPM_RC SerializeCommand_PolicyGetDigest(
5208 static TPM_RC ParseResponse_PolicyGetDigest(
5216 virtual TPM_RC PolicyGetDigestSync(
5221 typedef base::Callback<void(TPM_RC response_code)> PolicyNvWrittenResponse;
5222 static TPM_RC SerializeCommand_PolicyNvWritten(
5228 static TPM_RC ParseResponse_PolicyNvWritten(
5236 virtual TPM_RC PolicyNvWrittenSync(
5241 typedef base::Callback<void(TPM_RC response_code,
5249 static TPM_RC SerializeCommand_CreatePrimary(
5258 static TPM_RC ParseResponse_CreatePrimary(
5275 virtual TPM_RC CreatePrimarySync(
5289 typedef base::Callback<void(TPM_RC response_code)> HierarchyControlResponse;
5290 static TPM_RC SerializeCommand_HierarchyControl(
5297 static TPM_RC ParseResponse_HierarchyControl(
5306 virtual TPM_RC HierarchyControlSync(
5312 typedef base::Callback<void(TPM_RC response_code)> SetPrimaryPolicyResponse;
5313 static TPM_RC SerializeCommand_SetPrimaryPolicy(
5320 static TPM_RC ParseResponse_SetPrimaryPolicy(
5329 virtual TPM_RC SetPrimaryPolicySync(
5335 typedef base::Callback<void(TPM_RC response_code)> ChangePPSResponse;
5336 static TPM_RC SerializeCommand_ChangePPS(
5341 static TPM_RC ParseResponse_ChangePPS(
5348 virtual TPM_RC ChangePPSSync(const TPMI_RH_PLATFORM& auth_handle,
5351 typedef base::Callback<void(TPM_RC response_code)> ChangeEPSResponse;
5352 static TPM_RC SerializeCommand_ChangeEPS(
5357 static TPM_RC ParseResponse_ChangeEPS(
5364 virtual TPM_RC ChangeEPSSync(const TPMI_RH_PLATFORM& auth_handle,
5367 typedef base::Callback<void(TPM_RC response_code)> ClearResponse;
5368 static TPM_RC SerializeCommand_Clear(
5373 static TPM_RC ParseResponse_Clear(
5380 virtual TPM_RC ClearSync(const TPMI_RH_CLEAR& auth_handle,
5383 typedef base::Callback<void(TPM_RC response_code)> ClearControlResponse;
5384 static TPM_RC SerializeCommand_ClearControl(
5390 static TPM_RC ParseResponse_ClearControl(
5398 virtual TPM_RC ClearControlSync(
5403 typedef base::Callback<void(TPM_RC response_code)>
5405 static TPM_RC SerializeCommand_HierarchyChangeAuth(
5411 static TPM_RC ParseResponse_HierarchyChangeAuth(
5420 virtual TPM_RC HierarchyChangeAuthSync(
5425 typedef base::Callback<void(TPM_RC response_code)>
5427 static TPM_RC SerializeCommand_DictionaryAttackLockReset(
5432 static TPM_RC ParseResponse_DictionaryAttackLockReset(
5440 virtual TPM_RC DictionaryAttackLockResetSync(
5444 typedef base::Callback<void(TPM_RC response_code)>
5446 static TPM_RC SerializeCommand_DictionaryAttackParameters(
5454 static TPM_RC ParseResponse_DictionaryAttackParameters(
5465 virtual TPM_RC DictionaryAttackParametersSync(
5472 typedef base::Callback<void(TPM_RC response_code)> PP_CommandsResponse;
5473 static TPM_RC SerializeCommand_PP_Commands(
5480 static TPM_RC ParseResponse_PP_Commands(
5489 virtual TPM_RC PP_CommandsSync(const TPMI_RH_PLATFORM& auth,
5494 typedef base::Callback<void(TPM_RC response_code)> SetAlgorithmSetResponse;
5495 static TPM_RC SerializeCommand_SetAlgorithmSet(
5501 static TPM_RC ParseResponse_SetAlgorithmSet(
5509 virtual TPM_RC SetAlgorithmSetSync(
5514 typedef base::Callback<void(TPM_RC response_code)> FieldUpgradeStartResponse;
5515 static TPM_RC SerializeCommand_FieldUpgradeStart(
5524 static TPM_RC ParseResponse_FieldUpgradeStart(
5535 virtual TPM_RC FieldUpgradeStartSync(
5543 typedef base::Callback<void(TPM_RC response_code,
5547 static TPM_RC SerializeCommand_FieldUpgradeData(
5551 static TPM_RC ParseResponse_FieldUpgradeData(
5559 virtual TPM_RC FieldUpgradeDataSync(
5564 typedef base::Callback<void(TPM_RC response_code,
5567 static TPM_RC SerializeCommand_FirmwareRead(
5571 static TPM_RC ParseResponse_FirmwareRead(
5578 virtual TPM_RC FirmwareReadSync(
5582 typedef base::Callback<void(TPM_RC response_code,
5585 static TPM_RC SerializeCommand_ContextSave(
5590 static TPM_RC ParseResponse_ContextSave(
5598 virtual TPM_RC ContextSaveSync(const TPMI_DH_CONTEXT& save_handle,
5602 typedef base::Callback<void(TPM_RC response_code,
5605 static TPM_RC SerializeCommand_ContextLoad(
5609 static TPM_RC ParseResponse_ContextLoad(
5616 virtual TPM_RC ContextLoadSync(const TPMS_CONTEXT& context,
5619 typedef base::Callback<void(TPM_RC response_code)> FlushContextResponse;
5620 static TPM_RC SerializeCommand_FlushContext(
5624 static TPM_RC ParseResponse_FlushContext(
5630 virtual TPM_RC FlushContextSync(
5633 typedef base::Callback<void(TPM_RC response_code)> EvictControlResponse;
5634 static TPM_RC SerializeCommand_EvictControl(
5642 static TPM_RC ParseResponse_EvictControl(
5652 virtual TPM_RC EvictControlSync(
5659 typedef base::Callback<void(TPM_RC response_code,
5662 static TPM_RC SerializeCommand_ReadClock(
5665 static TPM_RC ParseResponse_ReadClock(
5671 virtual TPM_RC ReadClockSync(TPMS_TIME_INFO* current_time,
5673 typedef base::Callback<void(TPM_RC response_code)> ClockSetResponse;
5674 static TPM_RC SerializeCommand_ClockSet(
5680 static TPM_RC ParseResponse_ClockSet(
5688 virtual TPM_RC ClockSetSync(const TPMI_RH_PROVISION& auth,
5692 typedef base::Callback<void(TPM_RC response_code)> ClockRateAdjustResponse;
5693 static TPM_RC SerializeCommand_ClockRateAdjust(
5699 static TPM_RC ParseResponse_ClockRateAdjust(
5707 virtual TPM_RC ClockRateAdjustSync(
5712 typedef base::Callback<void(TPM_RC response_code,
5716 static TPM_RC SerializeCommand_GetCapability(
5722 static TPM_RC ParseResponse_GetCapability(
5732 virtual TPM_RC GetCapabilitySync(
5739 typedef base::Callback<void(TPM_RC response_code)> TestParmsResponse;
5740 static TPM_RC SerializeCommand_TestParms(
5744 static TPM_RC ParseResponse_TestParms(
5750 virtual TPM_RC TestParmsSync(const TPMT_PUBLIC_PARMS& parameters,
5752 typedef base::Callback<void(TPM_RC response_code)> NV_DefineSpaceResponse;
5753 static TPM_RC SerializeCommand_NV_DefineSpace(
5760 static TPM_RC ParseResponse_NV_DefineSpace(
5769 virtual TPM_RC NV_DefineSpaceSync(
5775 typedef base::Callback<void(TPM_RC response_code)> NV_UndefineSpaceResponse;
5776 static TPM_RC SerializeCommand_NV_UndefineSpace(
5783 static TPM_RC ParseResponse_NV_UndefineSpace(
5792 virtual TPM_RC NV_UndefineSpaceSync(
5798 typedef base::Callback<void(TPM_RC response_code)>
5800 static TPM_RC SerializeCommand_NV_UndefineSpaceSpecial(
5807 static TPM_RC ParseResponse_NV_UndefineSpaceSpecial(
5817 virtual TPM_RC NV_UndefineSpaceSpecialSync(
5823 typedef base::Callback<void(TPM_RC response_code,
5827 static TPM_RC SerializeCommand_NV_ReadPublic(
5832 static TPM_RC ParseResponse_NV_ReadPublic(
5841 virtual TPM_RC NV_ReadPublicSync(
5847 typedef base::Callback<void(TPM_RC response_code)> NV_WriteResponse;
5848 static TPM_RC SerializeCommand_NV_Write(
5857 static TPM_RC ParseResponse_NV_Write(
5868 virtual TPM_RC NV_WriteSync(const TPMI_RH_NV_AUTH& auth_handle,
5875 typedef base::Callback<void(TPM_RC response_code)> NV_IncrementResponse;
5876 static TPM_RC SerializeCommand_NV_Increment(
5883 static TPM_RC ParseResponse_NV_Increment(
5892 virtual TPM_RC NV_IncrementSync(
5898 typedef base::Callback<void(TPM_RC response_code)> NV_ExtendResponse;
5899 static TPM_RC SerializeCommand_NV_Extend(
5907 static TPM_RC ParseResponse_NV_Extend(
5917 virtual TPM_RC NV_ExtendSync(const TPMI_RH_NV_AUTH& auth_handle,
5923 typedef base::Callback<void(TPM_RC response_code)> NV_SetBitsResponse;
5924 static TPM_RC SerializeCommand_NV_SetBits(
5932 static TPM_RC ParseResponse_NV_SetBits(
5942 virtual TPM_RC NV_SetBitsSync(const TPMI_RH_NV_AUTH& auth_handle,
5948 typedef base::Callback<void(TPM_RC response_code)> NV_WriteLockResponse;
5949 static TPM_RC SerializeCommand_NV_WriteLock(
5956 static TPM_RC ParseResponse_NV_WriteLock(
5965 virtual TPM_RC NV_WriteLockSync(
5971 typedef base::Callback<void(TPM_RC response_code)> NV_GlobalWriteLockResponse;
5972 static TPM_RC SerializeCommand_NV_GlobalWriteLock(
5977 static TPM_RC ParseResponse_NV_GlobalWriteLock(
5984 virtual TPM_RC NV_GlobalWriteLockSync(
5988 typedef base::Callback<void(TPM_RC response_code,
5991 static TPM_RC SerializeCommand_NV_Read(
6000 static TPM_RC ParseResponse_NV_Read(
6012 virtual TPM_RC NV_ReadSync(const TPMI_RH_NV_AUTH& auth_handle,
6020 typedef base::Callback<void(TPM_RC response_code)> NV_ReadLockResponse;
6021 static TPM_RC SerializeCommand_NV_ReadLock(
6028 static TPM_RC ParseResponse_NV_ReadLock(
6037 virtual TPM_RC NV_ReadLockSync(const TPMI_RH_NV_AUTH& auth_handle,
6042 typedef base::Callback<void(TPM_RC response_code)> NV_ChangeAuthResponse;
6043 static TPM_RC SerializeCommand_NV_ChangeAuth(
6049 static TPM_RC ParseResponse_NV_ChangeAuth(
6057 virtual TPM_RC NV_ChangeAuthSync(
6062 typedef base::Callback<void(TPM_RC response_code,
6066 static TPM_RC SerializeCommand_NV_Certify(
6079 static TPM_RC ParseResponse_NV_Certify(
6096 virtual TPM_RC NV_CertifySync(const TPMI_DH_OBJECT& sign_handle,