Imported OpenSSL 1.1.1d
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2017-2018 The OpenSSL Project Authors. All Rights Reserved.
|
||||
* Copyright 2017-2019 The OpenSSL Project Authors. All Rights Reserved.
|
||||
* Copyright 2017 Ribose Inc. All Rights Reserved.
|
||||
* Ported from Ribose contributions from Botan.
|
||||
*
|
||||
@@ -313,12 +313,12 @@ static int sm2_sig_verify(const EC_KEY *key, const ECDSA_SIG *sig,
|
||||
|
||||
/*
|
||||
* B1: verify whether r' in [1,n-1], verification failed if not
|
||||
* B2: vefify whether s' in [1,n-1], verification failed if not
|
||||
* B2: verify whether s' in [1,n-1], verification failed if not
|
||||
* B3: set M'~=ZA || M'
|
||||
* B4: calculate e'=Hv(M'~)
|
||||
* B5: calculate t = (r' + s') modn, verification failed if t=0
|
||||
* B6: calculate the point (x1', y1')=[s']G + [t]PA
|
||||
* B7: calculate R=(e'+x1') modn, verfication pass if yes, otherwise failed
|
||||
* B7: calculate R=(e'+x1') modn, verification pass if yes, otherwise failed
|
||||
*/
|
||||
|
||||
ECDSA_SIG_get0(sig, &r, &s);
|
||||
|
||||
Reference in New Issue
Block a user