aboutsummaryrefslogtreecommitdiff
path: root/crypto/rsa/rsa_saos.c
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/rsa/rsa_saos.c')
-rw-r--r--crypto/rsa/rsa_saos.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/crypto/rsa/rsa_saos.c b/crypto/rsa/rsa_saos.c
index dc96b6dada2f..afcc4c9a4d8b 100644
--- a/crypto/rsa/rsa_saos.c
+++ b/crypto/rsa/rsa_saos.c
@@ -21,9 +21,9 @@
#include <openssl/x509.h>
int RSA_sign_ASN1_OCTET_STRING(int type,
- const unsigned char *m, unsigned int m_len,
- unsigned char *sigret, unsigned int *siglen,
- RSA *rsa)
+ const unsigned char *m, unsigned int m_len,
+ unsigned char *sigret, unsigned int *siglen,
+ RSA *rsa)
{
ASN1_OCTET_STRING sig;
int i, j, ret = 1;
@@ -55,9 +55,9 @@ int RSA_sign_ASN1_OCTET_STRING(int type,
}
int RSA_verify_ASN1_OCTET_STRING(int dtype,
- const unsigned char *m,
- unsigned int m_len, unsigned char *sigbuf,
- unsigned int siglen, RSA *rsa)
+ const unsigned char *m,
+ unsigned int m_len, unsigned char *sigbuf,
+ unsigned int siglen, RSA *rsa)
{
int i, ret = 0;
unsigned char *s;
@@ -82,13 +82,12 @@ int RSA_verify_ASN1_OCTET_STRING(int dtype,
if (sig == NULL)
goto err;
- if (((unsigned int)sig->length != m_len) ||
- (memcmp(m, sig->data, m_len) != 0)) {
+ if (((unsigned int)sig->length != m_len) || (memcmp(m, sig->data, m_len) != 0)) {
ERR_raise(ERR_LIB_RSA, RSA_R_BAD_SIGNATURE);
} else {
ret = 1;
}
- err:
+err:
ASN1_OCTET_STRING_free(sig);
OPENSSL_clear_free(s, (unsigned int)siglen);
return ret;