Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for encodeSignature (0.11 sec)

  1. src/crypto/ecdsa/ecdsa_legacy.go

    			}
    		}
    
    		e := hashToInt(hash, c)
    		s = new(big.Int).Mul(priv.D, r)
    		s.Add(s, e)
    		s.Mul(s, kInv)
    		s.Mod(s, N) // N != 0
    		if s.Sign() != 0 {
    			break
    		}
    	}
    
    	return encodeSignature(r.Bytes(), s.Bytes())
    }
    
    // Verify verifies the signature in r, s of hash using the public key, pub. Its
    // return value records whether the signature is valid. Most applications should
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 4.8K bytes
    - Viewed (0)
Back to top