Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

HMAC-SHA256

Former Member
0 Kudos

Hi Experts,

I can not find the information relevant to the Function Group SECH- specifically for HMAC.

Interested in the functional modules calculate_hmac_for_char, set_hmac_key, get_hmac_key.

Someone knows for valuable documents?

Thank you very much,

Jirka

3 REPLIES 3

martin_voros
Active Contributor
0 Kudos

Hi,

unfortunately SHA256 is not supported. As far as I know SAP does not support SHA256 in SAPCRYPTOLIB yet. I guess that C call just calls C routine from this library. Another problem is that the export parameter HASH of FM CALCULATE_HASH_FOR_CHAR is designed only for hash size 160bits. SHA256 generates hash with size 256. So there will have to be changes in ABAP code as well.

Cheers

Former Member
0 Kudos

Hi Martin,

thank you for your answer!

Unfortunately, I have the same information from the developers of SAP Security. They say that the only way is Secude. This information I had but only for encryption. From EHP1 group gained weight SECH hash function HMAC, but probably only for SHA1.

I know that SAP does not support encryption SHA2 (SHA256), but I was hoping for the signature and hash it will be able to.

You got yourself a contact e-mail?

Take care,

Jiri

0 Kudos

Hi,

if you need HMAC with SHA256 in your ABAP application, then there should not be a big problem to port SHA256 to ABAP. Otherwise have to wait for SAP or look for 3rd part product.

Cheers