Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set_hmac_sha256 with NDK #71

Open
NicoAdrian opened this issue Jan 12, 2023 · 4 comments
Open

set_hmac_sha256 with NDK #71

NicoAdrian opened this issue Jan 12, 2023 · 4 comments

Comments

@NicoAdrian
Copy link

NicoAdrian commented Jan 12, 2023

Any plan to add NDK support to the set_hmac_sha256 directive ?

Would be great if I can call it in Lua like this ndk.set_var.set_hmac_sha256

@zhuizhuhaomeng
Copy link
Contributor

I think you can calculate the hmac_sha256 in lua and then set the value by ngx.var.your_var_name = hmac_sha256_val

@NicoAdrian
Copy link
Author

NicoAdrian commented Jan 13, 2023

I think you can calculate the hmac_sha256 in lua and then set the value by ngx.var.your_var_name = hmac_sha256_val

There is no built-in way in openresty to calculate an hmac_sha256 directly in Lua, or am I missing something ?

@zhuizhuhaomeng
Copy link
Contributor

@NicoAdrian
Copy link
Author

https://github.com/fffonion/lua-resty-openssl#restyopensslhmac how about this?

Will give it a try, thanks. Still, no plan to add NDK support for the directive set_hmac_sha256 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants