DeriveKey class
Implements key derivation function as specified in ICAO 9303 p11 Sections: 9.7.1.1, 9.7.1.2, 9.7.1.3, 9.7.1.4
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
aes128(
Uint8List keySeed, {bool paceMode = false}) → Uint8List -
Returns key for AES-128 derived from
keySeedbytes and counter mode 1. IfpaceModeis true counter 3 is used. -
aes192(
Uint8List keySeed, {bool paceMode = false}) → Uint8List -
Returns key for AES-192 derived from
keySeedbytes and counter mode 1. IfpaceModeis true counter 3 is used. -
aes256(
Uint8List keySeed, {bool paceMode = false}) → Uint8List -
Returns key for AES-256 derived from
keySeedbytes and counter mode 1. IfpaceModeis true counter 3 is used. -
cmac128(
Uint8List keySeed) → Uint8List -
Returns key for CMAC-128 derived from
keySeedbytes and counter mode 2. -
cmac192(
Uint8List keySeed) → Uint8List -
Returns key for CMAC-192 derived from
keySeedbytes and counter mode 2. -
cmac256(
Uint8List keySeed) → Uint8List -
Returns key for CMAC-256 derived from
keySeedbytes and counter mode 2. -
derive(
DeriveKeyType keyType, Uint8List keySeed, {bool paceMode = false}) → Uint8List -
Returns key from
keySeedbytes for specifickeyTypeand counter mode specific for key type (1 - ENC mode, 2 - MAC mode). IfpaceModeis true counter 3 for encryption key types. -
desEDE(
Uint8List keySeed, {bool paceMode = false}) → Uint8List -
Returns key for DESede derived from
keySeedbytes and counter mode 1. IfpaceModeis true counter 3 is used. -
iso9797MacAlg3(
Uint8List keySeed) → Uint8List -
Returns key for ISO9797 MAC algorithm 3 derived from
keySeedbytes and counter mode 2.