jeroen / openssl

OpenSSL bindings for R
Other
65 stars 23 forks source link

long vectors #58

Closed Andreas-Bio closed 6 years ago

Andreas-Bio commented 6 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 6 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).