Hex conversion from buf is not used at all.
Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com>
HMACSHA1 hmac((const unsigned char *)key, key_len);
hmac.Update((const unsigned char *)msg, msg_len);
hmac.Final((unsigned char *)dest);
-
- char hex_str[(CEPH_CRYPTO_HMACSHA1_DIGESTSIZE * 2) + 1];
- buf_to_hex((unsigned char *)dest, CEPH_CRYPTO_HMACSHA1_DIGESTSIZE, hex_str);
}
int gen_rand_base64(CephContext *cct, char *dest, int size) /* size should be the required string size + 1 */