Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Generierung und Übergabe einer Challenge

Empfohlene Antworten

Veröffentlicht

Mit Hilfe welcher Klassen in JAva oder OCF ist es möglich eine Challenge generieren zu lassen ? Und wenn ich eine Challenge dann habe, wie kann ich sie dann weiter geben?

Also hier hab ich versucht einfach zu behaupten das wäre meine Challenge (1-8 bit) und darauf wollte ich eine Response.

FEHLER 6400 (state of non-volatile memory unchanged)


// Anforderung an die Karte eine Response für Challenge zu generieren (S.53 - internal auth)


CommandAPDU cmd = new CommandAPDU(20);

cmd.append((byte) 0x00);

cmd.append((byte) 0x88);

cmd.append((byte) 0x00);

cmd.append((byte) 0x00);

cmd.append((byte) 0x08); // Muß für Karte immer 08 als Länge sein.

cmd.append((byte) 0xA1); // 1. Bitübergabe

cmd.append((byte) 0x19); // 2. Bitübergabe

cmd.append((byte) 0xA1); // 3. Bitübergabe

cmd.append((byte) 0x67); // 4. Bitübergabe

cmd.append((byte) 0x05); // 5. Bitübergabe

cmd.append((byte) 0x24); // 6. Bitübergabe

cmd.append((byte) 0xA4); // 7. Bitübergabe

cmd.append((byte) 0x1C); // 8. Bitübergabe

cmd.append((byte) 0x10); // gewünschte Rückgabe_länge


System.out.print("Command 'CHALLENGE':");

System.out.println(cmd.toString());

ResponseAPDU resp1 = cs.sendCommandAPDU(cmd);

System.out.print("\nResponse to 'CHALLENGE' command:");

System.out.print(resp1.toString());


Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.