MCPcopy Create free account
hub / github.com/chris2511/xca / BioByteArray

Method BioByteArray

lib/BioByteArray.cpp:12–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10#include <QDebug>
11
12BioByteArray::BioByteArray(const BIGNUM *bn, int bits)
13{
14 int len = (bits+7) >> 3;
15 qDebug() << bits << len;
16 if (!bn)
17 return;
18 store.resize(BN_num_bytes(bn));
19 BN_bn2bin(bn, (unsigned char *)store.data());
20 openssl_error();
21 if (store.size() > 0 && (unsigned char)store[0] >= 0x80)
22 store.prepend('\0');
23 if (len > 0 && store.size() < len)
24 store.prepend(len - store.size(), 0);
25}
26
27void BioByteArray::set(const QByteArray &qba)
28{

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.80
dataMethod · 0.45

Tested by

no test coverage detected