Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update fips token support #3081

Open
wants to merge 9 commits into
base: master
Choose a base branch
from
Prev Previous commit
Update card-epass2003.c
Fix syntax errors
  • Loading branch information
haijie-ftsafe committed Mar 25, 2024
commit 52e312aa47c91536884226bd4f904d7f70452692
1 change: 1 addition & 0 deletions src/libopensc/card-epass2003.c
Original file line number Diff line number Diff line change
Expand Up @@ -415,6 +415,7 @@ aes128_encrypt_cmac_ft(struct sc_card *card, const unsigned char *key, int keysi
//k1 xor padded data
for (int i=0;i<16;i++){
data2[i]=data2[i]^k1Bin[offset + i];
}
}
alg = sc_evp_cipher(card->ctx, "AES-128-CBC");
r = openssl_enc(alg, key, iv, data2, 16, output);
Expand Down
Loading