0.1.1 • Published 2 years ago

atm-crypto-helpers v0.1.1

Weekly downloads
33
License
-
Repository
github
Last release
2 years ago

atm-crypto-helpers

Crypto helper functions for Atm/Pos devices

Master (Card) key derivation

Parameters

  • emvVersion - one of 4.0, 4.1, 4.2, 4.3

    • 4.0 - same as option A of the other versions
    • 4.1, 4.2, 4.3 - two options for each one, depending on the type parameter: - option A - same as 4.0 - option B - available for emvVersion 4.1, 4.2 and 4.3

      NOTE: Thales Payshield command KQ supports only emvVersion 4.0, therefore option A

Session key derivation

Parameters

  • emvVersion - one of 4.0, 4.1, 4.2, 4.3
    • 4,0, 4.1 - same as Thales EMV2000
    • 4.2 - same as Thales common session key derivation
    • 4.3 - same as 4.2 in case of double length key (16 bytes) and algorithmBlockSize 8 bytes (DES key)

Thales - EMV mapping

  • Command code = KQ (EMV v.3), sceme ID = 0
  • Command code = KQ (EMV v.3), sceme ID = 1

  • Command code = KQ (EMV v.3), sceme ID = 2

  • Command code = KW (EMV v.4), sceme ID = 0

    • emvVersion - 4.1
    • type - a
    • macAlgorithm
  • Command code = KW (EMV v.4), sceme ID = 1

    • emvVersion - 4.1
    • type - b
    • macAlgorithm
  • Command code = KW (EMV v.4), sceme ID = 2

    • emvVersion - 4.2 OR 4.3
    • type - a
    • macAlgorithm
  • Command code = KW (EMV v.4), sceme ID = 3

    • emvVersion - v4.3
    • type - b
    • algorithmBlockSize - 8
    • macAlgorithm = 3
0.1.1

2 years ago

0.1.0

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago