licel / jcardsim

https://jcardsim.org
223 stars 123 forks source link

AES-GCM (ALG_AES_GCM) is not supported. #153

Closed mvondracek closed 2 years ago

mvondracek commented 4 years ago

Hello,

support for AES-GCM (ALG_AES_GCM) was introduced in Java Card Platform, Classic Edition 3.0.5 in javacardx.crypto.AEADCipher class.

According to current README.md, the simulator supports 3.0.5. However, when I try to use this mode, CryptoException.NO_SUCH_ALGORITHM is thrown. It has reason code set to CryptoException.NO_SUCH_ALGORITHM.

AEADCipher c = (AEADCipher) AEADCipher.getInstance(AEADCipher.ALG_AES_GCM, false);

Based on observation of simulator's CipherProxy class, I assume that the simulator currently does not fully support ALG_AES_GCM from 3.0.5. Is that right?

Is there a list of currently unsupported features concerning 3.0.5 (3.0.5u3)? Thanks.

licel commented 2 years ago

187