GP Session Key Calculator (SCP02 / SCP03)

GlobalPlatform secure channel protocol Session Key derivation tool. Supports SCP02 (3DES-CBC key derivation + MAC calculation) and SCP03 (AES-CMAC KDF key derivation). Enter static keys and derivation data to obtain S-ENC, S-MAC, S-DEK, S-RMAC session keys. Essential for smart card security domain development and APDU secure messaging.

SCP02 Session Key Derivation

Derive session keys from static keys using 3DES-CBC.

Default: 0182 (SCP02 standard constant)

SCP03 Session Key Derivation (AES-CMAC KDF)

Derive session keys from static keys using AES-128-CMAC KDF (NIST SP 800-108).

Typically Host Challenge (8B) + Card Challenge (8B)

Secure Messaging MAC Calculator

Calculate APDU secure messaging MAC values. Supports SCP02 Retail-MAC and SCP03 AES-CMAC.

SCP02 vs SCP03

SCP02: Uses 3DES keys (16 bytes / 128-bit double-length), CBC mode session key derivation. Key types: S-ENC (encryption), S-MAC (message authentication), S-DEK (data encryption key). Derivation constant: 0182.

SCP03: Uses AES-128 keys (16 bytes), CMAC-based KDF session key derivation. Key types: S-ENC, S-MAC, S-RMAC (response MAC). KDF Label = "SCP03" (ASCII).

Security Notice

All computation is performed locally in your browser. Key data is never uploaded to any server. Always use in an isolated environment and clear inputs after use. Never enter production keys in a public network environment.