Skip to content

Commit 58e1b5d

Browse files
committed
Add missing methods for TPM 1.2
1 parent eb81e6e commit 58e1b5d

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

attest/key_linux.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,7 @@ func (k *trousersKey12) attestationParameters() AttestationParameters {
9696
func (k *trousersKey12) certify(tb tpmBase, handle interface{}, qualifyingData []byte) (*CertificationParameters, error) {
9797
return nil, fmt.Errorf("not implemented")
9898
}
99+
100+
func (k *trousersKey12) blobs() ([]byte, []byte, error) {
101+
return nil, nil, errors.New("not implemented")
102+
}

attest/key_windows.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ func (k *windowsAK12) certify(tb tpmBase, handle interface{}, qualifyingData []b
120120
return nil, fmt.Errorf("not implemented")
121121
}
122122

123+
func (k *windowsAK12) blobs() ([]byte, []byte, error) {
124+
return nil, nil, errors.New("not implemented")
125+
}
126+
123127
// windowsAK20 represents a key bound to a TPM 2.0.
124128
type windowsAK20 struct {
125129
hnd uintptr

attest/tpm12_linux.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,10 @@ func (t *trousersTPM) loadAK(opaqueBlob []byte) (*AK, error) {
136136
return &AK{ak: newTrousersKey12(sKey.Blob, sKey.Public)}, nil
137137
}
138138

139+
func (t *trousersTPM) deleteAK(opaqueBlob []byte) error {
140+
return fmt.Errorf("not implemented")
141+
}
142+
139143
// allPCRs12 returns a map of all the PCR values on the TPM
140144
func allPCRs12(ctx *tspi.Context) (map[uint32][]byte, error) {
141145
tpm := ctx.GetTPM()

0 commit comments

Comments
 (0)