Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for decryptKey (0.09 sec)

  1. src/crypto/tls/common.go

    		}
    		// The static RSA key exchange works by decrypting a challenge with the
    		// RSA private key, not by signing, so check the PrivateKey implements
    		// crypto.Decrypter, like *rsa.PrivateKey does.
    		if priv, ok := c.PrivateKey.(crypto.Decrypter); ok {
    			if _, ok := priv.Public().(*rsa.PublicKey); !ok {
    				return unsupported
    			}
    		} else {
    			return unsupported
    		}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 59.1K bytes
    - Viewed (0)
  2. src/crypto/tls/conn.go

    	// full block's worth of padding, replace the final block with another
    	// block. If the MAC check passed but the padding check failed, the
    	// last byte of that block decrypted to the block size.
    	//
    	// See also macAndPaddingGood logic below.
    	paddingLen &= good
    
    	toRemove = int(paddingLen) + 1
    	return
    }
    
    func roundUp(a, b int) int {
    	return a + (b-a%b)%b
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 03:10:12 UTC 2024
    - 51.8K bytes
    - Viewed (0)
Back to top