Hello!
2012/11/8 307413083:
> 我现在使用resty.aes 加密,指定了 key 和iv,加密结果和java的怎么也不匹配。
>
> 我想确认一下 resty.aes ffi 的aes 算法的填充方式是什么? 或者指点一下怎么和java应用对接起来
> 谢谢!
>
应当与 OpenSSL 的行为相同,因为 resty.aes 模块直接通过 LuaJIT FFI 调用 OpenSSL 的 C API:
https://github.com/agentzh/lua-resty-string/blob/master/lib/resty/aes.lua
P.S. 同时抄送给 openresty 中文邮件列表:https://groups.google.com/group/openresty
Best regards,
-agentzh