Lines Matching refs:bytes
22 const std::string PoloUtil::BytesToHexString(const uint8_t* bytes,
25 BIGNUM* bn = BN_bin2bn(bytes, length, NULL);
34 uint8_t*& bytes) {
39 bytes = new uint8_t[length];
40 BN_bn2bin(bn, &bytes[0]);
46 uint8_t*& bytes) {
51 // Initialize the array to 0 so there will be leading null bytes if the
52 // number is less than 4 bytes long.
53 bytes = new uint8_t[4];
55 bytes[i] = 0;
59 BN_bn2bin(bn, &bytes[4 - length]);
64 const uint8_t* bytes) {
66 BIGNUM* bn = BN_bin2bn(bytes, 4, NULL);
74 // function is guaranteed to provide secure random bytes.