top | item 28535133

(no title)

mdriley | 4 years ago

"EncryptData"

https://github.com/microsoft/omi/blob/e4d72481fa2f805148c9c8...

discuss

order

isoprophlex|4 years ago

This can't be real, I thought. This is just a stub in a random commit somewhere.

But no. Same code is on master branch atm.

What is this, a joke?

"Never attribute to humor, that which is adequately explained by incompetence"

watermelon0|4 years ago

At least it's fast. :D

haimez|4 years ago

An encryption scheme with truly memcpy-like performance characteristics.

cube00|4 years ago

Let's hope memcpy hasn't been #defined

dspillett|4 years ago

I'm going to give some benefit of the doubt and assume¹ that is some sort of stub for dev/test, replaced by one of a selection of proper symmetric encryption options in any production use. Amusing anyway.

¹ Anyone with more spare time than I want to look deeper to confirm or contradict?

formerly_proven|4 years ago

It's used there: https://github.com/microsoft/omi/blob/e4d72481fa2f805148c9c8...

Also note that neither EncryptData nor DecryptData have any way of passing a key in their API. So it's very unlikely that these implementations could be conditionally compiled in place of a real implementation (but they're the only definition of these functions in the repository anyway).