anchor.diff:      Packet   = snmp_pdus:enc_message_only(Message2),
       %% 6.3.1.2-4 is done by the crypto function
       %% 6.3.1.4
  -    MAC = binary_to_list(crypto:hmac(md5, AuthKey, Packet, 12)),
  +    MAC = binary_to_list(crypto:macN(hmac, md5, AuthKey, Packet, 12)),
       %% ?vtrace("md5_auth_out -> crypto (md5) encoded"
       %%  	    "~n   MAC: ~w", [MAC]),
       %% 6.3.1.5
  
positive.code:     %% 7.3.2.3
      Packet2 = patch_packet(binary_to_list(Packet)),
      %% 7.3.2.5
      MAC = binary_to_list(crypto:hmac(sha, AuthKey, Packet2, 12)),
      %% 7.3.2.6
      MAC == AuthParams;
  sha_auth_in(_AuthKey, _AuthParams, _Packet) ->
  
negative.code:     IV = list_to_binary(snmp_misc:str_xor(PreIV, Salt)),
      TailLen = (8 - (length(Data) rem 8)) rem 8,
      Tail = mk_tail(TailLen),
      EncData = crypto:crypto_one_time(?BLOCK_CIPHER_DES, 
                                       DesKey, IV, [Data,Tail], true),
      {ok, binary_to_list(EncData), Salt}.
  
  des_decrypt(PrivKey, MsgPrivParams, EncData) 
  