I have a question regarding what parameters should be used when generating HMAC-SHA1-128. I have fairly limited knowledge in this field.
HMAC parameters:
H = Hash = SHA1
K = Key size = 128 bits (16 bytes)
B = Data block byte length = 64 bytes
L = Output size of SHA-1 Hash = 160 bits (20 bytes)
Ipad = inner padding = 0x36 repeated B times
Opad = outer padding = 0x5C repeated B times
Charset = UTF-8
Does this make sense? Anything else I should consider? I want to make it similar to the following RSA example:
Format = x.509
Charset = UTF-8
Encoding = Base-64
Endianness = Little Endian
Key size = 2048 bits
Is encoding, endianness or anything else other than the things I mentioned under HMAC parameters relevant and should be paid specific attention to?
Thank you!
Edit since last comment:
Regarding the data;
I would like to take data from 4 different columns in a database table and create a HMAC based on those - one HMAC for each row in the database table.
The data are the following:
Date(YYYY-MM-DD), Time (hh:mm:ss), String(xxxxx), Number (1000.00).
The data shall be separated by semicolon - so the full string will for example be: 2000-01-31;23:59:59;"hello";1000.00