Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 64 for boringcrypto (0.17 sec)

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

    	if C._goboringcrypto_HMAC_Init(&h.ctx, unsafe.Pointer(base(h.key)), C.int(len(h.key)), h.md) == 0 {
    		panic("boringcrypto: HMAC_Init failed")
    	}
    	if int(C._goboringcrypto_HMAC_size(&h.ctx)) != h.size {
    		println("boringcrypto: HMAC size:", C._goboringcrypto_HMAC_size(&h.ctx), "!=", h.size)
    		panic("boringcrypto: HMAC size mismatch")
    	}
    	runtime.KeepAlive(h) // Next line will keep h alive too; just making doubly sure.
    	h.sum = nil
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 17:51:31 UTC 2023
    - 4K bytes
    - Viewed (0)
  2. src/crypto/internal/boring/notboring.go

    func NewSHA224() hash.Hash { panic("boringcrypto: not available") }
    func NewSHA256() hash.Hash { panic("boringcrypto: not available") }
    func NewSHA384() hash.Hash { panic("boringcrypto: not available") }
    func NewSHA512() hash.Hash { panic("boringcrypto: not available") }
    
    func SHA1([]byte) [20]byte   { panic("boringcrypto: not available") }
    func SHA224([]byte) [28]byte { panic("boringcrypto: not available") }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 26 22:52:27 UTC 2024
    - 4.9K bytes
    - Viewed (0)
  3. src/crypto/boring/notboring_test.go

    // license that can be found in the LICENSE file.
    
    //go:build (goexperiment.boringcrypto && !boringcrypto) || (!goexperiment.boringcrypto && boringcrypto)
    
    package boring_test
    
    import "testing"
    
    func TestNotBoring(t *testing.T) {
    	t.Error("goexperiment.boringcrypto and boringcrypto should be equivalent build tags")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 428 bytes
    - Viewed (0)
  4. src/crypto/boring/boring.go

    //go:build boringcrypto
    
    // Package boring exposes functions that are only available when building with
    // Go+BoringCrypto. This package is available on all targets as long as the
    // Go+BoringCrypto toolchain is used. Use the Enabled function to determine
    // whether the BoringCrypto core is actually in use.
    //
    // Any time the Go+BoringCrypto toolchain is used, the "boringcrypto" build tag
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 29 14:23:22 UTC 2022
    - 800 bytes
    - Viewed (0)
  5. src/crypto/internal/boring/boring.go

    func init() {
    	C._goboringcrypto_BORINGSSL_bcm_power_on_self_test()
    	if C._goboringcrypto_FIPS_mode() != 1 {
    		panic("boringcrypto: not in FIPS mode")
    	}
    	sig.BoringCrypto()
    }
    
    // Unreachable marks code that should be unreachable
    // when BoringCrypto is in use. It panics.
    func Unreachable() {
    	panic("boringcrypto: invalid code execution")
    }
    
    // provided by runtime to avoid os import.
    func runtime_arg0() string
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 14:00:54 UTC 2024
    - 3K bytes
    - Viewed (0)
  6. src/crypto/internal/boring/sig/sig.go

    // and will result in certain code sequences being linked into
    // the final binary. The functions themselves are no-ops.
    package sig
    
    // BoringCrypto indicates that the BoringCrypto module is present.
    func BoringCrypto()
    
    // FIPSOnly indicates that package crypto/tls/fipsonly is present.
    func FIPSOnly()
    
    // StandardCrypto indicates that standard Go crypto is present.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 22 15:58:43 UTC 2017
    - 614 bytes
    - Viewed (0)
  7. src/crypto/internal/boring/Dockerfile

    	tar xJf boringssl-$BoringV.tar.xz
    
    # Build BoringCrypto.
    ADD build-boring.sh /boring/build-boring.sh
    RUN /boring/build-boring.sh
    
    # Build Go BoringCrypto syso.
    # build.sh copies it back out of the Docker image.
    ADD goboringcrypto.h /boring/godriver/goboringcrypto.h
    ADD build-goboring.sh /boring/build-goboring.sh
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 26 22:52:27 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  8. src/crypto/rsa/boring_test.go

    // Copyright 2017 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build boringcrypto
    
    // Note: Can run these tests against the non-BoringCrypto
    // version of the code by using "CGO_ENABLED=0 go test".
    
    package rsa
    
    import (
    	"crypto"
    	"crypto/rand"
    	"encoding/asn1"
    	"encoding/hex"
    	"math/big"
    	"runtime"
    	"runtime/debug"
    	"sync"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Nov 15 00:16:30 UTC 2022
    - 4.5K bytes
    - Viewed (0)
  9. src/crypto/rsa/notboring.go

    // license that can be found in the LICENSE file.
    
    //go:build !boringcrypto
    
    package rsa
    
    import "crypto/internal/boring"
    
    func boringPublicKey(*PublicKey) (*boring.PublicKeyRSA, error) {
    	panic("boringcrypto: not available")
    }
    func boringPrivateKey(*PrivateKey) (*boring.PrivateKeyRSA, error) {
    	panic("boringcrypto: not available")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 29 14:23:22 UTC 2022
    - 445 bytes
    - Viewed (0)
  10. src/crypto/internal/boring/syso/syso.go

    // Copyright 2022 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    //go:build boringcrypto
    
    // This package only exists with GOEXPERIMENT=boringcrypto.
    // It provides the actual syso file.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 29 14:23:22 UTC 2022
    - 295 bytes
    - Viewed (0)
Back to top