Skip to content

Conversation

@hreinecke
Copy link
Contributor

We really should not use keys with a length smaller than the hash length as otherwise we would not have enough key data to satisfy security constrains. So update tests to use SHA-512 keys to ensure we always have a large enough key.

We really should not use keys with a length smaller than the hash length,
so use SHA-512 keys to ensure we always have a large enough key.

Signed-off-by: Hannes Reinecke <[email protected]>
local ns

hostkey="$(nvme gen-dhchap-key -n "${def_subsysnqn}" 2> /dev/null)"
hostkey="$(nvme gen-dhchap-key -m 3 -n "${def_subsysnqn}" 2> /dev/null)"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would use this opportunity to start using long option names, --hmac and --nqn

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

By all means. I'll rework the patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants