Skip to content

Commit

Permalink
Added fix for #68
Browse files Browse the repository at this point in the history
  • Loading branch information
yackermann committed Dec 4, 2023
1 parent 6c78e2a commit f3c7e50
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/device/to1/req-to1-32-ProveToRV.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ func (h *To1Requestor) ProveToRV32(helloRVAck31 fdoshared.HelloRVAck31, fdoTestI

var proveToRV32Payload fdoshared.EATPayloadBase = fdoshared.EATPayloadBase{
EatNonce: helloRVAck31.NonceTO1Proof,
EatUEID: fdoshared.GenerateEatGuid(h.credential.DCGuid),
}

if fdoTestID == testcom.FIDO_DEVT_32_BAD_TO1PROOF_NONCE {
Expand Down
1 change: 1 addition & 0 deletions core/device/to2/req-to2-64-ProveDevice.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ func (h *To2Requestor) ProveDevice64(fdoTestID testcom.FDOTestID) (*fdoshared.TO
eatPayload := fdoshared.EATPayloadBase{
EatNonce: h.NonceTO2ProveDv61,
EatFDO: to2ProveDevicePayload,
EatUEID: fdoshared.GenerateEatGuid(h.Credential.DCGuid),
}

if fdoTestID == testcom.FIDO_DOT_64_BAD_NONCE_PROVEDV61 {
Expand Down
7 changes: 7 additions & 0 deletions core/shared/other.go
Original file line number Diff line number Diff line change
Expand Up @@ -388,3 +388,10 @@ func UrlsToRendezvousInstrList(urls []string) ([]RendezvousInstrList, error) {

return rvInfoList, nil
}

func GenerateEatGuid(fdoGuid FdoGuid) [17]byte {
var result [17]byte
copy(result[:], append([]byte{0x01}, fdoGuid[:]...))

return result
}

0 comments on commit f3c7e50

Please sign in to comment.