Documentation ¶
Overview ¶
Copyright 2023 Meta Platforms, Inc. and affiliates.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Copyright 2023 Meta Platforms, Inc. and affiliates.
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Index ¶
- func FromThriftFlow(flow measurements.Flow) (types.Flow, error)
- func FromThriftRegisters(statusRegisters []*afas.StatusRegister) (registers.Registers, error)
- func FromThriftTPMEventLog(in *thrift_tpm.EventLog) *tpmeventlog.TPMEventLog
- func FromThriftTPMType(tpmType afas.TPMType) (tpmdetection.Type, error)
- func ToThriftAnalysisIssue(issue analysis.Issue) (*analyzerreport.Issue, error)
- func ToThriftAnalysisSeverity(severity analysis.Severity) (analyzerreport.Severity, error)
- func ToThriftAnalyzeReport(report *models.AnalyzeReport) *afas.AnalyzeResult_
- func ToThriftAnalyzerReport(report models.AnalyzerReport) *afas.AnalyzerResult_
- func ToThriftFlow(flow types.Flow) (measurements.Flow, error)
- func ToThriftRegisters(statusRegisters registers.Registers) ([]*afas.StatusRegister, error)
- func ToThriftTPMEventLog(in *tpmeventlog.TPMEventLog) *thrift_tpm.EventLog
- func ToThriftTPMType(tpmType tpmdetection.Type) (afas.TPMType, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromThriftFlow ¶
func FromThriftFlow(flow measurements.Flow) (types.Flow, error)
FromThriftFlow converts firmware analysis service Flow to pcr0tool Flow
func FromThriftRegisters ¶
func FromThriftRegisters(statusRegisters []*afas.StatusRegister) (registers.Registers, error)
FromThriftRegisters converts firmware analysis status registers to pcr0tool registers
func FromThriftTPMEventLog ¶
func FromThriftTPMEventLog(in *thrift_tpm.EventLog) *tpmeventlog.TPMEventLog
FromThriftTPMEventLog converts firmware analysis service TPMEventLog to the converged security suite format.
func FromThriftTPMType ¶
func FromThriftTPMType(tpmType afas.TPMType) (tpmdetection.Type, error)
FromThriftTPMType converts firmware analysis service TPMType to pcr0tool TPMType
func ToThriftAnalysisIssue ¶
func ToThriftAnalysisIssue(issue analysis.Issue) (*analyzerreport.Issue, error)
ToThriftAnalysisIssue converts internal analysis.Issue structure to the Thrift representation of it.
func ToThriftAnalysisSeverity ¶
func ToThriftAnalysisSeverity(severity analysis.Severity) (analyzerreport.Severity, error)
ToThriftAnalysisSeverity converts internal analysis.Severity structure to the Thrift representation of it.
func ToThriftAnalyzeReport ¶
func ToThriftAnalyzeReport(report *models.AnalyzeReport) *afas.AnalyzeResult_
ToThriftAnalyzeReport converts internal storage.AnalyzeReport structure to the Thrift representation of it.
func ToThriftAnalyzerReport ¶
func ToThriftAnalyzerReport(report models.AnalyzerReport) *afas.AnalyzerResult_
ToThriftAnalyzerReport converts internal storage.AnalyzerResult structure to the Thrift representation of it.
func ToThriftFlow ¶
func ToThriftFlow(flow types.Flow) (measurements.Flow, error)
ToThriftFlow converts pcr0tool Flow to firmware analysis service Flow
func ToThriftRegisters ¶
func ToThriftRegisters(statusRegisters registers.Registers) ([]*afas.StatusRegister, error)
ToThriftRegisters converts pcr0tool registers to firmware analysis status registers
func ToThriftTPMEventLog ¶
func ToThriftTPMEventLog(in *tpmeventlog.TPMEventLog) *thrift_tpm.EventLog
ToThriftTPMEventLog converts pcr0tool TPMEventLog to the firmware analysis service format.
func ToThriftTPMType ¶
func ToThriftTPMType(tpmType tpmdetection.Type) (afas.TPMType, error)
ToThriftTPMType converts pcr0tool TPMType to firmware analysis service TPMType
Types ¶
This section is empty.