Skip to content

Implement @lute/crypto with digest function. #187

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

Merged
merged 10 commits into from
Apr 30, 2025
Merged

Implement @lute/crypto with digest function. #187

merged 10 commits into from
Apr 30, 2025

Conversation

aatxe
Copy link
Collaborator

@aatxe aatxe commented Apr 23, 2025

Addresses #161 with the introduction of a runtime library for cryptography.

@aatxe aatxe requested a review from Copilot April 23, 2025 09:40
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR implements a new runtime cryptography library to address issue #161.

  • Introduces cryptographic functions and hash mappings in crypto/src/crypto.cpp.
  • Declares the crypto API in crypto/include/lute/crypto.h.
  • Integrates the crypto library into the CLI via main.cpp.

Reviewed Changes

Copilot reviewed 3 out of 7 changed files in this pull request and generated no comments.

File Description
crypto/src/crypto.cpp Implements crypto functions and hash function mapping.
crypto/include/lute/crypto.h Declares crypto symbols and registers library functions.
cli/main.cpp Registers the crypto library in the global modules.
Files not reviewed (4)
  • CMakeLists.txt: Language not supported
  • Sources.cmake: Language not supported
  • batteries/base64.luau: Language not supported
  • examples/hash.luau: Language not supported
Comments suppressed due to low confidence (1)

crypto/src/crypto.cpp:87

  • The global identifier 'system' is ambiguous for a crypto library. Consider using a more descriptive name such as 'crypto'.
lua_setglobal(L, "system");

@aatxe aatxe changed the title Implement @lute/crypto. Implement @lute/crypto with digest function. Apr 23, 2025
@aatxe aatxe marked this pull request as ready for review April 24, 2025 00:55
@aatxe aatxe merged commit dc85cd3 into primary Apr 30, 2025
6 checks passed
@aatxe aatxe deleted the lute-crypto branch April 30, 2025 04:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant