anchor.diff:          ]).
   
   %% New interface
  --export([crypto_init/4, crypto_init/3, crypto_init/2, 
  -         crypto_update/2,
  +-export([crypto_init/4,
  +         crypto_update/2, crypto_update/3,
            crypto_one_shot/5
           ]).
   
  
positive.code:             ng_crypto_update_nif(State, Data)
      end.
  
  
  %%%----------------------------------------------------------------
  %%%
  
negative.code:                                          Key :: iodata(),
                                           State :: stream_state() .
  stream_init(rc4 = Type, Key) ->
      Ref = ?COMPAT(ng_crypto_init_nif(alias(Type),
                                       iolist_to_binary(Key), <<>>,
                                       undefined)
                   ),
      {Type, {Ref,flg_undefined}}.
  
  %%%---- stream_encrypt
  