Class: EMV::APDU::CPS::INITIALIZE_UPDATE
Instance Attribute Summary
Attributes inherited from CPS_APDU
#secure_context
Instance Method Summary
collapse
Methods inherited from CPS_APDU
#initialize
Instance Method Details
#key_version_number=(kvn) ⇒ Object
156
157
158
|
# File 'lib/emv/cps_apdu.rb', line 156
def key_version_number= kvn
self.p1= kvn
end
|
#send(handle_more_data = true, card = nil) ⇒ Object
159
160
161
162
163
164
165
166
167
168
169
|
# File 'lib/emv/cps_apdu.rb', line 159
def send handle_more_data=true, card=nil
secure_context.reset
@data = secure_context.host_challenge
resp = super
if resp.status == "9000"
@secure_context.initialize_response = EMV::Data::InitializeUpdateData.new(resp.data)
@secure_context.check_card_cryptogram
end
resp
end
|