Closed GildedHonour closed 4 years ago
In Elixir or Erlang one can do:
rc4stream = :crypto.crypto_init(:rc4, bin_data, true) # encrypt -> true encoded_bin_data = :crypto.crypto_update(rc4stream, bin_data2)
https://erlang.org/doc/man/crypto.html#crypto_update-2
In cryptonite there're these operations:
cryptonite
a) initialize - clear b) combine and c) generate - unclear
initialize
combine
generate
Which, b or c, is equivalent of crypto_update ?
crypto_update
Also, both of them return (State, ba). Which of those variables contain the output?
(State, ba)
In Elixir or Erlang one can do:
https://erlang.org/doc/man/crypto.html#crypto_update-2
In
cryptonite
there're these operations:a)
initialize
- clear b)combine
and c)generate
- unclearWhich, b or c, is equivalent of
crypto_update
?Also, both of them return
(State, ba)
. Which of those variables contain the output?