Skip to content

Allow converting a SecretSlice<S> into SecretBox<[S; N]> #1306

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

andrewjstone
Copy link

This PR allows moving the inner secret of a slice into the inner secret of an array without changing the actual allocation. If the conversion fails then the original value is returned.

This prevents a caller from having to clone the secret if they want to further restrict its type.

This PR allows moving the inner secret of a slice into the inner secret
of an array without changing the actual allocation. If the conversion
fails then the original value is returned.

This prevents a caller from having to clone the secret if they want
to further restrict its type.
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.

1 participant