Merge origin feature/relaunch into feature/relaunch
This commit is contained in:
commit
21cbd80488
@ -32,7 +32,7 @@ namespace Leonetienne::GCrypt {
|
|||||||
// Pull the required amount of bits
|
// Pull the required amount of bits
|
||||||
std::stringstream ss;
|
std::stringstream ss;
|
||||||
for (std::size_t i = 0; i < sizeof(T)*8; i++) {
|
for (std::size_t i = 0; i < sizeof(T)*8; i++) {
|
||||||
ss << GetBit() ? '1' : '0';
|
ss << (GetBit() ? '1' : '0');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Transform to bytes
|
// Transform to bytes
|
||||||
|
@ -656,7 +656,7 @@ namespace Leonetienne::GCrypt {
|
|||||||
|
|
||||||
std::ostream& operator<<(std::ostream& os, const Block& b) {
|
std::ostream& operator<<(std::ostream& os, const Block& b) {
|
||||||
for (std::size_t i = 0; i < b.data.size(); i++) {
|
for (std::size_t i = 0; i < b.data.size(); i++) {
|
||||||
os << std::bitset<b.CHUNK_SIZE_BITS>(b.data[i]).to_string();
|
os << std::bitset<Block::CHUNK_SIZE_BITS>(b.data[i]).to_string();
|
||||||
}
|
}
|
||||||
return os;
|
return os;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user