From f323237091701b461f3b9b913155e6dd1b54f8c6 Mon Sep 17 00:00:00 2001 From: merlokk <807634+merlokk@users.noreply.github.com> Date: Fri, 4 Feb 2022 15:30:00 +0200 Subject: [PATCH] add doc --- doc/cipurse.md | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/doc/cipurse.md b/doc/cipurse.md index 365b7a2fb..cf5a5cafd 100644 --- a/doc/cipurse.md +++ b/doc/cipurse.md @@ -173,6 +173,24 @@ or with default application ```hf cipurse aread --aid 4144204632 --chfid 0102``` +### How set file attributes +^[Top](#top) + +set elementary file attributes (EF) + + full access wo keys +```hf cipurse awrite --chfid 0102 -d 020000ffffff``` + + read access wo keys and full with all 2 keys +```hf cipurse awrite --chfid 0102 -d 02000040ffff``` + +set EF.ID_INFO file attributes +```hf cipurse awrite --fid 2ff7 -d 080000C1C1C1C1C1C1C1C1C1``` (as default) + +set master file (MF) file attributes +```hf cipurse awrite --mfd -d 080000FFFFFFFFFFFFFFFFFF86023232 --commit``` (full access with/wo keys and tag 86 is set by `22`) + + ### How to personalize card ^[Top](#top) @@ -240,3 +258,19 @@ or if file with transaction mechanism ```hf cipurse read --fid 0102``` +**8. Set the keys and needed key attributes** + +TBW + + +**8. Set the file attributes** + +Set file attributes for: +1. All the elementary files (EF) +2. Info files (EF.ID_INFO) +3. Application(s) +4. PxSE application +5. Master file itself (MF) + +*(in this specific order!!!)* +