Lines Matching full:opts
238 func (opts *PSSOptions) saltLength() int {
239 if opts == nil {
242 return opts.SaltLength
247 // given hash function. The opts argument may be nil, in which case sensible
249 func SignPSS(rand io.Reader, priv *PrivateKey, hash crypto.Hash, hashed []byte, opts *PSSOptions) (s []byte, err error) {
250 saltLength := opts.saltLength()
258 if opts != nil && opts.Hash != 0 {
259 hash = opts.Hash
272 // returning a nil error. The opts argument may be nil, in which case sensible
274 func VerifyPSS(pub *PublicKey, hash crypto.Hash, hashed []byte, sig []byte, opts *PSSOptions) error {
275 return verifyPSS(pub, hash, hashed, sig, opts.saltLength())