Skip to content

Commit

Permalink
fixed incorrect header byte array sizes
Browse files Browse the repository at this point in the history
  • Loading branch information
kaoh committed Nov 23, 2023
1 parent 55a6f55 commit 23bd1d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion globalplatform/src/crypto.h
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ OPGP_ERROR_STATUS calculate_host_cryptogram_SCP02(BYTE S_ENCSessionKey[16],

OPGP_NO_API
OPGP_ERROR_STATUS create_session_key_SCP03(BYTE key[32], DWORD keyLength, BYTE derivationConstant, BYTE cardChallenge[8],
BYTE hostChallenge[8], BYTE sessionKey[16]);
BYTE hostChallenge[8], BYTE sessionKey[32]);

OPGP_NO_API
OPGP_ERROR_STATUS calculate_card_challenge_SCP03(BYTE S_ENC[32],
Expand Down
2 changes: 1 addition & 1 deletion globalplatform/src/globalplatform/globalplatform.h
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,7 @@ OPGP_ERROR_STATUS GP211_set_status(OPGP_CARD_CONTEXT cardContext, OPGP_CARD_INFO
//! \brief GlobalPlatform2.1.1: Mutual authentication.
OPGP_API
OPGP_ERROR_STATUS GP211_mutual_authentication(OPGP_CARD_CONTEXT cardContext, OPGP_CARD_INFO cardInfo,
BYTE baseKey[16], BYTE S_ENC[32], BYTE S_MAC[32],
BYTE baseKey[32], BYTE S_ENC[32], BYTE S_MAC[32],
BYTE DEK[32], DWORD keyLength, BYTE keySetVersion,
BYTE keyIndex, BYTE secureChannelProtocol,
BYTE secureChannelProtocolImpl,
Expand Down

0 comments on commit 23bd1d5

Please sign in to comment.