-
Notifications
You must be signed in to change notification settings - Fork 3
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
[azurekv] Support whole file encrption #63
base: main
Are you sure you want to change the base?
Conversation
Signed-off-by: Lukas Jarosch <[email protected]>
// We know this is an RSA Key so... | ||
rsaKey, ok := rawkey.(*rsa.PublicKey) | ||
if !ok { | ||
panic(fmt.Sprintf("expected ras key, got %T", rawkey)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo, an why not returning the error?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
because its a poc 😄
panic(fmt.Sprintf("expected ras key, got %T", rawkey)) | ||
} | ||
// As this is a demo just dump the key to the console | ||
fmt.Println(rsaKey) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should be removed before the merge
Signed-off-by: Lukas Jarosch [email protected]