Linux v69820.1blu.de 4.15.0 #1 SMP Mon Sep 30 15:36:27 MSK 2024 x86_64
Apache/2.4.58
Server IP : 195.90.215.149 & Your IP : 216.73.217.80
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
include /
nodejs /
src /
crypto /
Delete
Unzip
Name
Size
Permission
Date
Action
crypto_aes.h
3.02
KB
-rw-r--r--
2024-02-13 21:40
crypto_bio.h
6.18
KB
-rw-r--r--
2024-02-13 21:40
crypto_cipher.h
9.07
KB
-rw-r--r--
2024-02-13 21:40
crypto_clienthello-inl.h
2.6
KB
-rw-r--r--
2024-02-13 21:40
crypto_clienthello.h
4.16
KB
-rw-r--r--
2024-02-13 21:40
crypto_common.h
4.35
KB
-rw-r--r--
2024-02-13 21:40
crypto_context.h
6.21
KB
-rw-r--r--
2024-02-13 21:40
crypto_dh.h
5.04
KB
-rw-r--r--
2024-02-13 21:40
crypto_dsa.h
2.19
KB
-rw-r--r--
2024-02-13 21:40
crypto_ec.h
5.1
KB
-rw-r--r--
2024-02-13 21:40
crypto_hash.h
2.46
KB
-rw-r--r--
2024-02-13 21:40
crypto_hkdf.h
1.56
KB
-rw-r--r--
2024-02-13 21:40
crypto_hmac.h
2.55
KB
-rw-r--r--
2024-02-13 21:40
crypto_keygen.h
8.99
KB
-rw-r--r--
2024-02-13 21:40
crypto_keys.h
12.28
KB
-rw-r--r--
2024-02-13 21:40
crypto_pbkdf2.h
2.01
KB
-rw-r--r--
2024-02-13 21:40
crypto_random.h
3.58
KB
-rw-r--r--
2024-02-13 21:40
crypto_rsa.h
3.92
KB
-rw-r--r--
2024-02-13 21:40
crypto_scrypt.h
2.24
KB
-rw-r--r--
2024-02-13 21:40
crypto_sig.h
4.47
KB
-rw-r--r--
2024-02-13 21:40
crypto_spkac.h
538
B
-rw-r--r--
2024-02-13 21:40
crypto_timing.h
525
B
-rw-r--r--
2024-02-13 21:40
crypto_tls.h
12.04
KB
-rw-r--r--
2024-02-13 21:40
crypto_util.h
25.27
KB
-rw-r--r--
2024-02-13 21:40
crypto_x509.h
4.77
KB
-rw-r--r--
2024-02-13 21:40
Save
Rename
#ifndef SRC_CRYPTO_CRYPTO_SIG_H_ #define SRC_CRYPTO_CRYPTO_SIG_H_ #if defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS #include "base_object.h" #include "crypto/crypto_keys.h" #include "crypto/crypto_util.h" #include "env.h" #include "memory_tracker.h" namespace node { namespace crypto { static const unsigned int kNoDsaSignature = static_cast<unsigned int>(-1); enum DSASigEnc { kSigEncDER, kSigEncP1363 }; class SignBase : public BaseObject { public: enum Error { kSignOk, kSignUnknownDigest, kSignInit, kSignNotInitialised, kSignUpdate, kSignPrivateKey, kSignPublicKey, kSignMalformedSignature }; SignBase(Environment* env, v8::Local<v8::Object> wrap); Error Init(const char* sign_type); Error Update(const char* data, size_t len); // TODO(joyeecheung): track the memory used by OpenSSL types void MemoryInfo(MemoryTracker* tracker) const override; SET_MEMORY_INFO_NAME(SignBase) SET_SELF_SIZE(SignBase) protected: EVPMDPointer mdctx_; }; class Sign : public SignBase { public: static void Initialize(Environment* env, v8::Local<v8::Object> target); static void RegisterExternalReferences(ExternalReferenceRegistry* registry); struct SignResult { Error error; std::unique_ptr<v8::BackingStore> signature; explicit SignResult( Error err, std::unique_ptr<v8::BackingStore>&& sig = nullptr) : error(err), signature(std::move(sig)) {} }; SignResult SignFinal( const ManagedEVPPKey& pkey, int padding, const v8::Maybe<int>& saltlen, DSASigEnc dsa_sig_enc); static void SignSync(const v8::FunctionCallbackInfo<v8::Value>& args); protected: static void New(const v8::FunctionCallbackInfo<v8::Value>& args); static void SignInit(const v8::FunctionCallbackInfo<v8::Value>& args); static void SignUpdate(const v8::FunctionCallbackInfo<v8::Value>& args); static void SignFinal(const v8::FunctionCallbackInfo<v8::Value>& args); Sign(Environment* env, v8::Local<v8::Object> wrap); }; class Verify : public SignBase { public: static void Initialize(Environment* env, v8::Local<v8::Object> target); static void RegisterExternalReferences(ExternalReferenceRegistry* registry); Error VerifyFinal(const ManagedEVPPKey& key, const ByteSource& sig, int padding, const v8::Maybe<int>& saltlen, bool* verify_result); static void VerifySync(const v8::FunctionCallbackInfo<v8::Value>& args); protected: static void New(const v8::FunctionCallbackInfo<v8::Value>& args); static void VerifyInit(const v8::FunctionCallbackInfo<v8::Value>& args); static void VerifyUpdate(const v8::FunctionCallbackInfo<v8::Value>& args); static void VerifyFinal(const v8::FunctionCallbackInfo<v8::Value>& args); Verify(Environment* env, v8::Local<v8::Object> wrap); }; struct SignConfiguration final : public MemoryRetainer { enum Mode { kSign, kVerify }; enum Flags { kHasNone = 0, kHasSaltLength = 1, kHasPadding = 2 }; CryptoJobMode job_mode; Mode mode; ManagedEVPPKey key; ByteSource data; ByteSource signature; const EVP_MD* digest = nullptr; int flags = SignConfiguration::kHasNone; int padding = 0; int salt_length = 0; DSASigEnc dsa_encoding = kSigEncDER; SignConfiguration() = default; explicit SignConfiguration(SignConfiguration&& other) noexcept; SignConfiguration& operator=(SignConfiguration&& other) noexcept; void MemoryInfo(MemoryTracker* tracker) const override; SET_MEMORY_INFO_NAME(SignConfiguration) SET_SELF_SIZE(SignConfiguration) }; struct SignTraits final { using AdditionalParameters = SignConfiguration; static constexpr const char* JobName = "SignJob"; // TODO(@jasnell): Sign request vs. Verify request static constexpr AsyncWrap::ProviderType Provider = AsyncWrap::PROVIDER_SIGNREQUEST; static v8::Maybe<bool> AdditionalConfig( CryptoJobMode mode, const v8::FunctionCallbackInfo<v8::Value>& args, unsigned int offset, SignConfiguration* params); static bool DeriveBits( Environment* env, const SignConfiguration& params, ByteSource* out); static v8::Maybe<bool> EncodeOutput( Environment* env, const SignConfiguration& params, ByteSource* out, v8::Local<v8::Value>* result); }; using SignJob = DeriveBitsJob<SignTraits>; } // namespace crypto } // namespace node #endif // defined(NODE_WANT_INTERNALS) && NODE_WANT_INTERNALS #endif // SRC_CRYPTO_CRYPTO_SIG_H_