Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
axel.maurer
bwCard Reader
Commits
e3ec3b27
Commit
e3ec3b27
authored
Sep 01, 2021
by
axel.maurer
Browse files
chenged to bwCard keys
parent
9713cc4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
KIT-Card.c
View file @
e3ec3b27
...
...
@@ -44,7 +44,7 @@
#include <twn4.sys.h>
#include <apptools.h>
#include "../KIT-Card_Keys/keys_
KIT
.h"
#include "../KIT-Card_Keys/keys_
bwCard
.h"
#define MAXIDBYTES 16
#define MAXIDBITS (MAXIDBYTES * 8)
...
...
@@ -1077,21 +1077,22 @@ int DoDesFireCardAction(int action, char *parmStr, char *resultStr)
PrintLnDebug
(
mBuffer
);
//File 1 lesen, wenn er existiert und in outBufferStr speichern
if
(
CheckForAppFile
(
appId
,
1
)){
if
(
!
ReadDesFireCardAppFile
(
appId
,
1
,
byteBuffer
,
&
bufferLen
,
0x40
,
0
,
AUTH_KEY_READ
,
resultStr
)){
sprintf
(
mBuffer
,
"291,Error reading file1 of bwcard"
);
if
(
appId
==
BWCARD_OLD_APP
){
if
(
CheckForAppFile
(
appId
,
1
)){
if
(
!
ReadDesFireCardAppFile
(
appId
,
1
,
byteBuffer
,
&
bufferLen
,
0x40
,
0
,
AUTH_KEY_READ
,
resultStr
)){
sprintf
(
mBuffer
,
"291,Error reading file1 of bwcard"
);
PrintLnDebug
(
mBuffer
);
sprintf
(
resultStr
,
"%s"
,
mBuffer
);
return
(
false
);
}
sprintf
(
mBuffer
,
"File read:%s"
,(
cha61r
*
)
byteBuffer
);
PrintLnDebug
(
mBuffer
);
sprintf
(
outBufferStr
,
"%s"
,(
char
*
)
byteBuffer
);
}
else
{
sprintf
(
mBuffer
,
"No Appfile 1 for 0x%x found"
,
appId
);
PrintLnDebug
(
mBuffer
);
sprintf
(
resultStr
,
"%s"
,
mBuffer
);
return
(
false
);
}
sprintf
(
mBuffer
,
"File read:%s"
,(
char
*
)
byteBuffer
);
PrintLnDebug
(
mBuffer
);
sprintf
(
outBufferStr
,
"%s"
,(
char
*
)
byteBuffer
);
}
else
{
sprintf
(
mBuffer
,
"No Appfile 1 for 0x%x found"
,
appId
);
PrintLnDebug
(
mBuffer
);
}
// Kartennummer verschlüsslen und in bwCardEnc speichern
bufferLen
=
sizeof
(
bwCardNumberEnc
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment