Skip to content
This repository has been archived by the owner on Apr 30, 2024. It is now read-only.

[FR] Bind Keys to Version and Purpose #43

Open
paragonie-security opened this issue Aug 5, 2021 · 3 comments
Open

[FR] Bind Keys to Version and Purpose #43

paragonie-security opened this issue Aug 5, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@paragonie-security
Copy link

See https://github.com/paseto-standard/paseto-spec/blob/master/docs/02-Implementation-Guide/03-Algorithm-Lucidity.md

Right now, byte arrays of length 32 are accepted by this API. There's no mechanism to prevent a user from using a v2 public key as a v2 local key.

@paragonie-security paragonie-security added the enhancement New feature or request label Aug 5, 2021
@Mythra
Copy link
Collaborator

Mythra commented Aug 5, 2021

Thanks for the report! I was already working on this as part of my v3/v4 work since this will require a breaking change. (Unfortunately the only thing with the new specs I've seen so far that will.)

@paragonie-security
Copy link
Author

Excellent!

This isn't a vulnerability, necessarily, but we want to make sure misuse resistance is emphasized. :)

@Mythra
Copy link
Collaborator

Mythra commented Aug 5, 2021

Yep, totally understand, and it's worthwhile to do. I'm all for latching foot guns, just need to find time to do it after moving 😅

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants