python-pyhsm icon indicating copy to clipboard operation
python-pyhsm copied to clipboard

AEAD integrity fail caused by missing '0x' in --key-handle argument

Open jas4711 opened this issue 11 years ago • 1 comments

I have a set of AEADs that, when I use yhsm-decrypt-aead with --key-handle 100900, gives a failure (AEAD integrity check failed) after processing around 100.000 files. When I pass it --key-handle 0x100900 it manages to process all files. I'm not sure this is enough information to track it down, but at least now the issue is recorded and people who run into the same issue can provide additional information.

jas4711 avatar Feb 06 '14 13:02 jas4711

FWIW, it does not happen when processing AEADs for a key handle of 0x100700 or 0x100800. If I try to pass it --key-handle 100a00 it says: Could not parse key_handle '100a0'. This suggests there is some integer conversion arbitrary limit kicking in at some point?

jas4711 avatar Feb 06 '14 13:02 jas4711