| Electronic Components Datasheet Search |
|
SL3S1004FUD Datasheet(PDF) 13 Page - NXP Semiconductors |
|
|
|||||||||||||||||||||||||||||
SL3S1004FUD Datasheet(HTML) 13 Page - NXP Semiconductors |
|
13 / 33 page ![]() SL3S1004_1014 All information provided in this document is subject to legal disclaimers. © NXP Semiconductors N.V. 2016. All rights reserved. Product data sheet COMPANY PUBLIC Rev. 3.2 — 27 July 2016 325032 13 of 33 NXP Semiconductors SL3S1004_1014 UCODE 7xm and UCODE 7xm+ MS VC++ Code Example /** * Check Originality Signature on curve NID_X9_62_prime192v1 **/ unsigned char CheckOriginalitySignature192UCode7xmBinary(unsigned char * aUid, unsigned char * aSignature) { /* secp192v1 => ECC_Length=24; */ unsigned int ECC_Length = 24; unsigned int bLength = 12; char* publickey_str = “04A72DB4B83233DD9A9711DB071281F14451747F815EEB111F1D4 CD3DCAD60250C830CD287DCEC0B39C76262BA998B7E01"; /* UCODE7xm */ BIGNUM *pk_bignum = BN_new(); EC_POINT *public_key = NULL; /* Create a EC_KEY for specified curve */ EC_KEY *pubKey = EC_KEY_new_by_curve_name(NID_X9_62_prime192v1); const EC_GROUP *ecgroup = EC_KEY_get0_group(pubKey); ECDSA_SIG *signature = ECDSA_SIG_new(); unsigned char r[24]; /* ECC_Length */ unsigned char s[24]; /* ECC_Length */ char r_dest[24*2+1]; /* ECC_Length *2 +1 */ char s_dest[24*2+1]; /* ECC_Length *2 +1 */ unsigned int loop = 0; if (signature == NULL ) { return 1; } if (pubKey == NULL) { printf("Creation of PubKey failed \n"); return 1; } /* Convert the hex public key x,y co-ordinates to BIGNUM */ BN_hex2bn(&pk_bignum, publickey_str); public_key = EC_POINT_bn2point(ecgroup, pk_bignum, NULL, NULL); /* Set the public key point to EC_KEY */ EC_KEY_set_public_key(pubKey, public_key); |
|
Link URL |
| Does ALLDATASHEET help your business so far? [ DONATE ] |
About Alldatasheet | Advertisement | Contact us | Privacy Policy | Link to Datasheet | Link Exchange | Manufacturer List All Rights Reserved©Alldatasheet.com |
| Russian : Alldatasheetru.com | Korean : Alldatasheet.co.kr | Spanish : Alldatasheet.es | French : Alldatasheet.fr | Italian : Alldatasheetit.com Portuguese : Alldatasheetpt.com | Polish : Alldatasheet.pl | Vietnamese : Alldatasheet.vn Indian : Alldatasheet.in | Mexican : Alldatasheet.com.mx | British : Alldatasheet.co.uk | New Zealand : Alldatasheet.co.nz |
|
Family Site : ic2ic.com |
icmetro.com |