Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatic validation for SLN/keyset pairs #21

Open
ilyacodes opened this issue Jan 3, 2025 · 0 comments
Open

Automatic validation for SLN/keyset pairs #21

ilyacodes opened this issue Jan 3, 2025 · 0 comments

Comments

@ilyacodes
Copy link
Collaborator

Per TIA-102.AACA-C 6.1 Keyset Definition and Operation:

The SLN is a two octet number made from the concatenation of the Crypto Group (upper 4 bits numbered 0 through 15), followed by 12 bits for the Key Number (numbered 0 through 4095), and may take on a value within the range of zero to 65,535.

The Keyset ID is a one octet field defined by the concatenation of the Crypto Group (upper 4 bits) and the keyset (lower 4 bits). Note that a value of 0 is not a valid Keyset ID so an offset of 1 is added to the concatenated value to create a Keyset ID range of 1 through 255.

Currently KFDtool does not track the connection between the upper nibble of SLN/CKR and the upper nibble of the keyset... i.e. it is possible to try to load a key with an SLN that is associated with crypto group $0 into a keyset that is associated with crypto group $F.

It would be nice to add automatic validation for invalid SLN/keyset pairs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant