X-Git-Url: https://hackdaworld.org/gitweb/?p=rfid%2Flibrfid.git;a=blobdiff_plain;f=gemtag%2Fgemtag.h;fp=gemtag%2Fgemtag.h;h=e5c24bf85474e2f74f8ab1a248973f412c1083f2;hp=dfdfa64fabb0d68b5c579e9ca87b1f3305632245;hb=03006df71d07c88b1fd9f01839336801207b7ec4;hpb=1557eeb9a2ba194aaa608c85dba73779476badf4 diff --git a/gemtag/gemtag.h b/gemtag/gemtag.h index dfdfa64..e5c24bf 100644 --- a/gemtag/gemtag.h +++ b/gemtag/gemtag.h @@ -1,5 +1,6 @@ /* - * (C) 2006 by Frank Zirkelbach + * (C) 2006 by Harald Welte + * Frank Zirkelbach * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 @@ -47,6 +48,8 @@ struct gemtag_cmd_hdr { #define WRITE_FAILED 0x07 #define NO_PICC 0x08 #define PICC_SELECT_ERROR 0x09 +#define LOAD_E2_FAILED 0x0a +#define AUTH_E2_FAILED 0x0b /* gemtag commands */ @@ -122,6 +125,7 @@ struct gemtag_cmd_hdr { /* function prototypes */ + int asciidump(unsigned char *data,int len); int hexdump(unsigned char *data,int len); struct usb_device *find_device(unsigned short vendor,unsigned short device); @@ -133,6 +137,8 @@ struct gemtag_handle *gemtag_open(void); int gemtag_close(struct gemtag_handle *gh); int gemtag_transform_mifare_key(struct gemtag_handle *gh, unsigned char *key6,unsigned char *key12); +int gemtag_auth_e2(struct gemtag_handle *gh,unsigned char authmode, + int sector,unsigned char *key6); int gemtag_auth_mifare_key(struct gemtag_handle *gh, unsigned char *key6,int sector); int gemtag_read16(struct gemtag_handle *gh,int sector,unsigned char *data);