NXP P71D321 · contactless-d321
Everything measured on this card: identity and protocol signals, free memory, algorithm support, and computation, memory and cryptography performance. Card overview · Cross-card comparison · Methodology
Card signals
Identity and interface
| Field | Value |
|---|---|
| ID | contactless-d321 |
| Chip (inferred from CPLC ICType) | NXP P71D321 |
| CPLC ICType | D321 |
| Interface | contactless |
| Reader | ACS ACR1552 1S CL Reader PICC 0 |
| ATR | 3B8C80015432433134504A34313890009A |
| AID | F04A4342454E434801 |
| Applet protocol | 5 |
| Applet version | 10 |
| Java Card getVersion() | 0x0300 |
| Measured at | 2026-11-03T04:01:56.798Z |
Production identifiers that point to one specific card — serial number, batch, pre-personalizer, KDD and SSC — are redacted and not published.
ATR structure
A contactless reader returns a PC/SC pseudo-ATR: a fixed 4-byte header, the card’s ATS/historical bytes, and a checksum. It can change with the reader or the card configuration, so it cannot identify the chip.
| Field | Value |
|---|---|
| Length | 17 B |
| TS | 3B |
| T0 | 8C |
| TA1 | 80 |
| Historical byte count (low nibble of T0) | 12 |
| Historical bytes | 01 54 32 43 31 34 50 4A 34 31 38 90 |
| Historical bytes (printable ASCII) | T2C14PJ418 |
| Trailing bytes | 00 9A |
| Checksum (XOR) | 9A — matches |
Raw CPLC fields
The CPLC is programmed by the chip manufacturer during production, is read-only, and does not depend on any applet. Date decoding differs between tools, so only raw values are shown here; fields that identify a single card are omitted.
| Field | Value |
|---|---|
| IC fabricator | 4790 |
| IC type | D321 |
| OS ID | 4700 |
| OS release date | 0000 (invalid date format) |
| OS release level | 0000 |
| IC fabrication date | 3129 (2023-05-09) |
GlobalPlatform data
| Field | Value |
|---|---|
| GP version | 2.3 |
| SCP | SCP2 i=55 |
| JavaCard tag | v3 |
Memory and objects
`JCSystem.getAvailableMemory` reports card-wide free space, not a per-applet budget. The values below are read in the benchmark applet’s constructor, before it allocates its own test buffers, so they describe how much the card can still allocate; at that point nothing but the ISD, the GlobalPlatform support package and the benchmark applet is installed. The transient RESET and DESELECT numbers are two views of the same transient memory and are not additive.
| Persistent | Transient RESET | Transient DESELECT |
|---|---|---|
| 155,124 B | 3,974 B | 3,968 B |
The benchmark applet itself holds 4,316 B persistent and 1,184 B transient (one copy per view), so readings taken while it runs are lower than the values above.
| Commit capacity | 5,120 B |
| Transaction depth | 0 |
| Object deletion supported | ✓ |
Algorithm support
33/58 probes available
| Field | Value |
|---|---|
| Cipher AES-192 ECB | 03 NO_SUCH_ALGORITHM |
| Cipher AES-256 ECB | 03 NO_SUCH_ALGORITHM |
| Signature HMAC-SHA-256 | 03 NO_SUCH_ALGORITHM |
| HMAC-SHA-256 functional (16 B key) | 03 NO_SUCH_ALGORITHM |
| HMAC key build | 03 NO_SUCH_ALGORITHM |
| HMAC setKey 16 B | 03 NO_SUCH_ALGORITHM |
| HMAC init 16 B key | 03 NO_SUCH_ALGORITHM |
| HMAC sign 16 B key | 03 NO_SUCH_ALGORITHM |
| AEADCipher ALG_AES_GCM (getInstance) | 03 NO_SUCH_ALGORITHM |
| AES-GCM functional | 03 NO_SUCH_ALGORITHM |
| built-in EC key pair (default curve) | 01 ILLEGAL_VALUE |
| built-in EC key pair + ECDSA sign | 01 ILLEGAL_VALUE |
| built-in EC key pair + ECDH | 01 ILLEGAL_VALUE |
| HMAC functional (64 B key) | 03 NO_SUCH_ALGORITHM |
| AEADCipher CIPHER_AES_GCM (getInstance) | 03 NO_SUCH_ALGORITHM |
| KeyPair + explicit P-256 + genKeyPair | 01 ILLEGAL_VALUE |
| EC step 5: setG (64 B x||y) | 01 ILLEGAL_VALUE |
| HMAC setKey 32 B | 03 NO_SUCH_ALGORITHM |
| Cipher AES-192 CBC | 03 NO_SUCH_ALGORITHM |
| Cipher AES-256 CBC | 03 NO_SUCH_ALGORITHM |
| HMAC key from LENGTH_HMAC_SHA_256_BLOCK_64 + setKey 8 B | 03 NO_SUCH_ALGORITHM |
| HMAC key from LENGTH_HMAC_SHA_256_BLOCK_64 + setKey 16 B | 03 NO_SUCH_ALGORITHM |
| Signature HMAC-SHA-1 | 03 NO_SUCH_ALGORITHM |
| Signature HMAC-SHA-512 | 03 NO_SUCH_ALGORITHM |
| HMAC-SHA-512 functional (64 B key) | 03 NO_SUCH_ALGORITHM |
All probes
| Field | Value |
|---|---|
| AES key 128 | 00 available |
| AES key 192 | 00 available |
| AES key 256 | 00 available |
| Cipher AES-128 ECB | 00 available |
| Cipher AES-128 CBC | 00 available |
| Cipher AES-192 ECB | 03 NO_SUCH_ALGORITHM |
| Cipher AES-256 ECB | 03 NO_SUCH_ALGORITHM |
| AES-128 ECB functional | 00 available |
| DES key | 00 available |
| 3DES key | 00 available |
| Cipher DES ECB | 00 available |
| MessageDigest SHA-1 | 00 available |
| MessageDigest SHA-256 | 00 available |
| MessageDigest SHA-512 | 00 available |
| Signature HMAC-SHA-256 | 03 NO_SUCH_ALGORITHM |
| HMAC-SHA-256 functional (16 B key) | 03 NO_SUCH_ALGORITHM |
| Signature RSA-SHA-256 PKCS#1 | 00 available |
| RSA public key | 00 available |
| RSA CRT private key | 00 available |
| Cipher RSA PKCS#1 | 00 available |
| Signature ECDSA-SHA-256 | 00 available |
| EC public key build | 00 available |
| EC private key build | 00 available |
| KeyAgreement ECDH | 00 available |
| RandomData | 00 available |
| HMAC key build | 03 NO_SUCH_ALGORITHM |
| HMAC setKey 16 B | 03 NO_SUCH_ALGORITHM |
| HMAC init 16 B key | 03 NO_SUCH_ALGORITHM |
| HMAC sign 16 B key | 03 NO_SUCH_ALGORITHM |
| AEADCipher ALG_AES_GCM (getInstance) | 03 NO_SUCH_ALGORITHM |
| AES-GCM functional | 03 NO_SUCH_ALGORITHM |
| Cipher AES-CTR (getInstance) | 00 available |
| built-in EC key pair (default curve) | 01 ILLEGAL_VALUE |
| built-in EC key pair + ECDSA sign | 01 ILLEGAL_VALUE |
| built-in EC key pair + ECDH | 01 ILLEGAL_VALUE |
| HMAC functional (64 B key) | 03 NO_SUCH_ALGORITHM |
| AEADCipher CIPHER_AES_GCM (getInstance) | 03 NO_SUCH_ALGORITHM |
| KeyPair + explicit P-256 + genKeyPair | 01 ILLEGAL_VALUE |
| EC step 1: build key | 00 available |
| EC step 2: setFieldFP | 00 available |
| EC step 3: setA | 00 available |
| EC step 4: setB | 00 available |
| EC step 5: setG (64 B x||y) | 01 ILLEGAL_VALUE |
| EC step 6: setG (65 B 0x04||x||y) | 00 available |
| EC step 7: setR | 00 available |
| EC step 8: setK | 00 available |
| explicit P-256 pair + genKeyPair | 00 available |
| RSA sign + verify in one command | 00 available |
| AES-CTR functional | 00 available |
| HMAC setKey 32 B | 03 NO_SUCH_ALGORITHM |
| Cipher AES-192 CBC | 03 NO_SUCH_ALGORITHM |
| Cipher AES-256 CBC | 03 NO_SUCH_ALGORITHM |
| RSA sign + verify in one command (persistent pair) | 00 available |
| HMAC key from LENGTH_HMAC_SHA_256_BLOCK_64 + setKey 8 B | 03 NO_SUCH_ALGORITHM |
| HMAC key from LENGTH_HMAC_SHA_256_BLOCK_64 + setKey 16 B | 03 NO_SUCH_ALGORITHM |
| Signature HMAC-SHA-1 | 03 NO_SUCH_ALGORITHM |
| Signature HMAC-SHA-512 | 03 NO_SUCH_ALGORITHM |
| HMAC-SHA-512 functional (64 B key) | 03 NO_SUCH_ALGORITHM |
Performance
Transport cost
An empty command round trip costs about 3–4 ms. Longer payloads need more frames, so the round trip grows; every test removes that fixed cost through the fitted intercept.
| Payload | Median | Min | Max |
|---|---|---|---|
| 0 B | 3.33 ms | 3.21 ms | 3.42 ms |
| 8 B | 3.85 ms | 3.77 ms | 3.98 ms |
| 32 B | 4.91 ms | 4.86 ms | 5.03 ms |
| 64 B | 6.54 ms | 6.45 ms | 6.69 ms |
Key pair generation
RSA-2048 generation is dominated by the prime search and varies widely; P-256 is stable around 135 ms. The first sample of each pair, which also creates the key objects, is excluded.
| Key pair | Status | Median | Min | Max |
|---|---|---|---|---|
| P-256 key pair generation | supported | 142.0 ms | 138.9 ms | 148.3 ms |
| RSA-2048 key pair generation | supported | 7.03 s | 2.11 s | 8.85 s |
Computation
Each unit of n performs 1000 operations. Java Card 3.0.5 classic has no int, so loops and accumulators are short and one command can run at most 32767 units.
| Test | Status | Per operation | Throughput | APDU overhead | R² | Max CV | Verified |
|---|---|---|---|---|---|---|---|
| 16-bit addition | supported | 35.5 µs | 28.1 k/s | 9.87 ms | 1.0000 | 0.4% | ✓ |
| 16-bit multiply-add | supported | 50.0 µs | 20.0 k/s | 9.94 ms | 1.0000 | 0.1% | ✓ |
| 16-bit division | supported | 47.3 µs | 21.1 k/s | 9.73 ms | 1.0000 | 0.4% | ✓ |
| byte array read | supported | 86.8 µs | 11.5 k/s | 9.87 ms | 1.0000 | 0.3% | ✓ |
| byte array write | supported | 82.4 µs | 12.1 k/s | 9.72 ms | 1.0000 | 0.4% | ✓ |
| method call | supported | 66.5 µs | 15.0 k/s | 9.96 ms | 1.0000 | 0.1% | ✓ |
| short array read | supported | 88.3 µs | 11.3 k/s | 9.76 ms | 1.0000 | 0.1% | ✓ |
| short array write | supported | 83.4 µs | 12.0 k/s | 9.82 ms | 1.0000 | 0.4% | ✓ |
Memory
Single-byte accesses are already close to the interpreter loop cost, so the arrayCopy and transaction rows say more about the storage medium.
| Test | Status | Per operation | Throughput | APDU overhead | R² | Max CV | Verified |
|---|---|---|---|---|---|---|---|
| persistent byte write | supported | 2.91 ms | 343 /s | 12.6 ms | 1.0000 | 2.2% | ✓ |
| persistent short write | supported | 2.92 ms | 343 /s | 12.5 ms | 1.0000 | 0.1% | ✓ |
| persistent byte read | supported | 84.6 µs | 11.8 k/s | 9.63 ms | 1.0000 | 0.4% | ✓ |
| persistent short read | supported | 86.5 µs | 11.6 k/s | 9.71 ms | 1.0000 | 0.6% | ✓ |
| transient byte write | supported | 89.3 µs | 11.2 k/s | 9.73 ms | 1.0000 | 0.7% | ✓ |
| transient byte read | supported | 86.2 µs | 11.6 k/s | 9.77 ms | 1.0000 | 0.8% | ✓ |
| atomic arrayCopy, 64 B | supported | 3.34 ms | 300 /s | 1.31 s | 1.0000 | 0.0% | ✓ |
| non-atomic arrayCopy, 64 B | supported | 3.29 ms | 304 /s | 1.31 s | 1.0000 | 0.0% | ✓ |
| transaction per byte write | supported | 3.19 ms | 313 /s | 12.8 ms | 1.0000 | 0.3% | ✓ |
| allocate 32-byte array | supported | 9.43 ms | 106 /s | 8.27 ms | 0.9996 | 1.9% | ✓ |
| allocate 32 B + requestObjectDeletion | supported | 17.1 ms | 58.6 /s | 28.2 ms | 0.9244 † | 0.4% | ✓ |
| persistent block write, 16 B, one transaction | supported | 6.90 ms | 145 /s | 13.2 ms | 1.0000 | 0.3% | ✓ |
| persistent block write, 32 B, one transaction | supported | 10.5 ms | 95.2 /s | 13.2 ms | 1.0000 | 0.3% | ✓ |
| persistent block write, 64 B, one transaction | supported | 18.0 ms | 55.5 /s | 12.6 ms | 1.0000 | 0.2% | ✓ |
| non-atomic arrayCopy, 16 B | supported | 3.07 ms | 326 /s | 1.31 s | 1.0000 | 0.0% | ✓ |
| non-atomic arrayCopy, 32 B | supported | 3.14 ms | 319 /s | 1.31 s | 1.0000 | 0.0% | ✓ |
Cryptography
All block operations use 16-byte input (8 bytes for DES), hashes use a 32-byte message, plus one SHA-256 over 1 KiB.
| Test | Status | Per operation | Throughput | APDU overhead | R² | Max CV | Verified |
|---|---|---|---|---|---|---|---|
| AES-128 ECB encrypt | supported | 1.64 ms | 612 /s | 10.5 ms | 0.9999 | 0.5% | ✓ |
| AES-128 ECB decrypt | supported | 1.65 ms | 605 /s | 10.4 ms | 1.0000 | 0.1% | ✓ |
| AES-192 ECB encrypt | unsupported | probe Cipher AES-192 ECB: NO_SUCH_ALGORITHM | — | — | — | — | — |
| AES-256 ECB encrypt | unsupported | probe Cipher AES-256 ECB: NO_SUCH_ALGORITHM | — | — | — | — | — |
| AES-128 CBC encrypt (zero IV) | supported | 1.67 ms | 599 /s | 11.0 ms | 1.0000 | 0.2% | ✓ |
| AES-128 ECB init + encrypt | supported | 7.97 ms | 125 /s | 4.43 ms | 1.0000 | 0.8% | ✓ |
| DES ECB encrypt | supported | 1.61 ms | 621 /s | 10.6 ms | 1.0000 | 0.4% | ✓ |
| 3DES ECB encrypt | supported | 1.65 ms | 606 /s | 10.4 ms | 1.0000 | 0.5% | ✓ |
| AES-128 CTR encrypt (zero IV) | supported | 1.57 ms | 636 /s | 11.0 ms | 1.0000 | 0.2% | ✓ |
| SHA-256, 32 B message | supported | 2.38 ms | 421 /s | 4.40 ms | 1.0000 | 0.8% | ✓ |
| SHA-256, 1 KiB message | supported | 26.0 ms | 38.5 /s | 4.46 ms | 1.0000 | 0.6% | ✓ |
| SHA-1, 32 B message | supported | 1.88 ms | 533 /s | 4.25 ms | 1.0000 | 0.6% | ✓ |
| SHA-512, 32 B message | supported | 3.71 ms | 270 /s | 4.35 ms | 1.0000 | 0.5% | ✓ |
| HMAC-SHA-256 | unsupported | probe HMAC-SHA-256 functional (16 B key): NO_SUCH_ALGORITHM | — | — | — | — | — |
| TRNG, 32 B | supported | 757.7 µs | 1.32 k/s | 4.43 ms | 1.0000 | 0.4% | ✓ |
| ECDSA P-256 SHA-256 sign | supported | 53.5 ms | 18.7 /s | 19.4 ms | 0.9999 | 2.4% | ✓ |
| ECDSA P-256 SHA-256 verify | not reported | Same cross-command verify defect as RSA: the card returns false for a signature made in an earlier command with a persisted key pair. | — | — | — | — | — |
| ECDH P-256, peer = G | supported | 38.1 ms | 26.2 /s | 7.97 ms | 1.0000 | 0.4% | ✓ |
| RSA-2048 SHA-256 sign | supported | 105.8 ms | 9.5 /s | 33.9 ms | 1.0000 | 0.1% | ✓ |
| RSA-2048 SHA-256 verify | not reported | Signature.verify() returns false on this card for key pairs generated in an earlier command; sign + verify inside one command succeeds, so a verify-only measurement is not trustworthy. | — | — | — | — | — |
| RSA-2048 PKCS#1 encrypt | supported | 8.13 ms | 123 /s | 36.7 ms | 0.9999 | 0.3% | ✓ |
| RSA-2048 PKCS#1 decrypt | supported | 102.7 ms | 9.7 /s | 10.8 ms | 1.0000 | 0.4% | ✓ |
† R² below 0.99: cost is not linear in the iteration count (EEPROM page effects or garbage collection), so the slope is only a local estimate.
Other cards: NXP P71D600 · contactless-d600