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

How to decrypt an encrypted payload? #15

Open
luochen1990 opened this issue Dec 3, 2019 · 1 comment
Open

How to decrypt an encrypted payload? #15

luochen1990 opened this issue Dec 3, 2019 · 1 comment

Comments

@luochen1990
Copy link

luochen1990 commented Dec 3, 2019

Suppose we have the decryption key, is it possible to decrypt an encrypted payload with this DSL?

PS: What I want is to decrypt the packet defined in this script, according to this document.

@luochen1990
Copy link
Author

I think an easy way to support decryption is to add a specifier namd encrypted which works similar to bytes but accepts an extra function argument which has type Bytes -> Bytes, so that we can easily decrypt payloads by providing such a function.

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

1 participant