A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://pythongssapi.github.io/python-gssapi/latest/_modules/gssapi/raw/ext_iov_mic.html below:

gssapi.raw.ext_iov_mic — Python-GSSAPI 1.9.0 documentation

Python-GSSAPI Source code for gssapi.raw.ext_iov_mic
import typing as t

if t.TYPE_CHECKING:
    from gssapi.raw.ext_dce import IOV
    from gssapi.raw.sec_contexts import SecurityContext



[docs]
def get_mic_iov(
    context: "SecurityContext",
    message: "IOV",
    qop: t.Optional[int] = None,
) -> None:
    """Generate MIC tokens for the given IOV message.

    This method generates a MIC token for the given IOV message, and places it
    in the :attr:`~gssapi.raw.ext_dce.IOVBufferType.mic_token` buffer in the
    IOV. This method operates entirely in-place, and returns nothing.

    Warning:
        This modifies the input :class:`~gssapi.raw.ext_dce.IOV`.

    Args:
        context (~gssapi.raw.sec_contexts.SecurityContext): the current
            security context
        message (IOV): the :class:`~gssapi.raw.ext_dce.IOV` containing the
            message
        qop (int): the desired Quality of Protection
            (or None for the default QoP)

    Returns:
        None

    Raises:
        ~gssapi.exceptions.GSSError
    """




[docs]
def get_mic_iov_length(
    context: "SecurityContext",
    message: "IOV",
    qop: t.Optional[int] = None,
) -> None:
    """Allocate space for the MIC buffer in the given IOV message.

    This method allocates space for the MIC token buffer
    (:attr:`~gssapi.raw.ext_dce.IOVBufferType.mic_token`) in the given IOV
    message.

    Warning:
        This modifies the input :class:`~gssapi.raw.ext_dce.IOV`.

    Args:
        context (~gssapi.raw.sec_contexts.SecurityContext): the current
            security context
        message (IOV): the :class:`~gssapi.raw.ext_dce.IOV` containing the
            message
        qop (int): the desired Quality of Protection
            (or None for the default QoP)

    Returns:
        None

    Raises:
        ~gssapi.exceptions.GSSError
    """




[docs]
def verify_mic_iov(
    context: "SecurityContext",
    message: "IOV",
    qop: t.Optional[int] = None,
) -> int:
    """Verify that the MIC matches the data in the given IOV message.

    This method verifies that the MIC token in the MIC buffer
    (:attr:`~gssapi.raw.ext_dce.IOVBufferType.mic_token`) match the data
    buffer(s) in the given IOV method.

    Args:
        context (~gssapi.raw.sec_contexts.SecurityContext): the current
            security context
        message (IOV): the :class:`~gssapi.raw.ext_dce.IOV` containing the
            message

    Returns:
        int: the QoP used to generate the MIC token

    Raises:
        ~gssapi.exceptions.GSSError
    """


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4