Skip to content

Key type does not match TLV record #2562

@SKal-byte

Description

@SKal-byte

While verifying the signed image using the public key, I encountered the issue: ‘Key type does not match TLV record’.
I followed the steps below:

python imgtool.py keygen -k ed25519_priv.pem -t ed25519

python imgtool.py getpub -k ed25519_priv.pem -e pem -o ed25519_pub.pem

python imgtool.py sign -k ed25519_priv.pem -v1.0.0 --header-size 32 --align 4 --slot-size 0x108000 --pad --sha 256 --public-key-format hash app.hex output_ed25519.hex

python imgtool.py verify --key ed25519_pub.pem output_ed25519.hex

After running these commands in the command prompt, I got the error: ‘Key type does not match TLV record’.

Image

Please find attached screenshot.

Is it expected scenario?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions