diff options
author | Divy Srivastava <dj.srivastava23@gmail.com> | 2022-03-14 23:14:15 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-14 18:44:15 +0100 |
commit | b4e42953e1d243f2eda20e5be6b845d60b7bf688 (patch) | |
tree | 10b3bfff165f9c04f9174c7c399d44b9b724c3b3 /ext/crypto/encrypt.rs | |
parent | 4e3ed37037a2aa1edeac260dc3463a81d9cf9b88 (diff) |
feat(core): codegen ops (#13861)
Co-authored-by: Aaron O'Mullan <aaron.omullan@gmail.com>
Diffstat (limited to 'ext/crypto/encrypt.rs')
-rw-r--r-- | ext/crypto/encrypt.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/crypto/encrypt.rs b/ext/crypto/encrypt.rs index 63f8af889..b93ca0952 100644 --- a/ext/crypto/encrypt.rs +++ b/ext/crypto/encrypt.rs @@ -16,6 +16,7 @@ use aes_gcm::AeadInPlace; use aes_gcm::NewAead; use aes_gcm::Nonce; use ctr::Ctr; +use deno_core::op; use block_modes::BlockMode; use ctr::cipher::StreamCipher; @@ -79,6 +80,8 @@ pub enum EncryptAlgorithm { key_length: usize, }, } + +#[op] pub async fn op_crypto_encrypt( _state: Rc<RefCell<OpState>>, opts: EncryptOptions, |