/third_party/openssl/doc/ |
D | perlvars.pm | 14 $OpenSSL::safe::opt_v_synopsis = "" 45 $OpenSSL::safe::opt_v_item = "" 60 $OpenSSL::safe::opt_x_synopsis = "" 67 $OpenSSL::safe::opt_x_item = "" 76 $OpenSSL::safe::opt_name_synopsis = "" 78 $OpenSSL::safe::opt_name_item = "" 85 $OpenSSL::safe::opt_r_synopsis = "" 88 $OpenSSL::safe::opt_r_item = "" 94 $OpenSSL::safe::opt_provider_synopsis = "" 98 $OpenSSL::safe::opt_provider_item = "" [all …]
|
/third_party/skia/tests/ |
D | SafeMathTest.cpp | 17 SkSafeMath safe; in DEF_TEST() local 18 REPORTER_ASSERT(r, safe.add(halfMax, halfMax) == 2 * halfMax); in DEF_TEST() 19 REPORTER_ASSERT(r, safe); in DEF_TEST() 20 REPORTER_ASSERT(r, safe.add(halfMax, halfMaxPlus1) == max); in DEF_TEST() 21 REPORTER_ASSERT(r, safe); in DEF_TEST() 22 REPORTER_ASSERT(r, safe.add(max, 1) == 0); in DEF_TEST() 23 REPORTER_ASSERT(r, !safe); in DEF_TEST() 27 SkSafeMath safe; in DEF_TEST() local 28 (void) safe.add(max, max); in DEF_TEST() 29 REPORTER_ASSERT(r, !safe); in DEF_TEST() [all …]
|
/third_party/flutter/skia/tests/ |
D | SafeMathTest.cpp | 17 SkSafeMath safe; in DEF_TEST() local 18 REPORTER_ASSERT(r, safe.add(halfMax, halfMax) == 2 * halfMax); in DEF_TEST() 19 REPORTER_ASSERT(r, safe); in DEF_TEST() 20 REPORTER_ASSERT(r, safe.add(halfMax, halfMaxPlus1) == max); in DEF_TEST() 21 REPORTER_ASSERT(r, safe); in DEF_TEST() 22 REPORTER_ASSERT(r, safe.add(max, 1) == 0); in DEF_TEST() 23 REPORTER_ASSERT(r, !safe); in DEF_TEST() 27 SkSafeMath safe; in DEF_TEST() local 28 (void) safe.add(max, max); in DEF_TEST() 29 REPORTER_ASSERT(r, !safe); in DEF_TEST() [all …]
|
/third_party/flutter/skia/src/core/ |
D | SkTextBlob.cpp | 41 SkSafeMath* safe) { in StorageSize() argument 44 auto glyphSize = safe->mul(glyphCount, sizeof(uint16_t)), in StorageSize() 45 posSize = safe->mul(PosCount(glyphCount, positioning, safe), sizeof(SkScalar)); in StorageSize() 49 size = safe->add(size, safe->alignUp(glyphSize, 4)); in StorageSize() 50 size = safe->add(size, posSize); in StorageSize() 53 size = safe->add(size, sizeof(uint32_t)); in StorageSize() 54 size = safe->add(size, safe->mul(glyphCount, sizeof(uint32_t))); in StorageSize() 55 size = safe->add(size, textSize); in StorageSize() 58 return safe->alignUp(size, sizeof(void*)); in StorageSize() 99 SkSafeMath safe; in NextUnchecked() local [all …]
|
D | SkVertices.cpp | 32 SkSafeMath safe; in Sizes() local 34 fVSize = safe.mul(vertexCount, sizeof(SkPoint)); in Sizes() 35 fTSize = hasTexs ? safe.mul(vertexCount, sizeof(SkPoint)) : 0; in Sizes() 36 fCSize = hasColors ? safe.mul(vertexCount, sizeof(SkColor)) : 0; in Sizes() 37 fBISize = hasBones ? safe.mul(vertexCount, sizeof(BoneIndices)) : 0; in Sizes() 38 fBWSize = hasBones ? safe.mul(vertexCount, sizeof(BoneWeights)) : 0; in Sizes() 41 fISize = safe.mul(indexCount, sizeof(uint16_t)); in Sizes() 60 fISize = safe.mul(numFanTris, 3 * sizeof(uint16_t)); in Sizes() 63 fTotal = safe.add(sizeof(SkVertices), in Sizes() 64 safe.add(fVSize, in Sizes() [all …]
|
D | SkMask.cpp | 59 SkSafeMath safe; in PrepareDestination() local 65 size_t dstW = safe.add(src.fBounds.width(), safe.add(radiusX, radiusX)); in PrepareDestination() 67 size_t dstH = safe.add(src.fBounds.height(), safe.add(radiusY, radiusY)); in PrepareDestination() 69 size_t toAlloc = safe.mul(dstW, dstH); in PrepareDestination() 72 if (!SkTFitsIn<int>(dstW) || !SkTFitsIn<int>(dstH) || toAlloc > INT_MAX || !safe) { in PrepareDestination()
|
D | SkPaint.cpp | 292 static uint32_t unpack_v68(SkPaint* paint, uint32_t packed, SkSafeRange& safe) { in unpack_v68() argument 296 paint->setBlendMode(safe.checkLE(packed & 0xFF, SkBlendMode::kLastMode)); in unpack_v68() 298 paint->setStrokeCap(safe.checkLE(packed & 0x3, SkPaint::kLast_Cap)); in unpack_v68() 300 paint->setStrokeJoin(safe.checkLE(packed & 0x3, SkPaint::kLast_Join)); in unpack_v68() 302 paint->setStyle(safe.checkLE(packed & 0x3, SkPaint::kStrokeAndFill_Style)); in unpack_v68() 304 paint->setFilterQuality(safe.checkLE(packed & 0x3, kLast_SkFilterQuality)); in unpack_v68() 340 SkSafeRange safe; in Unflatten_PreV68() local 366 paint->setStrokeCap(safe.checkLE((tmp >> 24) & 0xFF, SkPaint::kLast_Cap)); in Unflatten_PreV68() 367 paint->setStrokeJoin(safe.checkLE((tmp >> 16) & 0xFF, SkPaint::kLast_Join)); in Unflatten_PreV68() 368 paint->setStyle(safe.checkLE((tmp >> 12) & 0xF, SkPaint::kStrokeAndFill_Style)); in Unflatten_PreV68() [all …]
|
D | SkPath_serial.cpp | 104 SkSafeMath safe; in writeToMemory() local 106 size = safe.add(size, safe.mul(pts, sizeof(SkPoint))); in writeToMemory() 107 size = safe.add(size, safe.mul(cnx, sizeof(SkScalar))); in writeToMemory() 108 size = safe.add(size, safe.mul(vbs, sizeof(uint8_t))); in writeToMemory() 109 size = safe.alignUp(size, 4); in writeToMemory() 110 if (!safe) { in writeToMemory()
|
D | SkImageInfo.cpp | 52 SkSafeMath safe; in computeByteSize() local 53 size_t bytes = safe.add(safe.mul(safe.addInt(this->height(), -1), rowBytes), in computeByteSize() 54 safe.mul(this->width(), this->bytesPerPixel())); in computeByteSize() 55 return safe ? bytes : SIZE_MAX; in computeByteSize()
|
/third_party/skia/src/core/ |
D | SkTextBlob.cpp | 45 SkSafeMath* safe) { in StorageSize() argument 48 auto glyphSize = safe->mul(glyphCount, sizeof(uint16_t)), in StorageSize() 49 posSize = safe->mul(PosCount(glyphCount, positioning, safe), sizeof(SkScalar)); in StorageSize() 53 size = safe->add(size, safe->alignUp(glyphSize, 4)); in StorageSize() 54 size = safe->add(size, posSize); in StorageSize() 57 size = safe->add(size, sizeof(uint32_t)); in StorageSize() 58 size = safe->add(size, safe->mul(glyphCount, sizeof(uint32_t))); in StorageSize() 59 size = safe->add(size, textSize); in StorageSize() 62 return safe->alignUp(size, sizeof(void*)); in StorageSize() 103 SkSafeMath safe; in NextUnchecked() local [all …]
|
D | SkVertices.cpp | 42 SkSafeMath safe; in Sizes() local 44 fVSize = safe.mul(desc.fVertexCount, sizeof(SkPoint)); in Sizes() 45 fTSize = desc.fHasTexs ? safe.mul(desc.fVertexCount, sizeof(SkPoint)) : 0; in Sizes() 46 fCSize = desc.fHasColors ? safe.mul(desc.fVertexCount, sizeof(SkColor)) : 0; in Sizes() 49 fISize = safe.mul(desc.fIndexCount, sizeof(uint16_t)); in Sizes() 68 fISize = safe.mul(numFanTris, 3 * sizeof(uint16_t)); in Sizes() 71 fTotal = safe.add(sizeof(SkVertices), in Sizes() 72 safe.add(fVSize, in Sizes() 73 safe.add(fTSize, in Sizes() 74 safe.add(fCSize, in Sizes() [all …]
|
D | SkMask.cpp | 59 SkSafeMath safe; in PrepareDestination() local 65 size_t dstW = safe.add(src.fBounds.width(), safe.add(radiusX, radiusX)); in PrepareDestination() 67 size_t dstH = safe.add(src.fBounds.height(), safe.add(radiusY, radiusY)); in PrepareDestination() 69 size_t toAlloc = safe.mul(dstW, dstH); in PrepareDestination() 72 if (!SkTFitsIn<int>(dstW) || !SkTFitsIn<int>(dstH) || toAlloc > INT_MAX || !safe) { in PrepareDestination()
|
D | SkPath_serial.cpp | 107 SkSafeMath safe; in writeToMemory() local 109 size = safe.add(size, safe.mul(pts, sizeof(SkPoint))); in writeToMemory() 110 size = safe.add(size, safe.mul(cnx, sizeof(SkScalar))); in writeToMemory() 111 size = safe.add(size, safe.mul(vbs, sizeof(uint8_t))); in writeToMemory() 112 size = safe.alignUp(size, 4); in writeToMemory() 113 if (!safe) { in writeToMemory()
|
D | SkImageInfo.cpp | 63 SkSafeMath safe; in computeByteSize() local 64 size_t bytes = safe.add(safe.mul(safe.addInt(this->height(), -1), rowBytes), in computeByteSize() 65 safe.mul(this->width(), this->bytesPerPixel())); in computeByteSize() 71 return (safe.ok() && (bytes <= kMaxSigned32BitSize)) ? bytes : SIZE_MAX; in computeByteSize()
|
/third_party/python/Lib/urllib/ |
D | parse.py | 802 def __init__(self, safe): argument 804 self.safe = _ALWAYS_SAFE.union(safe) 812 res = chr(b) if b in self.safe else '%{:02X}'.format(b) 816 def quote(string, safe='/', encoding=None, errors=None): argument 868 return quote_from_bytes(string, safe) 870 def quote_plus(string, safe='', encoding=None, errors=None): argument 879 return quote(string, safe, encoding, errors) 880 if isinstance(safe, str): 884 string = quote(string, safe + space, encoding, errors) 887 def quote_from_bytes(bs, safe='/'): argument [all …]
|
/third_party/openssl/crypto/bn/ |
D | bn_prime.c | 22 static int probable_prime(BIGNUM *rnd, int bits, int safe, prime_t *mods, 24 static int probable_prime_dh(BIGNUM *rnd, int bits, int safe, prime_t *mods, 123 int BN_generate_prime_ex2(BIGNUM *ret, int bits, int safe, in BN_generate_prime_ex2() argument 137 } else if (add == NULL && safe && bits < 6 && bits != 3) { in BN_generate_prime_ex2() 160 if (!probable_prime(ret, bits, safe, mods, ctx)) in BN_generate_prime_ex2() 163 if (!probable_prime_dh(ret, bits, safe, mods, add, rem, ctx)) in BN_generate_prime_ex2() 171 if (!safe) { in BN_generate_prime_ex2() 213 int BN_generate_prime_ex(BIGNUM *ret, int bits, int safe, in BN_generate_prime_ex() argument 222 retval = BN_generate_prime_ex2(ret, bits, safe, add, rem, cb, ctx); in BN_generate_prime_ex() 478 static int probable_prime(BIGNUM *rnd, int bits, int safe, prime_t *mods, in probable_prime() argument [all …]
|
/third_party/openssl/doc/man1/ |
D | openssl-srp.pod.in | 2 {- OpenSSL::safe::output_do_not_edit_headers(); -} 23 {- $OpenSSL::safe::opt_engine_synopsis -}{- $OpenSSL::safe::opt_r_synopsis -} 24 {- $OpenSSL::safe::opt_provider_synopsis -} 25 {- $OpenSSL::safe::opt_config_synopsis -} 93 {- $OpenSSL::safe::opt_engine_item -} 95 {- $OpenSSL::safe::opt_r_item -} 97 {- $OpenSSL::safe::opt_provider_item -} 99 {- $OpenSSL::safe::opt_config_item -} 101 {- $OpenSSL::safe::opt_r_synopsis -}
|
D | openssl-rand.pod.in | 2 {- OpenSSL::safe::output_do_not_edit_headers(); -} 15 {- $OpenSSL::safe::opt_engine_synopsis -}{- $OpenSSL::safe::opt_r_synopsis -} 16 {- $OpenSSL::safe::opt_provider_synopsis -} 50 {- $OpenSSL::safe::opt_engine_item -} 52 {- $OpenSSL::safe::opt_r_item -} 54 {- $OpenSSL::safe::opt_provider_item -}
|
D | openssl-verify.pod.in | 2 {- OpenSSL::safe::output_do_not_edit_headers(); -} 19 {- $OpenSSL::safe::opt_name_synopsis -} 20 {- $OpenSSL::safe::opt_trust_synopsis -} 21 {- $OpenSSL::safe::opt_engine_synopsis -}{- $OpenSSL::safe::opt_v_synopsis -} 22 {- $OpenSSL::safe::opt_provider_synopsis -} 78 {- $OpenSSL::safe::opt_name_item -} 80 {- $OpenSSL::safe::opt_engine_item -} 87 {- $OpenSSL::safe::opt_trust_item -} 89 {- $OpenSSL::safe::opt_v_item -} 91 {- $OpenSSL::safe::opt_provider_item -}
|
D | openssl-prime.pod.in | 2 {- OpenSSL::safe::output_do_not_edit_headers(); -} 15 [B<-safe>] 16 {- $OpenSSL::safe::opt_provider_synopsis -} 48 =item B<-safe> 50 When used with B<-generate>, generates a "safe" prime. If the number 53 {- $OpenSSL::safe::opt_provider_item -}
|
D | openssl-gendsa.pod.in | 2 {- OpenSSL::safe::output_do_not_edit_headers(); -} 27 {- $OpenSSL::safe::opt_r_synopsis -} 28 {- $OpenSSL::safe::opt_engine_synopsis -}{- $OpenSSL::safe::opt_provider_synopsis -} 64 {- $OpenSSL::safe::opt_r_item -} 66 {- $OpenSSL::safe::opt_engine_item -} 74 {- $OpenSSL::safe::opt_provider_item -}
|
/third_party/node/deps/npm/node_modules/ini/ |
D | ini.js | 5 exports.safe = safe 31 out += safe(k + '[]') + separator + safe(item) + '\n' 36 out += safe(k) + separator + safe(val) + eol 40 out = '[' + safe(opt.section) + ']' + eol + out 159 function safe (val) { function
|
/third_party/node/lib/internal/per_context/ |
D | primordials.js | 299 const makeSafe = (unsafe, safe) => { argument 305 if (!ReflectGetOwnPropertyDescriptor(safe.prototype, key)) { 319 ReflectDefineProperty(safe.prototype, key, desc); 323 copyProps(unsafe.prototype, safe.prototype); 325 copyProps(unsafe, safe); 327 ObjectSetPrototypeOf(safe.prototype, null); 328 ObjectFreeze(safe.prototype); 329 ObjectFreeze(safe); 330 return safe;
|
/third_party/node/deps/npm/node_modules/safer-buffer/ |
D | Readme.md | 34 ## Why not [safe-buffer](https://npmjs.com/safe-buffer)? 36 _In short: while `safe-buffer` serves as a polyfill for the new API, it allows old API usage and 39 `safe-buffer` could be used safely to get the new API while still keeping support for older 41 I found out that `safe-buffer` is itself causing problems in some cases. 52 …e 'Buffer.alloc()' or 'Buffer.from()' (use 'https://www.npmjs.com/package/safe-buffer' for '<4.5.0… 59 Let's now throw in `safe-buffer`! 62 $ cat example.safe-buffer.js 63 const Buffer = require('safe-buffer').Buffer 65 $ standard example.safe-buffer.js 66 $ ./node-v6.13.0-linux-x64/bin/node example.safe-buffer.js [all …]
|
/third_party/openssl/doc/man7/ |
D | EVP_PKEY-DH.pod | 11 "safe" domain parameters that are associated with approved named safe-prime 14 applications that cannot be upgraded to use the approved safe-prime groups. 35 Sets or gets a string that associates a B<DH> or B<DHX> named safe prime group 69 Used for DH generation of safe primes using the old safe prime generator code. 71 It is recommended to use a named safe prime group instead, if domain parameter 74 Randomly generated safe primes are not allowed by FIPS, so setting this value 75 for the OpenSSL FIPS provider will instead choose a named safe prime group 104 This specifies that a named safe prime name will be chosen using the "pbits" 109 A safe prime generator. See the "safeprime-generator" type above. 141 named safe prime group instead. [all …]
|