S390x: Support ME and CRT offloading
[openssl.git] / include / crypto / bn.h
index 2453cb814e944f280219441b3bd815242a806106..b354578ee097407506d59271cbfe7787600ff843 100644 (file)
@@ -122,4 +122,13 @@ int ossl_bn_rsa_do_unblind(const BIGNUM *intermediate,
                            const BIGNUM *to_mod, BN_CTX *ctx,
                            unsigned char *buf, int num);
 
+#if defined(OPENSSL_SYS_LINUX) && !defined(FIPS_MODULE) && defined (__s390x__)
+# define S390X_MOD_EXP
+#endif
+
+int s390x_mod_exp(BIGNUM *r, const BIGNUM *a, const BIGNUM *p,
+                const BIGNUM *m, BN_CTX *ctx, BN_MONT_CTX *m_ctx);
+int s390x_crt(BIGNUM *r, const BIGNUM *i, const BIGNUM *p, const BIGNUM *q,
+            const BIGNUM *dmp, const BIGNUM *dmq, const BIGNUM *iqmp);
+
 #endif