Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(UndefinedFunctionError) function :crypto.stream_init/3 is undefined or private #118

Closed
santoshturamari opened this issue Jul 25, 2022 · 0 comments

Comments

@santoshturamari
Copy link

santoshturamari commented Jul 25, 2022

Hello,

I am upgrading the Cloak version incrementally from 0.6.2 to 0.7.0
I am able to follow all the steps from the link https://hexdocs.pm/cloak/0.7.0/0.6.x_to_0.7.x.html#install-cloak-0-7
But while running mix cloak.migrate -r MyApp.Repo -s MyApp.Schema (replaced MyApp and Schema), I get the error.

[error] GenServer #PID<0.818.0> terminating
** (UndefinedFunctionError) function :crypto.stream_init/3 is undefined or private
(crypto 5.1.1) :crypto.stream_init(:aes_ctr, {:ok, <<56, 138, 106, 17, 173, 175, 16, 175, 12, 85, 252, 249, 179, 209, 235, 182, 107, 31, 156, 93, 236, 143, 202, 221, 116, 65, 57, 95, 143, 79, 13, 188>>}, <<213, 141, 145, 84, 193, 47, 163, 194, 36, 239, 114, 86, 9, 36, 81, 190>>)
(cloak 0.7.0) lib/cloak/ciphers/deprecated/aes_ctr.ex:39: Cloak.Ciphers.Deprecated.AES.CTR.decrypt/2
(my_future_now 4.0.0) lib/cloak/field.ex:47: MyFutureNow.Encrypted.Binary.load/1
(ecto 3.8.4) lib/ecto/type.ex:918: Ecto.Type.process_loaders/3
(ecto 3.8.4) lib/ecto/repo/queryable.ex:403: Ecto.Repo.Queryable.struct_load!/6
(ecto 3.8.4) lib/ecto/repo/queryable.ex:235: anonymous fn/5 in Ecto.Repo.Queryable.preprocessor/3
(elixir 1.13.4) lib/enum.ex:1593: Enum."-map/2-lists^map/1-0-"/2
(ecto 3.8.4) lib/ecto/repo/queryable.ex:226: Ecto.Repo.Queryable.execute/4
(ecto 3.8.4) lib/ecto/repo/queryable.ex:19: Ecto.Repo.Queryable.all/3
(ecto 3.8.4) lib/ecto/repo/queryable.ex:147: Ecto.Repo.Queryable.one/3
(cloak 0.7.0) lib/cloak/migrator.ex:28: anonymous fn/4 in Cloak.Migrator.migrate_row/4
(ecto_sql 3.8.3) lib/ecto/adapters/sql.ex:1222: anonymous fn/3 in Ecto.Adapters.SQL.checkout_or_transaction/4

Please help to resolve this.

Elixir : 1.13.4

Thanks in Advance.

@danielberkompas danielberkompas closed this as not planned Won't fix, can't repro, duplicate, stale Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants