Home
last modified time | relevance | path

Searched refs:padded (Results 1 – 25 of 235) sorted by relevance

12345678910

/external/openssh/
Dhash.c33 unsigned char padded[256]; in crypto_hash_sha512() local
44 for (i = 0;i < inlen;++i) padded[i] = in[i]; in crypto_hash_sha512()
45 padded[inlen] = 0x80; in crypto_hash_sha512()
48 for (i = inlen + 1;i < 119;++i) padded[i] = 0; in crypto_hash_sha512()
49 padded[119] = bytes >> 61; in crypto_hash_sha512()
50 padded[120] = bytes >> 53; in crypto_hash_sha512()
51 padded[121] = bytes >> 45; in crypto_hash_sha512()
52 padded[122] = bytes >> 37; in crypto_hash_sha512()
53 padded[123] = bytes >> 29; in crypto_hash_sha512()
54 padded[124] = bytes >> 21; in crypto_hash_sha512()
[all …]
/external/grpc-grpc/test/core/gpr/
Dstring_test.cc229 char* padded; in test_leftpad() local
233 padded = gpr_leftpad("foo", ' ', 5); in test_leftpad()
234 GPR_ASSERT(0 == strcmp(" foo", padded)); in test_leftpad()
235 gpr_free(padded); in test_leftpad()
237 padded = gpr_leftpad("foo", ' ', 4); in test_leftpad()
238 GPR_ASSERT(0 == strcmp(" foo", padded)); in test_leftpad()
239 gpr_free(padded); in test_leftpad()
241 padded = gpr_leftpad("foo", ' ', 3); in test_leftpad()
242 GPR_ASSERT(0 == strcmp("foo", padded)); in test_leftpad()
243 gpr_free(padded); in test_leftpad()
[all …]
/external/tensorflow/tensorflow/python/kernel_tests/
Dpad_op_test.py277 padded = array_ops.pad(inp, array_ops.placeholder(dtypes.int32))
278 self.assertEqual([None, None, None, None], padded.get_shape().as_list())
282 padded = array_ops.pad(inp, [[2, 2], [2, 2]])
283 self.assertEqual([None, None], padded.get_shape().as_list())
287 padded = array_ops.pad(inp, array_ops.placeholder(dtypes.int32))
288 self.assertAllEqual(None, padded.get_shape().ndims)
296 padded = array_ops.pad(inp, [[1, 2], unknown])
297 self.assertEqual([7, None], padded.get_shape().as_list())
301 padded = array_ops.pad(inp, [[unknown, 0], [1, 2]])
302 self.assertEqual([None, 7], padded.get_shape().as_list())
[all …]
/external/python/cryptography/tests/hazmat/primitives/
Dtest_padding.py29 def test_invalid_padding(self, size, padded): argument
32 unpadder.update(padded)
65 def test_pad(self, size, unpadded, padded): argument
69 assert result == padded
83 def test_unpad(self, size, unpadded, padded): argument
85 result = unpadder.update(padded)
135 def test_invalid_padding(self, size, padded): argument
138 unpadder.update(padded)
171 def test_pad(self, size, unpadded, padded): argument
175 assert result == padded
[all …]
/external/eigen/unsupported/test/
Dcxx11_tensor_padding.cpp28 Tensor<float, 4, DataLayout> padded; in test_simple_padding() local
29 padded = tensor.pad(paddings); in test_simple_padding()
31 VERIFY_IS_EQUAL(padded.dimension(0), 2+0); in test_simple_padding()
32 VERIFY_IS_EQUAL(padded.dimension(1), 3+3); in test_simple_padding()
33 VERIFY_IS_EQUAL(padded.dimension(2), 5+7); in test_simple_padding()
34 VERIFY_IS_EQUAL(padded.dimension(3), 7+0); in test_simple_padding()
41 VERIFY_IS_EQUAL(padded(i,j,k,l), tensor(i,j-2,k-3,l)); in test_simple_padding()
43 VERIFY_IS_EQUAL(padded(i,j,k,l), 0.0f); in test_simple_padding()
Dcxx11_tensor_ref.cpp216 Tensor<float, 4> padded = ref.shuffle(shuffle_dims).pad(trivial); in test_nested_ops_with_ref() local
217 VERIFY_IS_EQUAL(padded.dimension(0), 2+0); in test_nested_ops_with_ref()
218 VERIFY_IS_EQUAL(padded.dimension(1), 3+3); in test_nested_ops_with_ref()
219 VERIFY_IS_EQUAL(padded.dimension(2), 5+7); in test_nested_ops_with_ref()
220 VERIFY_IS_EQUAL(padded.dimension(3), 7+0); in test_nested_ops_with_ref()
227 VERIFY_IS_EQUAL(padded(i,j,k,l), t(i,j-2,k-3,l)); in test_nested_ops_with_ref()
229 VERIFY_IS_EQUAL(padded(i,j,k,l), 0.0f); in test_nested_ops_with_ref()
/external/libaom/libaom/test/
Dedge_detect_test.cc84 static void free_pad_8tap(uint8_t *padded, int width, bool high_bd) { in free_pad_8tap() argument
86 aom_free(CONVERT_TO_SHORTPTR(padded - (width + 7) * 3 - 3)); in free_pad_8tap()
88 aom_free(padded - (width + 7) * 3 - 3); in free_pad_8tap()
290 std::unique_ptr<uint8_t[], Pad8TapConvolveDeleter> padded( in TEST_P() local
293 ASSERT_NE(padded, nullptr); in TEST_P()
295 ASSERT_LE(556, av1_edge_exists(padded.get(), stride_8tap(width), width, in TEST_P()
298 ASSERT_GE(560, av1_edge_exists(padded.get(), stride_8tap(width), width, in TEST_P()
325 std::unique_ptr<uint8_t[], Pad8TapConvolveDeleter> padded( in hardcoded_blur_test_aux() local
328 ASSERT_NE(padded, nullptr); in hardcoded_blur_test_aux()
329 av1_gaussian_blur(padded.get(), stride_8tap(w), w, h, output.get(), high_bd, in hardcoded_blur_test_aux()
[all …]
/external/python/cryptography/tests/hypothesis/
Dtest_padding.py20 padded = padder.update(data) + padder.finalize()
22 assert unpadder.update(padded) + unpadder.finalize() == data
32 padded = padder.update(data) + padder.finalize()
34 assert unpadder.update(padded) + unpadder.finalize() == data
/external/boringssl/src/crypto/fipsmodule/ec/
Dmake_ec_scalar_base_mult_tests.go26 padded := make([]byte, len(max.Bytes()))
28 copy(padded[len(padded)-len(b):], b)
29 fmt.Printf("%s = %x\n", key, padded)
/external/flatbuffers/tests/FlatBuffers.Test/
DFlatBuffersFuzzTests.cs441 byte[] padded = new byte[] in TestVTableWithSomeElements()
456 Assert.ArrayEqual(padded, builder.DataBuffer.ToFullArray()); in TestVTableWithSomeElements()
459 byte[] unpadded = new byte[padded.Length - 12]; in TestVTableWithSomeElements()
460 Buffer.BlockCopy(padded, 12, unpadded, 0, unpadded.Length); in TestVTableWithSomeElements()
527 byte[] padded = new byte[] in TestBunchOfBools()
555 Assert.ArrayEqual(padded, builder.DataBuffer.ToFullArray()); in TestBunchOfBools()
558 byte[] unpadded = new byte[padded.Length - 28]; in TestBunchOfBools()
559 Buffer.BlockCopy(padded, 28, unpadded, 0, unpadded.Length); in TestBunchOfBools()
575 byte[] padded = new byte[] in TestBunchOfBoolsSizePrefixed()
603 Assert.ArrayEqual(padded, builder.DataBuffer.ToFullArray()); in TestBunchOfBoolsSizePrefixed()
[all …]
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_MirrorPad.pbtxt6 The input tensor to be padded.
19 The padded tensor.
25 Either `REFLECT` or `SYMMETRIC`. In reflect mode the padded regions
26 do not include the borders, while in symmetric mode the padded regions
43 The padded size of each dimension D of the output is:
Dapi_def_PaddedBatchDataset.pbtxt14 A list of int64 tensors representing the desired padded shapes
17 padded to the maximum size of all batch elements.
Dapi_def_PaddedBatchDatasetV2.pbtxt21 A list of int64 tensors representing the desired padded shapes
24 padded to the maximum size of all batch elements.
Dapi_def_MirrorPadGrad.pbtxt29 summary: "Gradient op for `MirrorPad` op. This op folds a mirror-padded tensor."
31 This operation folds the padded areas of `input` by `MirrorPad` according to the
Dapi_def_SpaceToBatchND.pbtxt27 input according to `paddings` to produce `padded` of shape `padded_shape`.
29 2. Reshape `padded` to `reshaped_padded` of shape:
137 input are optionally zero padded according to `paddings`. See below for a
/external/tensorflow/tensorflow/compiler/xla/service/gpu/
Dtree_reduction_rewriter.cc108 HloInstruction *padded = [&] { in RewriteReduction() local
126 VLOG(1) << "Generated padding: " << padded->ToString(); in RewriteReduction()
128 for (int64 dim_idx = 0; dim_idx < padded->shape().dimensions_size(); in RewriteReduction()
134 reshaped_dimensions.push_back(padded->shape().dimensions(dim_idx)); in RewriteReduction()
141 HloInstruction::CreateBitcast(reshaped_shape, padded)); in RewriteReduction()
/external/webrtc/webrtc/base/
Dbase64.cc140 unsigned char qbuf[4], bool* padded) in GetNextQuantum() argument
181 *padded = true; in GetNextQuantum()
183 *padded = false; in GetNextQuantum()
223 bool success = true, padded; in DecodeFromArrayTemplate() local
227 data, len, &dpos, qbuf, &padded); in DecodeFromArrayTemplate()
245 if ((DO_PAD_YES == pad_flags) && !padded) { in DecodeFromArrayTemplate()
/external/objenesis/tck/src/main/java/org/objenesis/tck/
DTextReporter.java244 StringBuilder padded = new StringBuilder(text); in pad() local
245 while(padded.length() < width) { in pad()
246 padded.append(' '); in pad()
248 return padded.toString(); in pad()
/external/python/rsa/rsa/
Dpkcs1.py172 padded = _pad_for_encryption(message, keylength)
174 payload = transform.bytes2int(padded)
275 padded = _pad_for_signing(cleartext, keylength)
277 payload = transform.bytes2int(padded)
/external/boringssl/src/ssl/test/runner/
Dkey_agreement.go199 padded := make([]byte, rsaSize(cert.PublicKey.(*rsa.PublicKey)))
200 padded[1] = 2
201 nonZeroRandomBytes(padded[2:len(padded)-len(sentPreMasterSecret)-1], config.rand())
202 copy(padded[len(padded)-len(sentPreMasterSecret):], sentPreMasterSecret)
205 padded[1] = 3
207 padded[0] = 1
209 for i := 2; i < len(padded); i++ {
210 if padded[i] == 0 {
211 padded[i]++
216 encrypted, err := rsaRawEncrypt(cert.PublicKey.(*rsa.PublicKey), padded)
/external/python/oauth2client/oauth2client/
D_helpers.py104 padded = b64string + b'=' * (4 - len(b64string) % 4)
105 return base64.urlsafe_b64decode(padded)
/external/fonttools/Lib/fontTools/varLib/
Dmerger.py175 padded = [[glyph if glyph in dict_set else default
180 padded = [[dict_set[glyph] if glyph in dict_set else default
183 return order, padded
240 glyphs, padded = _merge_GlyphOrders(merger.font,
248 for i,values in enumerate(padded):
260 merger.mergeLists(self.Value, padded)
270 glyphs, padded = _merge_GlyphOrders(merger.font,
283 for i,values in enumerate(padded):
302 merger.mergeLists(self.PairValueRecord, padded)
318 glyphs, padded = _merge_GlyphOrders(merger.font,
[all …]
/external/python/cryptography/docs/hazmat/primitives/
Dpadding.rst40 being padded to.
83 being padded to.
111 :return bytes: Returns the data that was padded or unpadded.
127 padded data.
/external/tensorflow/tensorflow/lite/delegates/gpu/common/transformations/
Dmerge_padding_with_test.cc116 auto padded = graph.NewValue(); in TEST() local
127 ASSERT_TRUE(graph.SetProducer(pad_node->id, padded->id).ok()); in TEST()
131 ASSERT_TRUE(graph.AddConsumer(add_node->id, padded->id).ok()); in TEST()
/external/autotest/server/site_tests/firmware_TPMExtend/
Dfirmware_TPMExtend.py34 padded = (hash_obj.digest() + b'\0' * 12)[:32]
35 extended = hashlib.sha256(b'\0' * 32 + padded).hexdigest().upper()

12345678910