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

779 hash function #937

Merged
merged 8 commits into from
Jan 23, 2024
Merged

779 hash function #937

merged 8 commits into from
Jan 23, 2024

Conversation

Arithmeticus
Copy link
Contributor

First draft of hash function, proposed in #779.

Error message left as to-do item; guidance from editors appreciated.

I opted to leave out wrapper/cryptographic functionality, such as salting, and to demonstrate via example how it could be done by a developer on their own. In my opinion what we need here is a simple atomic function that can be incorporated into other molecular functions.

I may tinker with the prose description up to CG discussion, so comments are welcome.

@Arithmeticus Arithmeticus added XQFO An issue related to Functions and Operators Feature A change that introduces a new feature Propose for V4.0 The WG should consider this item critical to 4.0 Tests Needed Tests need to be written or merged labels Jan 10, 2024
Copy link
Contributor

@ChristianGruen ChristianGruen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, looks good otherwise.

hash functions with implementation-defined semantics.</p>
</fos:rules>
<fos:errors>
<p>A dynamic error is raised ([TODO: error code]) if the effective value of
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FOCH0005 might be an appropriate error code (unfortunately, the XQFO error codes are quite cryptic).

@Arithmeticus
Copy link
Contributor Author

Thanks, Christian, for the excellent suggestions and catches. Latest commit addresses them all, + a few more. To-do / desiderata would be examples using binary input.

Copy link
Contributor

@ChristianGruen ChristianGruen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

…some more observations, all minor.

@benibela
Copy link

I still do not understand why this would be put into fn and not into a separate hash module. Or it could fit into Expath's binary module

md5 and sha-1 are already deprecated anyways

@ndw
Copy link
Contributor

ndw commented Jan 23, 2024

The CG agreed to merge this PR at meeting 062

@ndw ndw merged commit cd15773 into qt4cg:master Jan 23, 2024
2 checks passed
@michaelhkay michaelhkay added Tests Added Tests have been added to the test suites Completed PR has been applied, tests written and tagged, no further action needed and removed Propose for V4.0 The WG should consider this item critical to 4.0 Tests Needed Tests need to be written or merged labels Mar 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Completed PR has been applied, tests written and tagged, no further action needed Feature A change that introduces a new feature Tests Added Tests have been added to the test suites XQFO An issue related to Functions and Operators
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants