MCPcopy Create free account
hub / github.com/Tripwire/tripwire-open-source / ByteCount

Method ByteCount

src/cryptlib/integer.cpp:1345–1352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1343}
1344
1345unsigned int Integer::ByteCount() const
1346{
1347 unsigned wordCount = WordCount();
1348 if (wordCount)
1349 return (wordCount-1)*WORD_SIZE + BytePrecision(reg[wordCount-1]);
1350 else
1351 return 0;
1352}
1353
1354unsigned int Integer::BitCount() const
1355{

Callers 5

ElGamalSigPublicKeyMethod · 0.80
ElGamalSigPrivateKeyMethod · 0.80
MaxElementByteLengthMethod · 0.80

Calls 1

BytePrecisionFunction · 0.85

Tested by

no test coverage detected