MCPcopy Index your code
hub / github.com/secdev/scapy / GSS_Unwrap

Method GSS_Unwrap

scapy/layers/gssapi.py:676–704  ·  view source on GitHub ↗

See GSS_UnwrapEx

(
        self,
        Context: CONTEXT,
        signature,
    )

Source from the content-addressed store, hash-verified

674 # sect 2.3.4
675
676 def GSS_Unwrap(
677 self,
678 Context: CONTEXT,
679 signature,
680 ):
681 """
682 See GSS_UnwrapEx
683 """
684 data = b""
685 if signature.payload:
686 # signature has a payload that is the data. Let's get that payload
687 # in its original form, and use it for verifying the checksum.
688 if signature.payload.original:
689 data = signature.payload.original
690 else:
691 data = bytes(signature.payload)
692 signature = signature.copy()
693 signature.remove_payload()
694 return self.GSS_UnwrapEx(
695 Context,
696 [
697 self.WRAP_MSG(
698 conf_req_flag=True,
699 sign=True,
700 data=data,
701 )
702 ],
703 signature,
704 )[0].data
705
706 # MISC
707

Callers 2

sr1Method · 0.80
bindMethod · 0.80

Calls 3

GSS_UnwrapExMethod · 0.95
copyMethod · 0.45
remove_payloadMethod · 0.45

Tested by

no test coverage detected