Bug: RSA key can't work
nntp4 opened this issue · comments
nntp4 commented
- reading API docs: https://github.com/intel/ehsm/blob/main/docs/API_Reference.md#createkey
- reason
flag --padding_mode doesn't correctly work.
Example:
# 1.
cd ehsm && ./run_with_single.sh
cd test/cli
# 2. here return success
python3 createkey.py --url https://127.0.0.1:9002 --keyspec EH_RSA_4096 --origin EH_INTERNAL_KEY --padding_mode EH_PAD_RSA_PKCS1
# 3.
python3 asymmetric_encrypt.py --url https://127.0.0.1:9002 --keyid 0c96e815-6969-47f1-ac9b-03ba0c5fa888 --data MTIzNA==