Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 566 for checkPub (0.28 sec)

  1. src/crypto/rsa/rsa.go

    	errPublicExponentLarge = errors.New("crypto/rsa: public exponent too large")
    )
    
    // checkPub sanity checks the public key before we use it.
    // We require pub.E to fit into a 32-bit integer so that we
    // do not have different behavior depending on whether
    // int is 32 or 64 bits. See also
    // https://www.imperialviolet.org/2012/03/16/rsae.html.
    func checkPub(pub *PublicKey) error {
    	if pub.N == nil {
    		return errPublicModulus
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:18 UTC 2024
    - 23.4K bytes
    - Viewed (0)
  2. src/crypto/rsa/pkcs1v15.go

    // session keys is dangerous. Use RSA OAEP in new protocols.
    func EncryptPKCS1v15(random io.Reader, pub *PublicKey, msg []byte) ([]byte, error) {
    	randutil.MaybeReadByte(random)
    
    	if err := checkPub(pub); err != nil {
    		return nil, err
    	}
    	k := pub.Size()
    	if len(msg) > k-11 {
    		return nil, ErrMessageTooLong
    	}
    
    	if boring.Enabled && random == boring.RandReader {
    		bkey, err := boringPublicKey(pub)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 00:11:21 UTC 2024
    - 12.8K bytes
    - Viewed (0)
  3. internal/hash/checksum.go

    	ChecksumSHA256
    	// ChecksumSHA1 indicates a SHA-1 checksum.
    	ChecksumSHA1
    	// ChecksumCRC32 indicates a CRC32 checksum with IEEE table.
    	ChecksumCRC32
    	// ChecksumCRC32C indicates a CRC32 checksum with Castagnoli table.
    	ChecksumCRC32C
    	// ChecksumInvalid indicates an invalid checksum.
    	ChecksumInvalid
    	// ChecksumMultipart indicates the checksum is from a multipart upload.
    	ChecksumMultipart
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Wed May 08 16:18:34 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  4. pkg/kubelet/checkpointmanager/checksum/checksum.go

    limitations under the License.
    */
    
    package checksum
    
    import (
    	"hash/fnv"
    
    	"k8s.io/kubernetes/pkg/kubelet/checkpointmanager/errors"
    	hashutil "k8s.io/kubernetes/pkg/util/hash"
    )
    
    // Checksum is the data to be stored as checkpoint
    type Checksum uint64
    
    // Verify verifies that passed checksum is same as calculated checksum
    func (cs Checksum) Verify(data interface{}) error {
    	if cs != New(data) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 25 01:56:43 UTC 2019
    - 1.3K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/verification/model/Checksum.java

            }
    
            Checksum checksum = (Checksum) o;
    
            if (kind != checksum.kind) {
                return false;
            }
            if (!value.equals(checksum.value)) {
                return false;
            }
            if (!Objects.equals(alternatives, checksum.alternatives)) {
                return false;
            }
            if (!Objects.equals(origin, checksum.origin)) {
                return false;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Oct 10 21:10:11 UTC 2023
    - 3.9K bytes
    - Viewed (0)
  6. docs/site-replication/run-replication-with-checksum-header.sh

    aws s3api --endpoint-url=https://localhost:9001 put-object --checksum-algorithm SHA256 --checksum-sha256 "${OBJ_CHKSUM}" --bucket test-bucket --key obj --body /tmp/data/obj --no-verify-ssl --profile enterprise
    
    split -n 10 /tmp/data/mpartobj
    CREATE_MPART_OUT=$(aws s3api --endpoint-url=https://localhost:9001 create-multipart-upload --bucket test-bucket --key mpartobj --checksum-algorithm SHA256 --no-verify-ssl --profile enterprise)
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Sat Jun 08 16:24:15 UTC 2024
    - 6.9K bytes
    - Viewed (0)
  7. .github/workflows/codeql-analysis.yml

            # https://docs.github.com/en/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#overriding-automatic-language-detection
    
        steps:
        - name: Checkout repository
          uses: actions/checkout@v4
          # Checkout must run before the caching key is computed using the `hashFiles` method
    
        - name: Cache Gradle Modules
          uses: actions/cache@v4
          with:
            path: |
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu May 02 09:13:16 UTC 2024
    - 4K bytes
    - Viewed (0)
  8. pkg/kubelet/cm/dra/state/checkpoint.go

    	Checksum checksum.Checksum  `json:"checksum"`
    }
    
    // DraManagerCheckpoint struct is an old implementation of the DraManagerCheckpoint
    type DRAManagerCheckpointWithoutResourceHandles struct {
    	Version  string                                   `json:"version"`
    	Entries  ClaimInfoStateListWithoutResourceHandles `json:"entries,omitempty"`
    	Checksum checksum.Checksum                        `json:"checksum"`
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jul 18 15:23:10 UTC 2023
    - 4.1K bytes
    - Viewed (0)
  9. pkg/kubelet/status/state/checkpoint.go

    	}
    }
    
    // MarshalCheckpoint returns marshalled checkpoint
    func (prc *PodResourceAllocationCheckpoint) MarshalCheckpoint() ([]byte, error) {
    	// make sure checksum wasn't set before so it doesn't affect output checksum
    	prc.Checksum = 0
    	prc.Checksum = checksum.New(prc)
    	return json.Marshal(*prc)
    }
    
    // UnmarshalCheckpoint tries to unmarshal passed bytes to checkpoint
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Feb 24 18:21:21 UTC 2023
    - 2.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/hash/ChecksumHashFunction.java

        return toString;
      }
    
      /** Hasher that updates a checksum. */
      private final class ChecksumHasher extends AbstractByteHasher {
        private final Checksum checksum;
    
        private ChecksumHasher(Checksum checksum) {
          this.checksum = checkNotNull(checksum);
        }
    
        @Override
        protected void update(byte b) {
          checksum.update(b);
        }
    
        @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 22:01:56 UTC 2024
    - 4.4K bytes
    - Viewed (0)
Back to top