Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for DecryptRSANoPadding (0.35 sec)

  1. src/crypto/internal/boring/notboring.go

    	panic("boringcrypto: not available")
    }
    func DecryptRSAPKCS1(priv *PrivateKeyRSA, ciphertext []byte) ([]byte, error) {
    	panic("boringcrypto: not available")
    }
    func DecryptRSANoPadding(priv *PrivateKeyRSA, ciphertext []byte) ([]byte, error) {
    	panic("boringcrypto: not available")
    }
    func EncryptRSAOAEP(h, mgfHash hash.Hash, pub *PublicKeyRSA, msg, label []byte) ([]byte, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 26 22:52:27 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  2. src/crypto/internal/boring/rsa.go

    }
    
    func EncryptRSAPKCS1(pub *PublicKeyRSA, msg []byte) ([]byte, error) {
    	return cryptRSA(pub.withKey, C.GO_RSA_PKCS1_PADDING, nil, nil, nil, 0, 0, encryptInit, encrypt, msg)
    }
    
    func DecryptRSANoPadding(priv *PrivateKeyRSA, ciphertext []byte) ([]byte, error) {
    	return cryptRSA(priv.withKey, C.GO_RSA_NO_PADDING, nil, nil, nil, 0, 0, decryptInit, decrypt, ciphertext)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 26 23:38:03 UTC 2024
    - 12K bytes
    - Viewed (0)
  3. src/crypto/rsa/pss.go

    		bkey, err := boringPrivateKey(priv)
    		if err != nil {
    			return nil, err
    		}
    		// Note: BoringCrypto always does decrypt "withCheck".
    		// (It's not just decrypt.)
    		s, err := boring.DecryptRSANoPadding(bkey, em)
    		if err != nil {
    			return nil, err
    		}
    		return s, nil
    	}
    
    	// RFC 8017: "Note that the octet length of EM will be one less than k if
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 11K bytes
    - Viewed (0)
  4. src/crypto/rsa/pkcs1v15.go

    		err = ErrDecryption
    		return
    	}
    
    	if boring.Enabled {
    		var bkey *boring.PrivateKeyRSA
    		bkey, err = boringPrivateKey(priv)
    		if err != nil {
    			return
    		}
    		em, err = boring.DecryptRSANoPadding(bkey, ciphertext)
    		if err != nil {
    			return
    		}
    	} else {
    		em, err = decrypt(priv, ciphertext, noCheck)
    		if err != nil {
    			return
    		}
    	}
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:21 UTC 2024
    - 12.8K bytes
    - Viewed (0)
Back to top