Home
last modified time | relevance | path

Searched refs:byte (Results 1 – 25 of 89) sorted by relevance

1234

/openthread-latest/third_party/mbedtls/repo/tests/suites/
Dtest_suite_cipher.nist_kw.data33 KWP AES-128 1 byte input
37 KWP AES-128 2 byte input
41 KWP AES-128 3 byte input
45 KWP AES-128 4 byte input
49 KWP AES-128 5 byte input
53 KWP AES-128 6 byte input
57 KWP AES-128 7 byte input
61 KWP AES-128 8 byte input
65 KWP AES-128 9 byte input
69 KWP AES-128 10 byte input
[all …]
Dtest_suite_psa_crypto_util.data29 ECDSA Raw -> DER, 256bit, r and s only 1 byte of data
33 ECDSA Raw -> DER, 256bit, r and s only 1 byte of data with MSb set
37 ECDSA Raw -> DER, 256bit, Invalid raw signature (r 1 byte shorter)
41 ECDSA Raw -> DER, 256bit, Invalid raw signature (r and s 1 byte shorter)
45 ECDSA Raw -> DER, 256bit, Invalid raw signature (r 1 byte longer)
49 ECDSA Raw -> DER, 256bit, Invalid raw signature (r and s 1 byte longer)
73 ECDSA DER -> Raw, 256bit, Wrong r integer length (1 byte smaller than the actual size)
77 ECDSA DER -> Raw, 256bit, Wrong r integer length (1 byte larger than the actual size)
81 ECDSA DER -> Raw, 256bit, Wrong s integer length (1 byte smaller than the actual size)
85 ECDSA DER -> Raw, 256bit, Wrong s integer length (1 byte larger than the actual size)
[all …]
Dtest_suite_psa_its.data43 Get 1 byte of 10 at 9
49 Get 1 byte of 10 at 0
55 Get 1 byte of 10 at 10: out of range
58 Get 1 byte of 10 at 11: out of range
64 Get -1 byte of 10 at 10: out of range
67 Get 1 byte of 10 at -1: out of range
Dtest_suite_cmac.data60 CMAC Single Blocks #2 AES-128 - Single 16 byte block
64 CMAC Single Blocks #3 AES-128 - Single 64 byte block
68 CMAC Multiple Blocks #1 AES-128 - Multiple 8 byte blocks
72 CMAC Multiple Blocks #2 AES-128 - Multiple 16 byte blocks
80 CMAC Multiple Blocks #4 AES-128 - Multiple 8 byte blocks with gaps
88 CMAC Multiple Operations, same key #2 AES-192 - Empty, 64 byte block
92 CMAC Multiple Operations, same key #3 AES-192 - variable byte blocks
Dtest_suite_pkcs7.data157 PKCS7 Parse Failure Invalid ASN1: Add null byte to start #20.0
161 PKCS7 Parse Failure Invalid ASN1: Add null byte to end #21.0
173 PKCS7 Parse Failure Invalid ASN1: Change contents of tag 30 to contain one unaccounted extra byte #…
197 PKCS7 Parse Failure Invalid ASN1: Change contents of tag a0 to contain one unaccounted extra byte #…
213 PKCS7 Parse Failure Invalid ASN1: Change contents of tag 30 to contain one unaccounted extra byte #…
241 PKCS7 Parse Failure Invalid ASN1: Change contents of tag 31 to contain one unaccounted extra byte #…
257 PKCS7 Parse Failure Invalid ASN1: Change contents of tag 30 to contain one unaccounted extra byte #…
293 PKCS7 Parse Failure Invalid ASN1: Change contents of tag 30 to contain one unaccounted extra byte #…
321 PKCS7 Parse Failure Invalid ASN1: Change contents of tag a0 to contain one unaccounted extra byte #…
337 PKCS7 Parse Failure Invalid ASN1: Change contents of tag 30 to contain one unaccounted extra byte #…
[all …]
Dtest_suite_bignum_core.misc.data170 mbedtls_mpi_core_lt_ct: x>y (63 bit x, y first byte greater)
173 mbedtls_mpi_core_lt_ct: x<y (63 bit y, x first byte greater)
200 mbedtls_mpi_core_lt_ct: x>y (31 bit x, y first byte greater)
203 mbedtls_mpi_core_lt_ct: x<y (31 bit y, x first byte greater)
431 Fill random core: 1 byte, RNG stops at 0
434 Fill random core: 1 byte, RNG just sufficient
437 Fill random core: 1 byte, RNG not exhausted
440 Fill random core: 1 byte, prior content nonzero
443 Fill random core: 1 byte, 1 extra limb
446 Fill random core: 1 byte, 1 extra limb, prior content nonzero
Dtest_suite_alignment.function33 /* Define 64-bit aligned raw byte array */
63 /* Make a 16/32/64 byte read from the aligned location, and copy to expected */
129 * Check byte by byte by extracting bytes from opposite ends of
248 /* Define 64-bit aligned raw byte array */
289 /* Build up expected value byte by byte, in either big or little endian format */
Dtest_suite_aes.xts.data7 AES-128-XTS Encrypt Fail Sector Too Small (by 1 byte)
10 AES-128-XTS Encrypt Fail Sector Too Large (by 1 byte)
36 # 128-bit keys with 32 byte sector
48 # 128-bit keys with 512 byte sector
69 # 256-bit keys with 512 byte sector
Dtest_suite_oid.data111 OID get numeric string - multi-byte subidentifier
117 OID get numeric string - multi-byte first subidentifier
141 OID get numeric string - 1 byte first subidentifier beyond 2.39
160 OID from numeric string - multi-byte subidentifier
166 OID from numeric string - multi-byte first subidentifier
Dtest_suite_lms.function94 /* Altering first message byte must cause verification failure */
100 /* Altering last message byte must cause verification failure */
108 /* Altering first signature byte must cause verification failure */
114 /* Altering last signature byte must cause verification failure */
Dtest_suite_ssl_decrypt.function64 /* Change any one byte of the plaintext or MAC. The MAC will be wrong. */
140 * byte that encodes the length. The minimal non-zero plaintext length
149 unsigned char padlen; /* excluding the padding_length byte */
174 * The +1 is for the padding_length byte, not counted in padlen. */
185 * The +1 is for the padding_length byte, not counted in padlen. */
243 * Modify each byte of the pre-encryption record before encrypting and
254 /* Corrupt one byte of the data (could be plaintext, MAC or padding) */
Dtest_suite_pkcs1_v15.data79 RSAES-V15 decoding: bad first byte
82 RSAES-V15 decoding: bad second byte (0 instead of 2)
85 RSAES-V15 decoding: bad second byte (1 instead of 2)
Dtest_suite_psa_crypto_persistent_key.data76 import/export persistent raw key: 1 byte
87 import/export persistent raw key file not exist: 1 byte
102 import/export persistent raw key with restart: 1 byte
113 import/export persistent raw key file not exist with restart: 1 byte
/openthread-latest/tests/unit/
Dtest_util.cpp42 uint8_t byte; in DumpBuffer() local
50 byte = *aBuffer++; in DumpBuffer()
51 printf("%02X ", byte); in DumpBuffer()
52 charBuff[counter] = isprint(byte) ? static_cast<char>(byte) : '.'; in DumpBuffer()
Dtest_hdlc.cpp452 uint8_t byte; in TestEncoderDecoder() local
490 byte = kFlagSequence; in TestEncoderDecoder()
492 SuccessOrQuit(encoder.Encode(&byte, sizeof(uint8_t))); in TestEncoderDecoder()
546 byte = i & 0xff; in TestEncoderDecoder()
547 error = encoder.Encode(&byte, sizeof(uint8_t)); in TestEncoderDecoder()
550 VerifyOrQuit(encoder.Encode(&byte, sizeof(uint8_t)) == OT_ERROR_NO_BUFS, in TestEncoderDecoder()
582 byte = kFlagSequence; in TestEncoderDecoder()
584 decoder.Decode(&byte, sizeof(uint8_t)); in TestEncoderDecoder()
586 decoder.Decode(&byte, sizeof(uint8_t)); in TestEncoderDecoder()
588 decoder.Decode(&byte, sizeof(uint8_t)); in TestEncoderDecoder()
[all …]
/openthread-latest/examples/platforms/simulation/
Dflash.c138 uint8_t byte; in otPlatFlashWrite() local
148 rval = pread(sFlashFd, &byte, sizeof(byte), (off_t)(address + offset)); in otPlatFlashWrite()
149 VerifyOrDie(rval == sizeof(byte), OT_EXIT_ERROR_ERRNO); in otPlatFlashWrite()
152 byte &= ((uint8_t *)aData)[offset]; in otPlatFlashWrite()
154 rval = pwrite(sFlashFd, &byte, sizeof(byte), (off_t)(address + offset)); in otPlatFlashWrite()
155 VerifyOrDie(rval == sizeof(byte), OT_EXIT_ERROR_ERRNO); in otPlatFlashWrite()
/openthread-latest/src/lib/hdlc/
Dhdlc.cpp230 uint8_t byte = *aData++; in Decode() local
235 if (byte == kFlagSequence) in Decode()
245 switch (byte) in Decode()
278 mFcs = UpdateFcs(mFcs, byte); in Decode()
279 IGNORE_RETURN(mWritePointer->WriteByte(byte)); in Decode()
296 byte ^= 0x20; in Decode()
297 mFcs = UpdateFcs(mFcs, byte); in Decode()
298 IGNORE_RETURN(mWritePointer->WriteByte(byte)); in Decode()
/openthread-latest/src/core/thread/
Dlowpan.cpp607 uint8_t byte; in DecompressBaseHeader() local
622 SuccessOrExit(aFrameData.ReadUint8(byte)); in DecompressBaseHeader()
624 srcContextId = (byte >> 4); in DecompressBaseHeader()
625 dstContextId = (byte & 0xf); in DecompressBaseHeader()
645 IgnoreError(aFrameData.ReadUint8(byte)); in DecompressBaseHeader()
646 ip6HeaderBytes[0] |= (byte >> 2) & 0x0f; in DecompressBaseHeader()
647 ip6HeaderBytes[1] |= (byte << 6) & 0xc0; in DecompressBaseHeader()
663 SuccessOrExit(aFrameData.ReadUint8(byte)); in DecompressBaseHeader()
665 aIp6Header.SetNextHeader(byte); in DecompressBaseHeader()
689 SuccessOrExit(aFrameData.ReadUint8(byte)); in DecompressBaseHeader()
[all …]
/openthread-latest/src/core/common/
Dstring.cpp375 uint8_t byte; in IsValidUtf8String() local
381 byte = *reinterpret_cast<const uint8_t *>(aString + position); in IsValidUtf8String()
384 if ((byte & 0x80) == 0) in IsValidUtf8String()
387 VerifyOrExit(!iscntrl(byte), ret = false); in IsValidUtf8String()
393 if ((byte & 0x40) == 0) // 10xx-xxxx in IsValidUtf8String()
398 else if ((byte & 0x20) == 0) // 110x-xxxx in IsValidUtf8String()
402 else if ((byte & 0x10) == 0) // 1110-xxxx in IsValidUtf8String()
406 else if ((byte & 0x08) == 0) // 1111-0xxx in IsValidUtf8String()
419 byte = *reinterpret_cast<const uint8_t *>(aString + position); in IsValidUtf8String()
423 VerifyOrExit((byte & 0xc0) == 0x80, ret = false); in IsValidUtf8String()
Dlog.cpp275 uint8_t byte = aInfo.mDataBytes[i]; in GenerateNextHexDumpLine() local
277 … c = ((byte < 127) && isprint(static_cast<char>(byte))) ? static_cast<char>(byte) : '.'; in GenerateNextHexDumpLine()
/openthread-latest/src/core/crypto/
Daes_ccm.cpp195 uint8_t byte; in Payload() local
217 byte = plaintextBytes[i]; in Payload()
218 ciphertextBytes[i] = byte ^ mCtrPad[mCtrLength++]; in Payload()
222 byte = ciphertextBytes[i] ^ mCtrPad[mCtrLength++]; in Payload()
223 plaintextBytes[i] = byte; in Payload()
232 mBlock[mBlockLength++] ^= byte; in Payload()
/openthread-latest/src/lib/spinel/
Dspinel_decoder.cpp73 uint8_t byte; in ReadBool() local
75 EXPECT_NO_ERROR(error = ReadUint8(byte)); in ReadBool()
78 if (byte == 0x00) in ReadBool()
82 else if (byte == 0x01) in ReadBool()
110 uint8_t byte; in ReadInt8() local
112 EXPECT_NO_ERROR(error = ReadUint8(byte)); in ReadInt8()
113 aInt8 = static_cast<int8_t>(byte); in ReadInt8()
/openthread-latest/third_party/tcplp/lib/
Dbitmap.c160 static inline void bmp_write_byte(uint8_t* buf, size_t i, uint8_t byte) { in bmp_write_byte() argument
164 buf[byte_index] = byte; in bmp_write_byte()
167 buf[byte_index] = (buf[byte_index] & (0xFF << (8 - bit_index))) | (byte >> bit_index); in bmp_write_byte()
168 buf[byte_index + 1] = (buf[byte_index + 1] & (0xFF >> bit_index)) | (byte << (8 - bit_index)); in bmp_write_byte()
/openthread-latest/tests/scripts/thread-cert/
Ddtls.py271 lambda acc, byte: (acc << 8) | byte,
292 def __init__(self, byte): argument
293 self.byte = byte
296 return isinstance(self, type(other)) and self.byte == other.byte
299 return struct.pack(">B", self.byte)
/openthread-latest/tools/spi-hdlc-adapter/
Dspi-hdlc-adapter.c785 static bool hdlc_byte_needs_escape(uint8_t byte) in hdlc_byte_needs_escape() argument
787 switch (byte) in hdlc_byte_needs_escape()
923 uint8_t byte; in pull_hdlc() local
924 while ((ret = (int)read(sHdlcInputFd, &byte, 1)) == 1) in pull_hdlc()
933 else if (byte == HDLC_BYTE_FLAG) in pull_hdlc()
967 else if (byte == HDLC_BYTE_ESC) in pull_hdlc()
972 else if (hdlc_byte_needs_escape(byte)) in pull_hdlc()
979 byte = byte ^ HDLC_ESCAPE_XFORM; in pull_hdlc()
983 fcs = hdlc_crc16(fcs, byte); in pull_hdlc()
984 sSpiTxFrameBuffer[HEADER_LEN + sSpiTxPayloadSize++] = byte; in pull_hdlc()

1234