Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
raphasampaio committed Dec 28, 2024
1 parent 2a3c5a1 commit f9cc8e8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/convert.jl
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
function to_string(vector::Vector{UInt8})::String
return String(vector)
end
# function to_string(vector::Vector{UInt8})::String
# return String(vector)
# end

function to_string(vector::Vector{UInt32})::String
return String(reinterpret(UInt8, vector))
Expand Down
10 changes: 5 additions & 5 deletions src/copy.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ function encrypt(state::Vector{UInt32}, expanded_key::Vector{UInt32})
return state_copy
end

function decrypt(state::Vector{UInt8}, expanded_key::Vector{UInt32})
state_copy = to_vector_uint32(state)
decrypt!(state_copy, expanded_key)
return state_copy
end
# function decrypt(state::Vector{UInt8}, expanded_key::Vector{UInt32})
# state_copy = to_vector_uint32(state)
# decrypt!(state_copy, expanded_key)
# return state_copy
# end

function decrypt(state::Vector{UInt32}, expanded_key::Vector{UInt32})
state_copy = copy(state)
Expand Down

2 comments on commit f9cc8e8

@raphasampaio
Copy link
Owner Author

Choose a reason for hiding this comment

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

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

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

Registration pull request updated: JuliaRegistries/General/122103

Tip: Release Notes

Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.

@JuliaRegistrator register

Release notes:

## Breaking changes

- blah

To add them here just re-invoke and the PR will be updated.

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.1.0 -m "<description of version>" f9cc8e833203045866775570b21c2b05361a5574
git push origin v0.1.0

Please sign in to comment.