No known key found for this signature in database
GPG Key ID: 1D7529BE14E2BBA9
1 changed files with
4 additions and
0 deletions
-
R/tlsh-hash.R
|
|
@ -6,6 +6,10 @@ |
|
|
|
#' @param x length 1 `character` or `raw` vector |
|
|
|
#' @export |
|
|
|
tlsh_simple_hash <- function(x) { |
|
|
|
if (is.na(x) | is.null(x)) { |
|
|
|
warning("Invalid byte stream") |
|
|
|
return(NA_character_) |
|
|
|
} |
|
|
|
if (inherits(x, "character")) { |
|
|
|
x <- x[1] |
|
|
|
if (nchar(x) < 50L) { |
|
|
|