Tom Rini | 0344c60 | 2024-10-08 13:56:50 -0600 | [diff] [blame^] | 1 | Aligned 16-bit access |
| 2 | mbedtls_unaligned_access:16:0 |
| 3 | |
| 4 | Aligned 32-bit access |
| 5 | mbedtls_unaligned_access:32:0 |
| 6 | |
| 7 | Aligned 64-bit access |
| 8 | mbedtls_unaligned_access:64:0 |
| 9 | |
| 10 | Unaligned 16-bit access offset=1 |
| 11 | mbedtls_unaligned_access:16:1 |
| 12 | |
| 13 | Unaligned 32-bit access offset=1 |
| 14 | mbedtls_unaligned_access:32:1 |
| 15 | |
| 16 | Unaligned 64-bit access offset=1 |
| 17 | mbedtls_unaligned_access:64:1 |
| 18 | |
| 19 | Unaligned 16-bit access offset=4 |
| 20 | mbedtls_unaligned_access:16:4 |
| 21 | |
| 22 | Unaligned 32-bit access offset=4 |
| 23 | mbedtls_unaligned_access:32:4 |
| 24 | |
| 25 | Unaligned 64-bit access offset=4 |
| 26 | mbedtls_unaligned_access:64:4 |
| 27 | |
| 28 | Unaligned 16-bit access offset=7 |
| 29 | mbedtls_unaligned_access:16:7 |
| 30 | |
| 31 | Unaligned 32-bit access offset=7 |
| 32 | mbedtls_unaligned_access:32:7 |
| 33 | |
| 34 | Unaligned 64-bit access offset=7 |
| 35 | mbedtls_unaligned_access:64:7 |
| 36 | |
| 37 | Unaligned 16-bit access offset=8 |
| 38 | mbedtls_unaligned_access:16:8 |
| 39 | |
| 40 | Unaligned 32-bit access offset=8 |
| 41 | mbedtls_unaligned_access:32:8 |
| 42 | |
| 43 | Unaligned 64-bit access offset=8 |
| 44 | mbedtls_unaligned_access:64:8 |
| 45 | |
| 46 | Byteswap 16 |
| 47 | mbedtls_byteswap:"0100":16:"0001" |
| 48 | |
| 49 | Byteswap 16 with truncation |
| 50 | mbedtls_byteswap:"0706050403020100":16:"0001" |
| 51 | |
| 52 | Byteswap 16 all-zero |
| 53 | mbedtls_byteswap:"0000":16:"0000" |
| 54 | |
| 55 | Byteswap 16 all-ones |
| 56 | mbedtls_byteswap:"ffffffffffffffff":16:"ffff" |
| 57 | |
| 58 | Byteswap 32 |
| 59 | mbedtls_byteswap:"03020100":32:"00010203" |
| 60 | |
| 61 | Byteswap 32 with truncation |
| 62 | mbedtls_byteswap:"0706050403020100":32:"00010203" |
| 63 | |
| 64 | Byteswap 32 all-zero |
| 65 | mbedtls_byteswap:"00000000":32:"00000000" |
| 66 | |
| 67 | Byteswap 32 all-ones |
| 68 | mbedtls_byteswap:"ffffffffffffffff":32:"ffffffff" |
| 69 | |
| 70 | Byteswap 64 |
| 71 | mbedtls_byteswap:"0706050403020100":64:"01020304050607" |
| 72 | |
| 73 | Byteswap 64 all-zero |
| 74 | mbedtls_byteswap:"0000000000000000":64:"0000000000000000" |
| 75 | |
| 76 | Byteswap 64 all-ones |
| 77 | mbedtls_byteswap:"ffffffffffffffff":64:"ffffffffffffffff" |
| 78 | |
| 79 | Get individual bytes |
| 80 | get_byte |
| 81 | |
| 82 | Endian-aware unaligned 16-bit BE offset=0 |
| 83 | unaligned_access_endian_aware:16:0:1 |
| 84 | |
| 85 | Endian-aware unaligned 16-bit BE offset=3 |
| 86 | unaligned_access_endian_aware:16:3:1 |
| 87 | |
| 88 | Endian-aware unaligned 16-bit LE offset=0 |
| 89 | unaligned_access_endian_aware:16:0:0 |
| 90 | |
| 91 | Endian-aware unaligned 16-bit LE offset=3 |
| 92 | unaligned_access_endian_aware:16:3:0 |
| 93 | |
| 94 | Endian-aware unaligned 32-bit BE offset=0 |
| 95 | unaligned_access_endian_aware:32:0:1 |
| 96 | |
| 97 | Endian-aware unaligned 32-bit BE offset=3 |
| 98 | unaligned_access_endian_aware:32:3:1 |
| 99 | |
| 100 | Endian-aware unaligned 32-bit LE offset=0 |
| 101 | unaligned_access_endian_aware:32:0:0 |
| 102 | |
| 103 | Endian-aware unaligned 32-bit LE offset=3 |
| 104 | unaligned_access_endian_aware:32:3:0 |
| 105 | |
| 106 | Endian-aware unaligned 64-bit BE offset=0 |
| 107 | unaligned_access_endian_aware:64:0:1 |
| 108 | |
| 109 | Endian-aware unaligned 64-bit BE offset=3 |
| 110 | unaligned_access_endian_aware:64:3:1 |
| 111 | |
| 112 | Endian-aware unaligned 64-bit LE offset=0 |
| 113 | unaligned_access_endian_aware:64:0:0 |
| 114 | |
| 115 | Endian-aware unaligned 64-bit LE offset=3 |
| 116 | unaligned_access_endian_aware:64:3:0 |
| 117 | |
| 118 | Big-endian check |
| 119 | mbedtls_is_big_endian |