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

dnsdist: Ponder adding Lua bindings for symmetric encryption #14652

Open
rgacogne opened this issue Sep 10, 2024 · 0 comments
Open

dnsdist: Ponder adding Lua bindings for symmetric encryption #14652

rgacogne opened this issue Sep 10, 2024 · 0 comments

Comments

@rgacogne
Copy link
Member

rgacogne commented Sep 10, 2024

  • Program: dnsdist
  • Issue type: Feature request

Short description

DNSdist already has the code needed to do secret key cryptography, relying on libsodium when available and libcrypto otherwise. It would be nice to expose this to the Lua interface, including the FFI one.

Description

Something like this:

AuthenticatedCryptoGenerateKey() -> KeyObject or nil, error
AuthenticatedCryptoImportKey(string) -> KeyObject or nil, error
KeyObject:encrypt(string) -> string or nil, error
KeyObject:decrypt(string -> string or nil, error
KeyObject:export() -> string or nil, error
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant