#include <des_io.h>
Collaboration diagram for axis_des_key:

Each open instance of the crypto device has a des_key_structure associated with it not only does it remember the key used for that session but other details that need tracking over a DES session
Data Fields | |
| unsigned char | Key0 [8] |
| unsigned char | Key1 [8] |
| unsigned char | Key2 [8] |
| int | encrypt |
| int | master |
| int | raw |
| axis_des_hardware_key * | hardware_key |
|
|
Is this an encrypt or decrypt op |
|
|
If a hardware key has been allocated this is it |
|
|
3DES so 3 64 bit keys key 1 |
|
|
3DES so 3 64 bit keys key 2 |
|
|
3DES so 3 64 bit keys key 3 |
|
|
Flag use master key |
|
|
Raw keys are used straigh otherwise key is decrypted prior to use |
1.3.6