检索加密邮件时出错

时间:2016-03-11 15:32:47

标签: encryption xmpp ejabberd xmppframework ejabberd-module

我正在使用ejabberd 15.11。当客户端尝试从存档中检索消息时,错误日志中会出现以下错误。我的客户端正在发送和接收加密消息

错误日志:

[error] <0.2337.0>@gen_iq_handler:process_iq:128
{
    {badmatch,{error,{4,<<"not well-formed (invalid token)">>}}},
    [
        {mod_mam,'-select/8-fun-4-',3,[{file,"src/mod_mam.erl"},{line,681}]},
        {lists,map,2,[{file,"lists.erl"},{line,1237}]},
        {mod_mam,select,8,[{file,"src/mod_mam.erl"},{line,677}]},
        {mod_mam,select_and_send,10,[{file,"src/mod_mam.erl"},{line,577}]},
        {gen_iq_handler,process_iq,6,[{file,"src/gen_iq_handler.erl"},{line,127}]},
        {gen_iq_handler,handle_info,2,[{file,"src/gen_iq_handler.erl"},{line,171}]},
        {gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,593}]},
        {gen_server,handle_msg,5,[{file,"gen_server.erl"},{line,659}]}
    ]
}

1 个答案:

答案 0 :(得分:0)

crypto:block_encrypt(Type,Key,Ivec,PlainText)没有工作,尝试使用crypto:aes_cfb_128_encrypt(Key,Ivec,PlainText)函数。