Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tkn20: prevent panics on key gen errors #409

Merged
merged 1 commit into from
Mar 6, 2023
Merged

tkn20: prevent panics on key gen errors #409

merged 1 commit into from
Mar 6, 2023

Commits on Mar 6, 2023

  1. tkn20: prevent panics on key gen errors

    Both SystemSecretKey.KeyGen and Setup try to dereference the return
    values from abe/cpabe/tkn20/internal/tkn without checking for an error.
    On error, these values are nil and the functions panic.
    
    This is easy to reproduce by passing an io.Reader that returns an error.
    tmthrgd committed Mar 6, 2023
    Configuration menu
    Copy the full SHA
    3dfe4a5 View commit details
    Browse the repository at this point in the history