public Key withKeyCheckValueAlgorithm(String keyCheckValueAlgorithm) {
        setKeyCheckValueAlgorithm(keyCheckValueAlgorithm);
        return this;
    }
<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>

@param 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.</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.
@return Returns a reference to this object so that method calls can be chained together.
@see KeyCheckValueAlgorithm
aws-java-sdk-paymentcryptography/src/main/java/com/amazonaws/services/paymentcryptography/model/Key.java