Skip to content

Follow up questions on Windows AES one-shot encryptor #63595

Answered by vcsjones
Sergio0694 asked this question in General
Discussion options

You must be logged in to vote

but can't we rent this buffer from a pool instead? Or better yet, given this ILiteSymmetricCipher instance is used inline by the caller, couldn't the caller just stack allocate a block, copy the IV to it, pass a pointer to the cipher, and then it could just use that pointer assuming it points to a fixed block with the IV, which could then just directly be passed to the native API?

It probably can be done that way. I had that same comment in #55601 but the work around it hasn't been done.

couldn't we cache this imported key when using the instance methods of AesImplementation

We can, and that is an outstanding item in #55601, but it's somewhat non-trivial because the one shots are curr…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@Sergio0694
Comment options

Sergio0694 Jan 10, 2022
Collaborator Author

@vcsjones
Comment options

@Sergio0694
Comment options

Sergio0694 Jan 11, 2022
Collaborator Author

Answer selected by Sergio0694
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants