Skip to content

MacAlgorithmDukpt

Source code in docs_src/capo_payment_cryptography_data/types/mac_algorithm_dukpt.py
class MacAlgorithmDukpt(TypedDict, closed=True):
    key_serial_number: "capo_payment_cryptography_data.types.hex_length16_or20_or24.HexLength16Or20Or24"
    """<p>The unique identifier known as Key Serial Number (KSN) that comes from an encrypting device using DUKPT encryption method. The KSN is derived from the encrypting device unique identifier and an internal transaction counter.</p>"""
    dukpt_key_variant: (
        "capo_payment_cryptography_data.types.dukpt_key_variant.DukptKeyVariant"
    )
    """<p>The type of use of DUKPT, which can be MAC generation, MAC verification, or both.</p>"""
    dukpt_derivation_type: NotRequired[
        "capo_payment_cryptography_data.types.dukpt_derivation_type.DukptDerivationType"
    ]
    """<p>The key type derived using DUKPT from a Base Derivation Key (BDK) and Key Serial Number (KSN). This must be less than or equal to the strength of the BDK. For example, you can't use <code>AES_128</code> as a derivation type for a BDK of <code>AES_128</code> or <code>TDES_2KEY</code>.</p>"""

dukpt_derivation_type instance-attribute

dukpt_derivation_type: NotRequired[DukptDerivationType]

The key type derived using DUKPT from a Base Derivation Key (BDK) and Key Serial Number (KSN). This must be less than or equal to the strength of the BDK. For example, you can't use AES_128 as a derivation type for a BDK of AES_128 or TDES_2KEY.

dukpt_key_variant instance-attribute

dukpt_key_variant: DukptKeyVariant

The type of use of DUKPT, which can be MAC generation, MAC verification, or both.

key_serial_number instance-attribute

key_serial_number: HexLength16Or20Or24

The unique identifier known as Key Serial Number (KSN) that comes from an encrypting device using DUKPT encryption method. The KSN is derived from the encrypting device unique identifier and an internal transaction counter.