Searched refs:cipher_block_t (Results 1 – 4 of 4) sorted by relevance
/netbsd-src/external/bsd/elftosb/dist/common/ |
H A D | EncoreBootImage.h | 26 typedef uint8_t cipher_block_t[16]; typedef 35 inline size_t sizeOfCipherBlocks(unsigned count) { return sizeof(cipher_block_t) * count; } in sizeOfCipherBlocks() 39 …t numberOfCipherBlocks(size_t s) { return (s + sizeof(cipher_block_t) - 1) / sizeof(cipher_block_t… in numberOfCipherBlocks() 107 BOOT_IMAGE_MINIMUM_SECTION_ALIGNMENT = sizeof(cipher_block_t) 140 cipher_block_t m_iv; //!< The first 16 bytes of the digest form the initialization vector. 171 cipher_block_t m_mac; //!< CBC-MAC of the header. 315 …virtual unsigned getBlocks(unsigned offset, unsigned maxCount, cipher_block_t * data) { return 0; } in getBlocks() 329 …static BootCommand * createFromData(const cipher_block_t * blocks, unsigned count, unsigned * cons… 350 virtual void initFromData(const cipher_block_t * blocks, unsigned count, unsigned * consumed)=0; 370 virtual unsigned getBlocks(unsigned offset, unsigned maxCount, cipher_block_t * data); [all …]
|
H A D | EncoreBootImage.cpp | 202 cipher_block_t block; in writeToStream() 228 cipher.blockEncrypt(block, sizeof(cipher_block_t) * 8, block); in writeToStream() 232 stream.write(reinterpret_cast<char *>(&block), sizeof(cipher_block_t)); in writeToStream() 233 hash.Update(reinterpret_cast<uint8_t *>(&block), sizeof(cipher_block_t)); in writeToStream() 263 cipher.blockEncrypt(block, sizeof(cipher_block_t) * 8, block); in writeToStream() 267 stream.write(reinterpret_cast<char *>(&block), sizeof(cipher_block_t)); in writeToStream() 268 hash.Update(reinterpret_cast<uint8_t *>(&block), sizeof(cipher_block_t)); in writeToStream() 290 cipher.blockEncrypt(block, sizeof(cipher_block_t) * 8, block); in writeToStream() 294 stream.write(reinterpret_cast<char *>(&block), sizeof(cipher_block_t)); in writeToStream() 295 hash.Update(reinterpret_cast<uint8_t *>(&block), sizeof(cipher_block_t)); in writeToStream() [all …]
|
/netbsd-src/external/bsd/elftosb/dist/sbtool/ |
H A D | EncoreBootImageReader.cpp | 82 cipher_block_t digestBlocks[2]; in readImageDigest() 114 cipher_block_t block; in computeImageDigest() 204 if (memcmp(macResult, entry.m_mac, sizeof(cipher_block_t)) == 0) in readKeyDictionary() 345 bootSection->fillFromData((cipher_block_t *)contents, header.m_length); in readSection()
|
H A D | sbtool.cpp | 460 cipher_block_t * data = reinterpret_cast<cipher_block_t *>(buffer.get()); in extractSection()
|