| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent c92e291 commit c535db1
37 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -589,8 +589,6 @@ | |||
| 589 | 589 | 'src/aliased_buffer.h', | |
| 590 | 590 | 'src/aliased_struct.h', | |
| 591 | 591 | 'src/aliased_struct-inl.h', | |
| 592 | - 'src/allocated_buffer.h', | ||
| 593 | - 'src/allocated_buffer-inl.h', | ||
| 594 | 592 | 'src/async_wrap.h', | |
| 595 | 593 | 'src/async_wrap-inl.h', | |
| 596 | 594 | 'src/base_object.h', | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -112,17 +112,6 @@ their underlying data pointers. It is used extensively through `src/crypto` | |||
| 112 | 112 | to make it easier to deal with inputs that allow any `ArrayBuffer`-backed | |
| 113 | 113 | object. | |
| 114 | 114 | ||
| 115 | - ### `AllocatedBuffer` | ||
| 116 | - | ||
| 117 | - The `AllocatedBuffer` utility is defined in `allocated_buffer.h` and is not | ||
| 118 | - specific to `src/crypto`. It is used extensively within `src/crypto` to hold | ||
| 119 | - allocated data that is intended to be output in response to various | ||
| 120 | - crypto functions (generated hash values, or ciphertext, for instance). | ||
| 121 | - | ||
| 122 | - _Currently, we are working to transition away from using `AllocatedBuffer` | ||
| 123 | - to directly using the `v8::BackingStore` API. This will take some time. | ||
| 124 | - New uses of `AllocatedBuffer` should be avoided if possible._ | ||
| 125 | - | ||
| 126 | 115 | ### Key objects | |
| 127 | 116 | ||
| 128 | 117 | Most crypto operations involve the use of keys -- cryptographic inputs | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,10 +1,9 @@ | |||
| 1 | 1 | #include "crypto/crypto_aes.h" | |
| 2 | + #include "async_wrap-inl.h" | ||
| 3 | + #include "base_object-inl.h" | ||
| 2 | 4 | #include "crypto/crypto_cipher.h" | |
| 3 | 5 | #include "crypto/crypto_keys.h" | |
| 4 | 6 | #include "crypto/crypto_util.h" | |
| 5 | - #include "allocated_buffer-inl.h" | ||
| 6 | - #include "async_wrap-inl.h" | ||
| 7 | - #include "base_object-inl.h" | ||
| 8 | 7 | #include "env-inl.h" | |
| 9 | 8 | #include "memory_tracker-inl.h" | |
| 10 | 9 | #include "threadpoolwork-inl.h" | |
@@ -30,7 +29,7 @@ namespace crypto { | |||
| 30 | 29 | namespace { | |
| 31 | 30 | // Implements general AES encryption and decryption for CBC | |
| 32 | 31 | // The key_data must be a secret key. | |
| 33 | - // On success, this function sets out to a new AllocatedBuffer | ||
| 32 | + // On success, this function sets out to a new ByteSource | ||
| 34 | 33 | // instance containing the results and returns WebCryptoCipherStatus::OK. | |
| 35 | 34 | WebCryptoCipherStatus AES_Cipher( | |
| 36 | 35 | Environment* env, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,7 +6,6 @@ | |||
| 6 | 6 | #include "crypto/crypto_cipher.h" | |
| 7 | 7 | #include "crypto/crypto_keys.h" | |
| 8 | 8 | #include "crypto/crypto_util.h" | |
| 9 | - #include "allocated_buffer.h" | ||
| 10 | 9 | #include "env.h" | |
| 11 | 10 | #include "v8.h" | |
| 12 | 11 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -22,7 +22,6 @@ | |||
| 22 | 22 | #include "crypto/crypto_bio.h" | |
| 23 | 23 | #include "base_object-inl.h" | |
| 24 | 24 | #include "memory_tracker-inl.h" | |
| 25 | - #include "allocated_buffer-inl.h" | ||
| 26 | 25 | #include "util-inl.h" | |
| 27 | 26 | ||
| 28 | 27 | #include <openssl/bio.h> | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,6 @@ | |||
| 1 | 1 | #include "crypto/crypto_cipher.h" | |
| 2 | - #include "crypto/crypto_util.h" | ||
| 3 | - #include "allocated_buffer-inl.h" | ||
| 4 | 2 | #include "base_object-inl.h" | |
| 3 | + #include "crypto/crypto_util.h" | ||
| 5 | 4 | #include "env-inl.h" | |
| 6 | 5 | #include "memory_tracker-inl.h" | |
| 7 | 6 | #include "node_buffer.h" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,4 +1,3 @@ | |||
| 1 | - #include "allocated_buffer-inl.h" | ||
| 2 | 1 | #include "base_object-inl.h" | |
| 3 | 2 | #include "env-inl.h" | |
| 4 | 3 | #include "node_buffer.h" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,9 +1,8 @@ | |||
| 1 | 1 | #include "crypto/crypto_dh.h" | |
| 2 | - #include "crypto/crypto_keys.h" | ||
| 3 | - #include "crypto/crypto_groups.h" | ||
| 4 | - #include "allocated_buffer-inl.h" | ||
| 5 | 2 | #include "async_wrap-inl.h" | |
| 6 | 3 | #include "base_object-inl.h" | |
| 4 | + #include "crypto/crypto_groups.h" | ||
| 5 | + #include "crypto/crypto_keys.h" | ||
| 7 | 6 | #include "env-inl.h" | |
| 8 | 7 | #include "memory_tracker-inl.h" | |
| 9 | 8 | #include "threadpoolwork-inl.h" | |
| Back | FazBrowse Home | New Git URL |
0 commit comments