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

Method GSS_Wrap

scapy/layers/gssapi.py:649–672  ·  view source on GitHub ↗

See GSS_WrapEx

(
        self,
        Context: CONTEXT,
        input_message: bytes,
        conf_req_flag: bool,
        qop_req: int = GSS_C_QOP_DEFAULT,
    )

Source from the content-addressed store, hash-verified

647 # sect 2.3.3
648
649 def GSS_Wrap(
650 self,
651 Context: CONTEXT,
652 input_message: bytes,
653 conf_req_flag: bool,
654 qop_req: int = GSS_C_QOP_DEFAULT,
655 ):
656 """
657 See GSS_WrapEx
658 """
659 _msgs, signature = self.GSS_WrapEx(
660 Context,
661 [
662 self.WRAP_MSG(
663 conf_req_flag=conf_req_flag,
664 sign=True,
665 data=input_message,
666 )
667 ],
668 qop_req=qop_req,
669 )
670 if _msgs[0].data:
671 signature /= _msgs[0].data
672 return signature
673
674 # sect 2.3.4
675

Callers 2

sr1Method · 0.80
bindMethod · 0.80

Calls 1

GSS_WrapExMethod · 0.95

Tested by

no test coverage detected