Matter::Crypto::AES::WordArrayHelper
Class methods
bytes_to_block(bytes : Bytes, block : WordArray, byte_offset : Int32 = 0)
Copy bytes into a 4-word block. If input is too short, sets missing bytes to zero.
read_int32_platform(bytes : Bytes, offset : Int32) : Int32
Read platform-endian Int32 from bytes
read_partial_word(bytes : Bytes, offset : Int32, bytes_available : Int32 | Nil = nil) : Int32
Read a word from a byte array that may be smaller than four bytes (big-endian)
write_int32_platform(bytes : Bytes, offset : Int32, value : Int32)
Write platform-endian Int32 to bytes
write_partial_word(word : Int32, bytes : Bytes, offset : Int32, bytes_available : Int32 | Nil = nil)
Write a partial word to a byte array (big-endian)