See GSS_WrapEx
(
self,
Context: CONTEXT,
input_message: bytes,
conf_req_flag: bool,
qop_req: int = GSS_C_QOP_DEFAULT,
)
| 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 |
no test coverage detected