/* * Copyright (C) 2020 Sony Interactive Entertainment Inc. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF * THE POSSIBILITY OF SUCH DAMAGE. */ #include "config.h" #include "SerializedCryptoKeyWrap.h" #include "CryptoAlgorithmAES_CTR.h" #if ENABLE(WEB_CRYPTO) // #include "NotImplemented.h" namespace WebCore { std::optional> defaultWebCryptoMasterKey() { // notImplemented(); return std::nullopt; } // Initially these helper functions were intended to perform KEK wrapping and unwrapping, // but this is not required anymore, despite the function names and the Mac implementation // still indicating otherwise. // See https://bugs.webkit.org/show_bug.cgi?id=173883 for more info. bool wrapSerializedCryptoKey(const Vector& masterKey, const Vector& key, Vector& result) { UNUSED_PARAM(masterKey); // No wrapping performed -- the serialized key data is copied into the `result` variable. result = Vector(key); return true; } bool unwrapSerializedCryptoKey(const Vector& masterKey, const Vector& wrappedKey, Vector& key) { UNUSED_PARAM(masterKey); // No unwrapping performed -- the serialized key data is copied into the `key` variable. key = Vector(wrappedKey); return true; } } // namespace WebCore #endif // ENABLE(WEB_CRYPTO) lol Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
AgeCommit message (Expand)AuthorFilesLines
2021-10-24Upgrade to latest peechyGravatar Jarred Sumner 7-4534/+4535
2021-10-24Fix build errorGravatar Jarred Sumner 1-4/+4
2021-10-24[JSON] Use a special lexer variant only for JSONGravatar Jarred Sumner 1-19/+13
2021-10-24[internal] Remove more unused code and move the `is_ascii_only` boolean to on...Gravatar Jarred Sumner 1-28/+7
2021-10-24[internal] Handle allocation failureGravatar Jarred Sumner 1-1/+1
2021-10-24[internal] Use isPresent() instead of checking slice lenGravatar Jarred Sumner 1-2/+2
2021-10-24:scissors: Dead codeGravatar Jarred Sumner 1-4/+0
2021-10-24[internal] Tweak build system to better support unit tests in ZigGravatar Jarred Sumner 11-19/+146
2021-10-24[picohttp] failing testGravatar Jarred Sumner 1-1/+2
2021-10-24[.env loader] Environment variables are strings.Gravatar Jarred Sumner 1-49/+37
2021-10-24[internal] more inliningGravatar Jarred Sumner 1-2/+2
2021-10-24[internal] :scissors: dead codeGravatar Jarred Sumner 1-1/+0
2021-10-24[internal] some inliningGravatar Jarred Sumner 1-21/+25
2021-10-24[internal] :snowflake::snowman:Gravatar Jarred Sumner 1-1/+19
2021-10-24[.env loader] Tests passGravatar Jarred Sumner 1-25/+50
2021-10-23Comment out WASM test since WASM is currently unsupportedGravatar Jarred Sumner 1-20/+21
2021-10-23Remove very outdated testsGravatar Jarred Sumner 1-128/+23
2021-10-23Remove unused feature flag `parallel_bun`Gravatar Jarred Sumner 1-62/+33
2021-10-23Add flag for dumping the environment variablesGravatar Jarred Sumner 1-8/+19
2021-10-23[internal] Add easier commands for running unit testsGravatar Jarred Sumner 2-12/+129
2021-10-23Handle edgecase when returning errorsGravatar Jarred Sumner 1-1/+1
2021-10-23Fix bug with MutableString.ensureValidIdentifierGravatar Jarred Sumner 2-12/+17
2021-10-23[internal] Remove more dead code, add script to find .zig files that aren't i...Gravatar Jarred Sumner 15-82/+17
2021-10-23No more iguanaTLSGravatar Jarred Sumner 1-5/+0
2021-10-23[internal] :scissors: dead codeGravatar Jarred Sumner 32-7971/+0
2021-10-23Load environment variables into defines when possibleGravatar Jarred Sumner 1-0/+8
2021-10-23[Bundler] When modules fail to resolve, continue building so that you can see...Gravatar Jarred Sumner 1-29/+111
2021-10-23[JS Parser] Parser errors should _always_ report an error locationGravatar Jarred Sumner 2-3/+11
2021-10-23Support string-only definesGravatar Jarred Sumner 1-53/+65
2021-10-23[`.env` loader] Parse values as JavaScript string literals instead of JSONGravatar Jarred Sumner 1-52/+170
2021-10-23Add "process.env" to global objectGravatar Jarred Sumner 4-18/+36
2021-10-23Rewrite the CodepointIterator to fix some bugsGravatar Jarred Sumner 1-81/+89
2021-10-23[Lexer] Improve lexing performance by 2% via a bitfield for checking identifi...Gravatar Jarred Sumner 3-2317/+7178
2021-10-23[Bun.js] Escape unicode identifiers. This is necessary because we load source...Gravatar Jarred Sumner 1-18/+81
2021-10-23[Bun.js] Add `Bun.env` and support `process.env` for non-transpiled environme...Gravatar Jarred Sumner 1-2/+129
2021-10-21[lexer] `0x200C` and `0x200D` are valid ID_Continue charactersGravatar Jarred Sumner 1-6/+29
2021-10-21Split tests into separate .json fileGravatar Jarred Sumner 1-22/+1