Class: EMV::APDU::CPS::C_MAC_APDU
- Defined in:
- lib/emv/cps_apdu.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#c_mac ⇒ Object
calculate the c-mac according to 5.4.2.2.
Attributes inherited from CPS_APDU
Instance Method Summary collapse
-
#initialize(card, secure_context) ⇒ C_MAC_APDU
constructor
A new instance of C_MAC_APDU.
Constructor Details
#initialize(card, secure_context) ⇒ C_MAC_APDU
Returns a new instance of C_MAC_APDU.
177 178 179 |
# File 'lib/emv/cps_apdu.rb', line 177 def initialize card, secure_context super end |
Instance Attribute Details
#c_mac ⇒ Object
calculate the c-mac according to 5.4.2.2
182 183 184 185 |
# File 'lib/emv/cps_apdu.rb', line 182 def c_mac @c_mac ||= secure_context.calculate_c_mac(self) @c_mac end |