mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
It used to be that the caller would supply a buffer to write the output to. This created an anti-pattern in multiple places where the caller would allocate a `ByteBuffer` and then use `.bytes()` to provide it to the `PKSystem` method. Then the callee would resize the output buffer and reassign it, but because the resize was on `Bytes` and not on `ByteBuffer`, the caller using the latter would cause a bug. Additionally, in pretty much all cases the buffer was pre-allocated shortly before. |
||
---|---|---|
.. | ||
Crypto.cpp | ||
Crypto.h | ||
Crypto.idl | ||
CryptoAlgorithms.cpp | ||
CryptoAlgorithms.h | ||
CryptoBindings.cpp | ||
CryptoBindings.h | ||
CryptoKey.cpp | ||
CryptoKey.h | ||
CryptoKey.idl | ||
KeyAlgorithms.cpp | ||
KeyAlgorithms.h | ||
SubtleCrypto.cpp | ||
SubtleCrypto.h | ||
SubtleCrypto.idl |