Skip to content

Commit

Permalink
rename to keccak
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed May 16, 2024
1 parent 6ee47af commit 329befe
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export(ed25519_verify)
export(encrypt_envelope)
export(fingerprint)
export(fips_mode)
export(keccak)
export(md4)
export(md5)
export(multihash)
Expand Down Expand Up @@ -136,6 +137,7 @@ export(write_ssh)
export(x25519_diffie_hellman)
export(x25519_keygen)
import(askpass)
importFrom(askpass,askpass)
importFrom(utils,.DollarNames)
useDynLib(openssl,R_RAND_bytes)
useDynLib(openssl,R_aes_any)
Expand Down
2 changes: 1 addition & 1 deletion NEWS
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
2.2.0
- Use new EVP_MD_fetch() api on libssl 3 to find non-default algorithms.
- Add keccak256() hash function
- Add keccak() hash function

2.1.2
- MacOS: avoid linking against legacy versions of openssl
Expand Down
4 changes: 2 additions & 2 deletions R/hash.R
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@ sha512 <- function(x, key = NULL){

#' @rdname hash
#' @export
keccak256 <- function(x, key = NULL){
rawstringhash(x, "keccak-256", key)
keccak <- function(x, size = 256, key = NULL){
rawstringhash(x, paste0("keccak-", size), key)
}

#' @rdname hash
Expand Down
4 changes: 2 additions & 2 deletions man/hash.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 329befe

Please sign in to comment.