Skip to content

Commit 34efc10

Browse files
committed
fips update: indicate minimum RSA public exponent in function list
Signed-off-by: Joerg Schmidbauer <jschmidb@de.ibm.com>
1 parent 3928f38 commit 34efc10

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

include/ica_api.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ typedef ica_adapter_handle_t ICA_ADAPTER_HANDLE;
8484

8585
#define ICA_PROPERTY_RSA_ALL 0x0000000F /* All RSA key lengths */
8686
#define ICA_PROPERTY_RSA_FIPS 0x0000000C /* RSA 2k and higher */
87+
#define ICA_PROPERTY_RSA_NO_SMALL_EXP 0x00010000 /* e >= 65537 */
8788
#define ICA_PROPERTY_EC_BP 0x00000001 /* Brainpool curves */
8889
#define ICA_PROPERTY_EC_NIST 0x00000002 /* NIST curves */
8990
#define ICA_PROPERTY_EC_ED 0x00000004 /* Edwards curves */

src/s390_crypto.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -726,10 +726,12 @@ int s390_get_functionlist(libica_func_list_element *pmech_list,
726726
case RSA_KEY_GEN_CRT:
727727
case RSA_ME:
728728
case RSA_CRT:
729-
if (pmech_list[x].flags)
729+
if (pmech_list[x].flags) {
730730
pmech_list[x].property = ICA_PROPERTY_RSA_FIPS;
731-
else
731+
pmech_list[x].property |= ICA_PROPERTY_RSA_NO_SMALL_EXP;
732+
} else {
732733
pmech_list[x].property = 0;
734+
}
733735
break;
734736
default:
735737
break;

0 commit comments

Comments
 (0)