Skip to content

Commit

Permalink
Move api/crypto.h|c++ to api/crypto/crypto.h|c++ (#2318)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasnell authored Jun 24, 2024
1 parent bd09e5b commit d64cc69
Show file tree
Hide file tree
Showing 26 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion src/workerd/api/api-rtti-test.c++
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include <workerd/api/actor.h>
#include <workerd/api/actor-state.h>
#include <workerd/api/cache.h>
#include <workerd/api/crypto.h>
#include <workerd/api/crypto/crypto.h>
#include <workerd/api/encoding.h>
#include <workerd/api/global-scope.h>
#include <workerd/api/html-rewriter.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include <kj/test.h>

#include "crypto-impl.h"
#include "impl.h"
#include "crypto.h"
#include <workerd/api/util.h>
#include <workerd/jsg/jsg.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
// https://opensource.org/licenses/Apache-2.0

#include "crypto-impl.h"
#include "impl.h"
#include <algorithm>
#include <cstdint>
#include <openssl/aes.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
// https://opensource.org/licenses/Apache-2.0

#include "crypto-impl.h"
#include "impl.h"
#include <openssl/rsa.h>
#include <openssl/pem.h>
#include <openssl/ec_key.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
// https://opensource.org/licenses/Apache-2.0

#include "crypto.h"
#include "crypto-impl.h"
#include "streams/standard.h"
#include "impl.h"
#include "../streams/standard.h"
#include "../util.h"
#include <array>
#include <openssl/crypto.h>
#include <openssl/err.h>
#include <workerd/jsg/jsg.h>
#include "util.h"
#include <workerd/io/io-context.h>
#include <workerd/util/uuid.h>
#include <set>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <workerd/jsg/jsg.h>
#include <workerd/jsg/buffersource.h>
#include <openssl/err.h>
#include "streams.h"
#include "../streams.h"

namespace workerd::api {
namespace node {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
// https://opensource.org/licenses/Apache-2.0

#include "crypto-impl.h"
#include "impl.h"
#include <openssl/crypto.h>
#include <openssl/hkdf.h>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
// https://opensource.org/licenses/Apache-2.0

#include "crypto-impl.h"
#include <workerd/api/crypto.h>
#include "impl.h"
#include <workerd/api/crypto/crypto.h>
#include <workerd/io/io-context.h>
#include <openssl/hmac.h>
#include <openssl/mem.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include <kj/test.h>

#include "crypto-impl.h"
#include "impl.h"

#include <openssl/err.h>
#include <openssl/rsa.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
// https://opensource.org/licenses/Apache-2.0

#include "crypto-impl.h"
#include "impl.h"
#include "util.h"
#include <algorithm>
#include <map>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Licensed under the Apache 2.0 license found in the LICENSE file or at:
// https://opensource.org/licenses/Apache-2.0

#include "crypto-impl.h"
#include "impl.h"
#include <openssl/crypto.h>

namespace workerd::api {
Expand Down
2 changes: 1 addition & 1 deletion src/workerd/api/global-scope.c++
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
#include <kj/encoding.h>

#include <workerd/api/cache.h>
#include <workerd/api/crypto.h>
#include <workerd/api/crypto/crypto.h>
#include <workerd/api/events.h>
#include <workerd/api/scheduled.h>
#include <workerd/api/system-streams.h>
Expand Down
2 changes: 1 addition & 1 deletion src/workerd/api/node/crypto-dh.c++
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "crypto.h"
#include <openssl/bn.h>
#include <openssl/dh.h>
#include <workerd/api/crypto-impl.h>
#include <workerd/api/crypto/impl.h>
#include <workerd/jsg/jsg.h>

// Import DH primes if needed.
Expand Down
2 changes: 1 addition & 1 deletion src/workerd/api/node/crypto-hash.c++
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <v8.h>
#include <openssl/evp.h>
#include <workerd/jsg/jsg.h>
#include <workerd/api/crypto-impl.h>
#include <workerd/api/crypto/impl.h>

namespace workerd::api::node {
jsg::Ref<CryptoImpl::HashHandle> CryptoImpl::HashHandle::constructor(
Expand Down
2 changes: 1 addition & 1 deletion src/workerd/api/node/crypto-hkdf.c++
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "crypto.h"
#include <workerd/jsg/jsg.h>
#include <openssl/hkdf.h>
#include <workerd/api/crypto-impl.h>
#include <workerd/api/crypto/impl.h>

namespace workerd::api::node {
kj::Array<kj::byte> CryptoImpl::getHkdf(kj::String hash, kj::Array<kj::byte> key,
Expand Down
2 changes: 1 addition & 1 deletion src/workerd/api/node/crypto-hmac.c++
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <openssl/evp.h>
#include <openssl/hmac.h>
#include <workerd/jsg/jsg.h>
#include <workerd/api/crypto-impl.h>
#include <workerd/api/crypto/impl.h>

namespace workerd::api::node {
jsg::Ref<CryptoImpl::HmacHandle> CryptoImpl::HmacHandle::constructor(jsg::Lock& js,
Expand Down
2 changes: 1 addition & 1 deletion src/workerd/api/node/crypto-keys.c++
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#include "crypto.h"
#include <workerd/api/crypto-impl.h>
#include <workerd/api/crypto/impl.h>
#include <openssl/crypto.h>
#include <map>

Expand Down
2 changes: 1 addition & 1 deletion src/workerd/api/node/crypto-pbkdf2.c++
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#include "crypto.h"
#include <openssl/evp.h>
#include <workerd/jsg/jsg.h>
#include <workerd/api/crypto-impl.h>
#include <workerd/api/crypto/impl.h>

namespace workerd::api::node {

Expand Down
2 changes: 1 addition & 1 deletion src/workerd/api/node/crypto-random.c++
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <openssl/bn.h>
#include <openssl/rand.h>
#include <workerd/jsg/jsg.h>
#include <workerd/api/crypto-impl.h>
#include <workerd/api/crypto/impl.h>

namespace workerd::api::node {
kj::Array<kj::byte> CryptoImpl::randomPrime(uint32_t size, bool safe,
Expand Down
2 changes: 1 addition & 1 deletion src/workerd/api/node/crypto.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#pragma once

#include <workerd/jsg/jsg.h>
#include <workerd/api/crypto.h>
#include <workerd/api/crypto/crypto.h>
#include <openssl/evp.h>

namespace workerd::api::node {
Expand Down
2 changes: 1 addition & 1 deletion src/workerd/api/rtti.c++
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <workerd/api/actor-state.h>
#include <workerd/api/analytics-engine.h>
#include <workerd/api/cache.h>
#include <workerd/api/crypto.h>
#include <workerd/api/crypto/crypto.h>
#include <workerd/api/encoding.h>
#include <workerd/api/events.h>
#include <workerd/api/global-scope.h>
Expand Down
2 changes: 1 addition & 1 deletion src/workerd/server/workerd-api.c++
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <workerd/api/actor-state.h>
#include <workerd/api/analytics-engine.h>
#include <workerd/api/cache.h>
#include <workerd/api/crypto-impl.h>
#include <workerd/api/crypto/impl.h>
#include <workerd/api/encoding.h>
#include <workerd/api/events.h>
#include <workerd/api/global-scope.h>
Expand Down
2 changes: 1 addition & 1 deletion src/workerd/tools/api-encoder.c++
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <workerd/api/actor-state.h>
#include <workerd/api/analytics-engine.h>
#include <workerd/api/cache.h>
#include <workerd/api/crypto.h>
#include <workerd/api/crypto/crypto.h>
#include <workerd/api/encoding.h>
#include <workerd/api/events.h>
#include <workerd/api/global-scope.h>
Expand Down

0 comments on commit d64cc69

Please sign in to comment.