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: 

Sign xString with RSA-PSS in ABAP

philippwa
Explorer
664

Hallo,

how to sign a given xString in ABAP with RSA-PSS algorithm.

Please also provide a code example. Thank you!

Greeting

Philipp Wallutis

6 REPLIES 6

philippwa
Explorer
0 Kudos
468

Why is this voted down?


According to the new documentation, SAPCryptoLib supports the RSA-PSS algo.

But I am having problems getting this to run in ABAP.


Any help is appreciated.

philippwa
Explorer
0 Kudos
468

Hey Robert,

your code runs well with the 'PKCS-V1.5' format.
When I run your Code with the str_format = 'PKCS1-PSS' i get a CRC of 2 - "Invalid security format".

My current system uses the following specs:

SSFLIB Version 1.850.40 ; CommonCryptoLib (SAPCRYPTOLIB) Version 8.5.39 (+MT) #Copyright (c) SAP, 2011-2021#compiled for linux-gcc-4.3-x86-64

Former Member
468

philippwa

CCL 8.5.39 is not the newest, but I guess it supports PSS.

Most probably it is the kernel, which is not supporting it.

With CCL 8.5.44, Kernel 7.89 PL52 from S/4HANA FOUNDATION 2022 - it works.

But with CCL 8.5.35 and kernel 7.53 PL800 it does not.

If the combination kernel/ccl is not supporting it, there is nothing you can do, except using OS commands like openssl.

EDIT: tested with Kernel 7.77 PL200 - does not work, but with 7.77 PL500 it works.

philippwa
Explorer
0 Kudos
468

Thank you Robert. We pretty much appreciated your help!

matt
Active Contributor
0 Kudos
468

Down? It's got 8 up votes!

angeloruggiero
Explorer
0 Kudos
468

Was there any answer to this?