Intel SGX SDK's `sgx_aes_ctr_encrypt` and `sgx_aes_ctr_decrypt` take `uint8_t *p_ctr` as their parameter (instead of `const uint8_t *p_ctr`). And the counter block will be actually mutated by these functions during encryption / decryption. Thus, their wrappers also must take a mutable reference to counter block. You can view, comment on, or merge this pull request online at:
https://github.com/apache/incubator-teaclave-sgx-sdk/pull/301 -- Commit Summary -- * Fix mutability of the parameter `ctr` in rsgx_aes_ctr_{encrypt,decrypt} -- File Changes -- M sgx_tcrypto/src/crypto.rs (8) M sgx_types/src/function.rs (4) M sgx_ucrypto/src/crypto.rs (8) -- Patch Links -- https://github.com/apache/incubator-teaclave-sgx-sdk/pull/301.patch https://github.com/apache/incubator-teaclave-sgx-sdk/pull/301.diff -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/apache/incubator-teaclave-sgx-sdk/pull/301
