HashLib4Pascal is not a visual component, so you won't click it off the component list.
To add an installed non-visual component to your project, click on menu "Project > Project inspector ...". (1)
In the newly opened window, add a new dependency: "Add > New requirement" (2) and you select "HashLib4PascalPackage" and click "OK" (3) - now you can close the "Project inspector" window.
Then in the
uses section you need to add the modules needed to generate HMAC:
uses
//...
HlpIHashInfo, HlpConverters, HlpHashFactory;
.
and the code that generates the HMAC looks something like this:
procedure TForm1.Button1Click(Sender: TObject);
var
LHMAC: IHMAC;
barr: TBytes;
tekst, secret_key, hmac512_value: String;
begin
tekst := 'test';
secret_key := '123';
LHMAC := THashFactory.THMAC.CreateHMAC(THashFactory.TCrypto.CreateSHA2_512);
LHMAC.Key := TConverters.ConvertStringToBytes(secret_key, TEncoding.UTF8);
hmac512_value := LHMAC.ComputeString(tekst, TEncoding.UTF8).ToString();
ShowMessage(hmac512_value);
end;