| 1 | <?php |
||
| 18 | class DerivedKey extends AbstractKey |
||
| 19 | { |
||
| 20 | const KEY_SIZE_BYTES = 16; |
||
| 21 | const KEY_PIN_ENCRYPTION_MASK = '00000000000000FF00000000000000FF'; |
||
| 22 | |||
| 23 | /** |
||
| 24 | * Returns the PIN Encryption Key as a binary data string |
||
| 25 | * |
||
| 26 | * @return string |
||
| 27 | */ |
||
| 28 | 7 | public function getPinEncryptionKey() |
|
| 32 | |||
| 33 | /** |
||
| 34 | * Returns the hexadecimal representation of the PIN Encryption Key |
||
| 35 | * |
||
| 36 | * @return string |
||
| 37 | */ |
||
| 38 | 6 | public function getPinEncryptionKeyHexadecimal() |
|
| 42 | |||
| 43 | /** |
||
| 44 | * {@inheritdoc} |
||
| 45 | */ |
||
| 46 | 14 | protected function validateKey($binKey) |
|
| 56 | } |
||
| 57 |