return log_error_errno(SYNTHETIC_ERRNO(EIO), "Failed to retrieve HMAC secret.");
hmac_size = sym_fido_assert_hmac_secret_len(a, 0);
+ /* Should never be zero, sanity check */
+ assert(hmac_size > 0);
hmac_copy = memdup(hmac, hmac_size);
if (!hmac_copy)
return log_error_errno(SYNTHETIC_ERRNO(EIO), "Failed to retrieve HMAC secret.");
secret_size = sym_fido_assert_hmac_secret_len(a, 0);
+ /* Should never be zero, sanity check */
+ assert(secret_size > 0);
secret_copy = memdup(secret, secret_size);
if (!secret_copy)