Home
last modified time | relevance | path

Searched refs:ByteSource (Results 1 – 25 of 47) sorted by relevance

12

/third_party/node/src/crypto/
Dcrypto_util.cc98 const ByteSource* passphrase = *static_cast<const ByteSource**>(u); in PasswordCallback()
330 ByteSource::ByteSource(ByteSource&& other) noexcept in SetFipsCrypto() function in node::crypto::ByteSource
337 ByteSource::~ByteSource() { in SetFipsCrypto()
341 ByteSource& ByteSource::operator=(ByteSource&& other) noexcept { in SetFipsCrypto()
352 std::unique_ptr<BackingStore> ByteSource::ReleaseToBackingStore() { in SetFipsCrypto()
369 Local<ArrayBuffer> ByteSource::ToArrayBuffer(Environment* env) { in SetFipsCrypto()
374 MaybeLocal<Uint8Array> ByteSource::ToBuffer(Environment* env) { in SetFipsCrypto()
379 ByteSource ByteSource::FromBIO(const BIOPointer& bio) { in SetFipsCrypto()
383 ByteSource::Builder out(bptr->length); in SetFipsCrypto()
388 ByteSource ByteSource::FromEncodedString(Environment* env, in SetFipsCrypto()
[all …]
Dcrypto_spkac.cc51 ByteSource ExportPublicKey(Environment* env, in ExportPublicKey()
54 if (!bio) return ByteSource(); in ExportPublicKey()
65 if (!spki) return ByteSource(); in ExportPublicKey()
68 if (!pkey) return ByteSource(); in ExportPublicKey()
70 if (PEM_write_bio_PUBKEY(bio.get(), pkey.get()) <= 0) return ByteSource(); in ExportPublicKey()
72 return ByteSource::FromBIO(bio); in ExportPublicKey()
84 ByteSource pkey = ExportPublicKey(env, input); in ExportPublicKey()
90 ByteSource ExportChallenge(const ArrayBufferOrViewContents<char>& input) { in ExportChallenge()
101 return ByteSource(); in ExportChallenge()
105 return (buf_size >= 0) ? ByteSource::Allocated(buf, buf_size) : ByteSource(); in ExportChallenge()
[all …]
Dcrypto_util.h212 class ByteSource {
238 ByteSource release(std::optional<size_t> resize = std::nullopt) && {
247 ByteSource out = ByteSource::Allocated(data_, size_);
258 ByteSource() = default;
259 ByteSource(ByteSource&& other) noexcept;
260 ~ByteSource();
262 ByteSource& operator=(ByteSource&& other) noexcept;
264 ByteSource(const ByteSource&) = delete;
265 ByteSource& operator=(const ByteSource&) = delete;
289 static ByteSource Allocated(void* data, size_t size);
[all …]
Dcrypto_rsa.cc193 ByteSource* out) { in RSA_JWK_Export()
203 const ByteSource& in, in RSA_Cipher()
204 ByteSource* out) { in RSA_Cipher()
236 ByteSource::Builder buf(out_len); in RSA_Cipher()
265 ByteSource* out) { in DoExport()
347 const ByteSource& in, in DoCipher()
348 ByteSource* out) { in DoCipher()
446 ByteSource n = ByteSource::FromEncodedString(env, n_value.As<String>()); in ImportJWKRsaKey()
447 ByteSource e = ByteSource::FromEncodedString(env, e_value.As<String>()); in ImportJWKRsaKey()
483 ByteSource d = ByteSource::FromEncodedString(env, d_value.As<String>()); in ImportJWKRsaKey()
[all …]
Dcrypto_random.h38 ByteSource* out_);
43 ByteSource* unused,
75 ByteSource* out_);
80 ByteSource* unused,
111 ByteSource* out);
116 ByteSource* out,
Dcrypto_aes.h43 ByteSource iv; // Used for both iv or counter
44 ByteSource additional_data;
45 ByteSource tag; // Used only for authenticated modes (GCM)
75 const ByteSource& in,
76 ByteSource* out);
Dcrypto_pbkdf2.h29 ByteSource pass;
30 ByteSource salt;
61 ByteSource* out);
66 ByteSource* out,
Dcrypto_hkdf.h19 ByteSource salt;
20 ByteSource info;
48 ByteSource* out);
53 ByteSource* out,
Dcrypto_scrypt.h29 ByteSource pass;
30 ByteSource salt;
63 ByteSource* out);
68 ByteSource* out,
Dcrypto_random.cc31 ByteSource* unused, in EncodeOutput()
62 ByteSource* unused) { in DeriveBits()
73 ByteSource* unused, in EncodeOutput()
154 ByteSource* unused) { in DeriveBits()
200 ByteSource* out) { in DeriveBits()
210 ByteSource::Builder buf(1); in DeriveBits()
219 ByteSource* out, in EncodeOutput()
Dcrypto_aes.cc39 const ByteSource& in, in AES_Cipher()
40 ByteSource* out) { in AES_Cipher()
127 ByteSource::Builder buf(buf_len); in AES_Cipher()
227 const ByteSource& in, in AES_CTR_Cipher2()
270 const ByteSource& in, in AES_CTR_Cipher()
271 ByteSource* out) { in AES_CTR_Cipher()
296 ByteSource::Builder buf(in.size()); in AES_CTR_Cipher()
320 ByteSource::Foreign(in.data<char>(), input_size_part1), in AES_CTR_Cipher()
335 ByteSource::Foreign(in.data<char>() + input_size_part1, in AES_CTR_Cipher()
436 params->iv = ByteSource::Foreign(kDefaultWrapIV, strlen(kDefaultWrapIV)); in UseDefaultIV()
[all …]
Dcrypto_hmac.h46 ByteSource data;
47 ByteSource signature;
79 ByteSource* out);
84 ByteSource* out,
Dcrypto_hash.h39 ByteSource digest_;
44 ByteSource in;
74 ByteSource* out);
79 ByteSource* out,
Dcrypto_sig.h86 const ByteSource& sig,
116 ByteSource data;
117 ByteSource signature;
153 ByteSource* out);
158 ByteSource* out,
Dcrypto_sig.cc171 ByteSource ConvertSignatureToP1363( in ValidateDSAParameters()
174 const ByteSource& signature) { in ValidateDSAParameters()
177 return ByteSource(); in ValidateDSAParameters()
181 ByteSource::Builder out(n * 2); in ValidateDSAParameters()
185 return ByteSource(); in ValidateDSAParameters()
190 ByteSource ConvertSignatureToDER( in ValidateDSAParameters()
192 ByteSource&& out) { in ValidateDSAParameters()
200 return ByteSource(); in ValidateDSAParameters()
216 return ByteSource(); in ValidateDSAParameters()
220 return ByteSource::Allocated(data, len); in ValidateDSAParameters()
[all …]
Dcrypto_rsa.h75 ByteSource* out);
82 ByteSource label;
111 const ByteSource& in,
112 ByteSource* out);
Dcrypto_ec.cc447 ByteSource* out, in EncodeOutput()
487 ByteSource* out) { in DeriveBits()
509 ByteSource::Builder buf(len); in DeriveBits()
538 ByteSource::Builder buf(len); in DeriveBits()
630 ByteSource* out) { in EC_Raw_Export()
656 ByteSource::Builder data(len); in EC_Raw_Export()
671 ByteSource::Builder data(len); in EC_Raw_Export()
696 ByteSource* out) { in DoExport()
727 ByteSource::Builder data(need); in DoExport()
747 *out = ByteSource::FromBIO(bio); in DoExport()
[all …]
Dcrypto_keys.h70 NonCopyableMaybe<ByteSource> passphrase_;
134 static std::shared_ptr<KeyObjectData> CreateSecret(ByteSource key);
153 explicit KeyObjectData(ByteSource symmetric_key);
160 const ByteSource symmetric_key_;
396 ByteSource out_;
401 ByteSource* out);
405 ByteSource* out);
Dcrypto_hmac.cc94 ByteSource key = ByteSource::FromSecretKeyBytes(env, args[1]); in HmacInit()
228 ByteSource* out) { in DeriveBits()
248 ByteSource::Builder buf(EVP_MAX_MD_SIZE); in DeriveBits()
263 ByteSource* out, in EncodeOutput()
Dcrypto_hash.cc183 ByteSource::Builder digest(len); in HashDigest()
235 ByteSource* out, in EncodeOutput()
288 ByteSource* out) { in DeriveBits()
300 ByteSource::Builder buf(length); in DeriveBits()
327 ByteSource content = ByteSource::FromStringOrBuffer(env, args[1]); in InternalVerifyIntegrity()
Dcrypto_pbkdf2.cc45 ByteSource* out, in EncodeOutput()
117 ByteSource* out) { in DeriveBits()
118 ByteSource::Builder buf(params.length); in DeriveBits()
Dcrypto_scrypt.cc49 ByteSource* out, in EncodeOutput()
120 ByteSource* out) { in DeriveBits()
121 ByteSource::Builder buf(params.length); in DeriveBits()
Dcrypto_dh.h109 ByteSource* out);
137 ByteSource* out_);
142 ByteSource* out,
Dcrypto_ec.h83 ByteSource* out_);
88 ByteSource* out,
141 ByteSource* out);
/third_party/protobuf/src/google/protobuf/stubs/
Dbytestream.h107 class PROTOBUF_EXPORT ByteSource {
109 ByteSource() {} in ByteSource() function
110 virtual ~ByteSource() {} in ~ByteSource()
145 GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(ByteSource);
296 class PROTOBUF_EXPORT ArrayByteSource : public ByteSource {
327 class PROTOBUF_EXPORT LimitByteSource : public ByteSource {
330 LimitByteSource(ByteSource* source, size_t limit);
341 ByteSource* source_;

12