| /expo/packages/expo-modules-core/src/uuid/lib/ |
| H A D | v35.ts | 5 const bytes: number[] = []; constant 7 bytes.push(parseInt(hex, 16)); 11 return bytes; 16 const bytes: number[] = new Array(str.length); constant 18 bytes[i] = str.charCodeAt(i); 20 return bytes; 26 hashfunc: (bytes: number[] | string) => number[] 45 bytes[6] = (bytes[6] & 0x0f) | version; 46 bytes[8] = (bytes[8] & 0x3f) | 0x80; 50 buf[off + idx] = bytes[idx]; [all …]
|
| H A D | sha1.ts | 24 function sha1(bytes: number[] | string) { 28 if (typeof bytes == 'string') { 30 bytes = new Array(msg.length); 34 bytes.push(0x80); 36 const l = bytes.length / 4 + 2; 44 (bytes[i * 64 + j * 4] << 24) | 45 (bytes[i * 64 + j * 4 + 1] << 16) | 46 (bytes[i * 64 + j * 4 + 2] << 8) | 47 bytes[i * 64 + j * 4 + 3]; 51 M[N - 1][14] = ((bytes.length - 1) * 8) / Math.pow(2, 32); [all …]
|
| /expo/packages/expo-modules-core/build/uuid/lib/ |
| H A D | v35.js | 4 const bytes = []; 6 bytes.push(parseInt(hex, 16)); 9 return bytes; 13 const bytes = new Array(str.length); 15 bytes[i] = str.charCodeAt(i); 17 return bytes; 31 const bytes = hashfunc(namespace.concat(value)); 32 bytes[6] = (bytes[6] & 0x0f) | version; 33 bytes[8] = (bytes[8] & 0x3f) | 0x80; 36 buf[off + idx] = bytes[idx]; [all …]
|
| H A D | sha1.js | 21 function sha1(bytes) { argument 24 if (typeof bytes == 'string') { 26 bytes = new Array(msg.length); 28 bytes[i] = msg.charCodeAt(i); 30 bytes.push(0x80); 31 const l = bytes.length / 4 + 2; 38 (bytes[i * 64 + j * 4] << 24) | 39 (bytes[i * 64 + j * 4 + 1] << 16) | 40 (bytes[i * 64 + j * 4 + 2] << 8) | 41 bytes[i * 64 + j * 4 + 3]; [all …]
|
| H A D | v35.js.map | 1 …bytes: number[] = [];\n uuid.replace(/[a-fA-F0-9]{2}/g, (hex: string) => {\n bytes.push(parseI…
|
| /expo/apps/test-suite/tests/ |
| H A D | Random.js | 9 const bytes = await Random.getRandomBytesAsync(length); 11 expect(bytes instanceof Uint8Array).toBe(true); 12 expect(bytes.length).toBe(length); 17 const bytes = Random.getRandomBytes(length); 19 expect(bytes instanceof Uint8Array).toBe(true); 20 expect(bytes.length).toBe(length);
|
| /expo/ios/versioned/sdk49/ExpoRandom/ |
| H A D | RandomModule.swift | 17 var bytes = [UInt8](repeating: 0, count: length) in getRandomBase64String() variable 18 let status = SecRandomCopyBytes(kSecRandomDefault, length, &bytes) in getRandomBase64String() 23 return Data(bytes).base64EncodedString() in getRandomBase64String()
|
| /expo/packages/expo-random/ios/ |
| H A D | RandomModule.swift | 17 var bytes = [UInt8](repeating: 0, count: length) in getRandomBase64String() variable 18 let status = SecRandomCopyBytes(kSecRandomDefault, length, &bytes) in getRandomBase64String() 23 return Data(bytes).base64EncodedString() in getRandomBase64String()
|
| /expo/ios/versioned/sdk48/ExpoRandom/ |
| H A D | RandomModule.swift | 17 var bytes = [UInt8](repeating: 0, count: length) in getRandomBase64String() variable 18 let status = SecRandomCopyBytes(kSecRandomDefault, length, &bytes) in getRandomBase64String() 23 return Data(bytes).base64EncodedString() in getRandomBase64String()
|
| /expo/ios/versioned/sdk47/ExpoRandom/ |
| H A D | RandomModule.swift | 17 var bytes = [UInt8](repeating: 0, count: length) in getRandomBase64String() variable 18 let status = SecRandomCopyBytes(kSecRandomDefault, length, &bytes) in getRandomBase64String() 23 return Data(bytes).base64EncodedString() in getRandomBase64String()
|
| /expo/ios/versioned/sdk48/ExpoCrypto/ |
| H A D | CryptoModule.swift | 29 var bytes = [UInt8](repeating: 0, count: length) in getRandomBase64String() variable 30 let status = SecRandomCopyBytes(kSecRandomDefault, length, &bytes) in getRandomBase64String() 35 return Data(bytes).base64EncodedString() in getRandomBase64String() 46 data.withUnsafeBytes { bytes in in digestString() 47 let _ = algorithm.digest(bytes.baseAddress, UInt32(data.count), &digest) in digestString()
|
| /expo/ios/versioned/sdk49/ExpoCrypto/ |
| H A D | CryptoModule.swift | 29 var bytes = [UInt8](repeating: 0, count: length) in getRandomBase64String() variable 30 let status = SecRandomCopyBytes(kSecRandomDefault, length, &bytes) in getRandomBase64String() 35 return Data(bytes).base64EncodedString() in getRandomBase64String() 46 data.withUnsafeBytes { bytes in in digestString() 47 let _ = algorithm.digest(bytes.baseAddress, UInt32(data.count), &digest) in digestString()
|
| /expo/packages/expo-crypto/ios/ |
| H A D | CryptoModule.swift | 29 var bytes = [UInt8](repeating: 0, count: length) in getRandomBase64String() variable 30 let status = SecRandomCopyBytes(kSecRandomDefault, length, &bytes) in getRandomBase64String() 35 return Data(bytes).base64EncodedString() in getRandomBase64String() 46 data.withUnsafeBytes { bytes in in digestString() 47 let _ = algorithm.digest(bytes.baseAddress, UInt32(data.count), &digest) in digestString()
|
| /expo/packages/expo-modules-core/android/src/main/java/expo/modules/kotlin/activityresult/ |
| H A D | DataPersistor.kt | 116 val bytes = Base64.decode(this, 0) in String() constant 118 unmarshall(bytes, 0, bytes.size) in String() 128 val bytes = Parcel.obtain().run { in toBase64() constant 130 val bytes = marshall() in toBase64() constant 132 bytes in toBase64() 134 return Base64.encodeToString(bytes, 0) in toBase64()
|
| /expo/android/versioned-abis/expoview-abi49_0_0/src/main/java/abi49_0_0/expo/modules/kotlin/activityresult/ |
| H A D | DataPersistor.kt | 116 val bytes = Base64.decode(this, 0) in String() constant 118 unmarshall(bytes, 0, bytes.size) in String() 128 val bytes = Parcel.obtain().run { in toBase64() constant 130 val bytes = marshall() in toBase64() constant 132 bytes in toBase64() 134 return Base64.encodeToString(bytes, 0) in toBase64()
|
| /expo/android/versioned-abis/expoview-abi47_0_0/src/main/java/abi47_0_0/expo/modules/kotlin/activityresult/ |
| H A D | DataPersistor.kt | 116 val bytes = Base64.decode(this, 0) in String() constant 118 unmarshall(bytes, 0, bytes.size) in String() 128 val bytes = Parcel.obtain().run { in toBase64() constant 130 val bytes = marshall() in toBase64() constant 132 bytes in toBase64() 134 return Base64.encodeToString(bytes, 0) in toBase64()
|
| /expo/android/versioned-abis/expoview-abi48_0_0/src/main/java/abi48_0_0/expo/modules/kotlin/activityresult/ |
| H A D | DataPersistor.kt | 116 val bytes = Base64.decode(this, 0) in String() constant 118 unmarshall(bytes, 0, bytes.size) in String() 128 val bytes = Parcel.obtain().run { in toBase64() constant 130 val bytes = marshall() in toBase64() constant 132 bytes in toBase64() 134 return Base64.encodeToString(bytes, 0) in toBase64()
|
| /expo/packages/expo-secure-store/build/ |
| H A D | SecureStore.js | 151 let bytes = 0; 159 bytes += 4; 165 bytes += codePoint < 0x80 ? 1 : codePoint < 0x800 ? 2 : 3; 167 return bytes;
|
| /expo/packages/expo-secure-store/src/ |
| H A D | SecureStore.ts | 231 let bytes = 0; 242 bytes += 4; 249 bytes += codePoint < 0x80 ? 1 : codePoint < 0x800 ? 2 : 3; 252 return bytes;
|
| /expo/docs/pages/versions/v46.0.0/sdk/ |
| H A D | random.mdx | 3 description: A universal library for generating random bytes. 12 …bytes. With `Random` you can create values equivalent to Node.js core `crypto.randomBytes` API. `e…
|
| /expo/docs/pages/versions/v47.0.0/sdk/ |
| H A D | random.mdx | 3 description: A universal library for generating random bytes. 12 …bytes. With `Random` you can create values equivalent to Node.js core `crypto.randomBytes` API. `e…
|
| /expo/android/vendored/sdk49/@shopify/react-native-skia/cpp/skia/include/private/chromium/ |
| H A D | SkDiscardableMemory.h | 24 static SkDiscardableMemory* Create(size_t bytes); 32 virtual SkDiscardableMemory* create(size_t bytes) = 0;
|
| /expo/ios/vendored/sdk49/@shopify/react-native-skia/cpp/skia/include/private/chromium/ |
| H A D | SkDiscardableMemory.h | 24 static SkDiscardableMemory* Create(size_t bytes); 32 virtual SkDiscardableMemory* create(size_t bytes) = 0;
|
| /expo/android/vendored/unversioned/@shopify/react-native-skia/cpp/skia/include/private/chromium/ |
| H A D | SkDiscardableMemory.h | 24 static SkDiscardableMemory* Create(size_t bytes); 32 virtual SkDiscardableMemory* create(size_t bytes) = 0;
|
| /expo/ios/Exponent/Kernel/AppLoader/ |
| H A D | EXAppLoaderHelpers.swift | 17 withUnsafeBytes { bytes in in sha256() 19 …_ = CC_SHA256(bytes.baseAddress, CC_LONG(count), mutableBytes.bindMemory(to: UInt8.self).baseAddre… in sha256()
|