micro-ecc icon indicating copy to clipboard operation
micro-ecc copied to clipboard

uECC_decompress() gives garbage when passed an already-decompressed key

Open derekatkins opened this issue 3 years ago • 0 comments

Hi, The documentation seems to imply that uECC_decompress() will take either a compressed or uncompressed key and return an uncompressed key. That, however, does not seem to be the case, and passing an uncompressed key to uECC_decompress() results in a garbage result. Is there an "isCompressed?" function I can use to determine whether or not to call the decompression function? Or better yet, how hard would it be to make uECC_decompress() detect whether or not the key is compressed and act appropriately?

derekatkins avatar May 05 '22 17:05 derekatkins