Skip to content

WrappedKey

Source code in docs_src/capo_payment_cryptography_data/types/wrapped_key.py
class WrappedKey(TypedDict, closed=True):
    wrapped_key_material: (
        "capo_payment_cryptography_data.types.wrapped_key_material.WrappedKeyMaterial"
    )
    """<p>Parameter information of a WrappedKeyBlock for encryption key exchange.</p>"""
    key_check_value_algorithm: NotRequired[
        "capo_payment_cryptography_data.types.key_check_value_algorithm.KeyCheckValueAlgorithm"
    ]
    """<p>The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV). It is used to validate the key integrity.</p> <p>For TDES keys, the KCV is computed by encrypting 8 bytes, each with value of zero, with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES keys, the KCV is computed using a CMAC algorithm where the input data is 16 bytes of zero and retaining the 3 highest order bytes of the encrypted result.</p>"""

key_check_value_algorithm instance-attribute

key_check_value_algorithm: NotRequired[KeyCheckValueAlgorithm]

The algorithm that Amazon Web Services Payment Cryptography uses to calculate the key check value (KCV). It is used to validate the key integrity.

For TDES keys, the KCV is computed by encrypting 8 bytes, each with value of zero, with the key to be checked and retaining the 3 highest order bytes of the encrypted result. For AES keys, the KCV is computed using a CMAC algorithm where the input data is 16 bytes of zero and retaining the 3 highest order bytes of the encrypted result.

wrapped_key_material instance-attribute

wrapped_key_material: WrappedKeyMaterial

Parameter information of a WrappedKeyBlock for encryption key exchange.