mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
GenerateAs2805KekValidation is served on the Payment Cryptography data plane. Two AS2805 nodes prove they hold the same key encryption key: the request form makes a random number with Single DES odd parity and returns it enciphered under one variant of the key, and the response form deciphers a number, inverts it and returns it enciphered under another variant. The key is a Triple DES TR31_K0 key encryption key; the request form needs Encrypt and the response form both Decrypt and Encrypt. The AS2805 Triple DES check and the key lookup now live in PaymentCryptographyKeyRules, shared with the key exchange, card validation, authorization cryptogram and PIN operations.