rmculpepper / crypto

17 stars 13 forks source link

generate-private-key: could not get implementation #6

Closed jaromirmuller closed 4 years ago

jaromirmuller commented 5 years ago

When I run

(require crypto crypto/sodium racket/match)
(crypto-factories sodium-factory)
(define alice:privkey (generate-private-key 'ecx '((curve x25519))))

then on my macosx I get error:

generate-private-key: could not get implementation
  algorithm: 'ecx

I have no idea what is wrong.

I my ubuntu machine it works fine.

Thank you for any help.

rmculpepper commented 5 years ago

It sounds like Racket cannot find the libsodium foreign library. Where is libsodium installed on your Mac?