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

Add full support for SHA-2 in recipes #288

Open
woodgiraffe opened this issue Jul 20, 2022 · 0 comments
Open

Add full support for SHA-2 in recipes #288

woodgiraffe opened this issue Jul 20, 2022 · 0 comments

Comments

@woodgiraffe
Copy link

Add full support for SHA-2
recipe.yaml/.source currently allows these properties along a .source.url:

                   'md5': {'maxLength': 32,
                           'minLength': 32,
                           'pattern': '^[0-9a-fA-F]{32}$',
                           'title': 'Md5',
                           'type': 'string'},
                   'patches': {'items': {'type': 'string'},
                               'title': 'Patches',
                               'type': 'array'},
                   'sha1': {'maxLength': 40,
                            'minLength': 40,
                            'pattern': '^[0-9a-fA-F]{40}$',
                            'title': 'Sha1',
                            'type': 'string'},
                   'sha256': {'maxLength': 64,
                              'minLength': 64,
                              'pattern': '^[0-9a-fA-F]{64}$',
                              'title': 'Sha256',
                              'type': 'string'},

Sha256 is already supported, however other SHA-2 hash functions are not supported,
yet some projects provide (sometimes exclusively) at least sha512 sums.

I'd propose to support the remaining SHA-2 hash functions ( sha224sums, sha384sums, sha512sums ), or at the very least sha512.

Thanks for your consideration and your efforts!

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

No branches or pull requests

1 participant