diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2023-07-05 17:36:20 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2023-07-05 17:36:20 +0000 |
commit | 9697719912e579265d48de8ca9f094caad6eb51f (patch) | |
tree | 4cbb9d8891ec25426c91b6ccb3b372dabdf95399 /lib | |
parent | b6274651aca06b7127eb45f1e355a240011acdb9 (diff) |
whitespace
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libcrypto/sm2/sm2_sign.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libcrypto/sm2/sm2_sign.c b/lib/libcrypto/sm2/sm2_sign.c index 5d929e57aa8..a5e3a8aee53 100644 --- a/lib/libcrypto/sm2/sm2_sign.c +++ b/lib/libcrypto/sm2/sm2_sign.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sm2_sign.c,v 1.3 2022/11/26 16:08:54 tb Exp $ */ +/* $OpenBSD: sm2_sign.c,v 1.4 2023/07/05 17:36:19 tb Exp $ */ /* * Copyright (c) 2017, 2019 Ribose Inc * @@ -95,12 +95,12 @@ sm2_sig_gen(const EC_KEY *key, const BIGNUM *e) const BIGNUM *dA; BIGNUM *order = NULL, *r = NULL, *s = NULL; BIGNUM *k, *rk, *tmp, *x1; - + if ((dA = EC_KEY_get0_private_key(key)) == NULL) { SM2error(SM2_R_INVALID_FIELD); goto err; } - + if ((group = EC_KEY_get0_group(key)) == NULL) { SM2error(SM2_R_INVALID_FIELD); goto err; @@ -405,7 +405,7 @@ SM2_sign(const unsigned char *dgst, int dgstlen, unsigned char *sig, if ((s = sm2_sig_gen(eckey, e)) == NULL) { goto err; } - + if ((outlen = i2d_ECDSA_SIG(s, &sig)) < 0) { SM2error(SM2_R_ASN1_ERROR); goto err; |