jeroen / openssl

OpenSSL bindings for R
Other
63 stars 19 forks source link

long vectors #58

Closed Andreas-Bio closed 5 years ago

Andreas-Bio commented 5 years ago

Can anything be done about:

Error in rawhash(x, algo, key) : long vectors not supported yet: ../../src/include/Rinlinedfuns.h:138

?

jeroen commented 5 years ago

You should steam-hash from a connection object like this:

path <- system.file("DESCRIPTION", package = 'openssl')
con <- file(path)
openssl::sha1(con)

If your data is already an in-memory raw vector you can wrap it in rawConnection(). If this didn't solve your problem please provide more details (code).