-
Notifications
You must be signed in to change notification settings - Fork 2
How to verify an EID
Rupert-Klement edited this page Nov 30, 2020
·
5 revisions
Annex J of SPG.02 provides a description of how to verify an EID.
Verification of an EID is performed as follows:
- Using the 32 digits as a decimal integer, compute the remainder of that number on division by 97.
- If the remainder of the division is 1, the verification is successful; else the EID is invalid.
As an example in C using the modulus operator
%
, returns the remainder:
if (EID % 97 == 1)
{
//EID valid
}
else
{
//EID invalid
}
EID example= 89034011560010000000000000000121
89034011560010000000000000000121 % 97 = 1 -> EID valid
Examples of valid EIDs are:
- 8900 1012 0123 4123 4012 3456 7890 1224
- 8900 1567 01020304 0506 0708 0910 1152
- 8904 4011 1122 3344 1122 3344 1122 3321
OPTIGA™ Connect IoT - Infineon eSIM IoT Solution