Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 45 for boringcrypto (0.14 sec)

  1. src/cmd/go/go_boring_test.go

    // Copyright 2015 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
    
    package main_test
    
    import "testing"
    
    func TestBoringInternalLink(t *testing.T) {
    	tg := testgo(t)
    	defer tg.cleanup()
    	tg.parallel()
    	tg.tempFile("main.go", `package main
    		import "crypto/sha1"
    		func main() {
    			sha1.New()
    		}`)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 29 14:23:22 UTC 2022
    - 544 bytes
    - Viewed (0)
  2. src/crypto/internal/boring/sig/sig_other.s

    // On amd64 they have recognizable implementations, so that you can
    // search a particular binary to see if they are present.
    // On other platforms (those using this source file), they don't.
    
    //go:build !amd64
    
    TEXT ·BoringCrypto(SB),$0
    	RET
    
    TEXT ·FIPSOnly(SB),$0
    	RET
    
    TEXT ·StandardCrypto(SB),$0
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:27 UTC 2023
    - 499 bytes
    - Viewed (0)
  3. src/crypto/internal/boring/ecdsa.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 && linux && (amd64 || arm64) && !android && !msan
    
    package boring
    
    // #include "goboringcrypto.h"
    import "C"
    import (
    	"errors"
    	"runtime"
    )
    
    type ecdsaSignature struct {
    	R, S BigInt
    }
    
    type PrivateKeyECDSA struct {
    	key *C.GO_EC_KEY
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 17:51:31 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  4. src/crypto/x509/boring.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
    
    package x509
    
    import (
    	"crypto/ecdsa"
    	"crypto/elliptic"
    	"crypto/internal/boring/fipstls"
    	"crypto/rsa"
    )
    
    // boringAllowCert reports whether c is allowed to be used
    // in a certificate chain by the current fipstls enforcement setting.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 26 22:52:27 UTC 2024
    - 993 bytes
    - Viewed (0)
  5. src/crypto/internal/boring/build-boring.sh

    # Go toolchain / clang toolchain combinations.
    perl -p -i -e 's/defined.*ELF.*defined.*GNUC.*/$0 \&\& !defined(GOBORING)/' boringssl/crypto/mem.c
    
    # Verbatim instructions from BoringCrypto build docs.
    printf "set(CMAKE_C_COMPILER \"clang\")\nset(CMAKE_CXX_COMPILER \"clang++\")\n" >${HOME}/toolchain
    cd boringssl
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 18 21:28:09 UTC 2022
    - 1.5K bytes
    - Viewed (0)
  6. src/crypto/internal/boring/bcache/cache.go

    // license that can be found in the LICENSE file.
    
    // Package bcache implements a GC-friendly cache (see [Cache]) for BoringCrypto.
    package bcache
    
    import (
    	"sync/atomic"
    	"unsafe"
    )
    
    // A Cache is a GC-friendly concurrent map from unsafe.Pointer to
    // unsafe.Pointer. It is meant to be used for maintaining shadow
    // BoringCrypto state associated with certain allocated structs, in
    // particular public and private RSA and ECDSA keys.
    //
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 18 00:30:19 UTC 2022
    - 4.4K bytes
    - Viewed (0)
  7. src/crypto/ecdh/ecdh.go

    			// Because we already checked in NewPrivateKey that the key is valid,
    			// there should not be any possible errors from BoringCrypto,
    			// so we turn the error into a panic.
    			// (We can't return it anyhow.)
    			kpub, err := k.boring.PublicKey()
    			if err != nil {
    				panic("boringcrypto: " + err.Error())
    			}
    			k.publicKey = &PublicKey{
    				curve:     k.curve,
    				publicKey: kpub.Bytes(),
    				boring:    kpub,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 13 17:09:47 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  8. src/cmd/internal/notsha256/sha256.go

    // a hash defined as bitwise NOT of SHA256.
    // It is used in situations where exact fidelity to SHA256 is unnecessary.
    // In particular, it is used in the compiler toolchain,
    // which cannot depend directly on cgo when GOEXPERIMENT=boringcrypto
    // (and in that mode the real sha256 uses cgo).
    package notsha256
    
    import (
    	"encoding/binary"
    	"hash"
    )
    
    // The size of a checksum in bytes.
    const Size = 32
    
    // The blocksize in bytes.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Apr 29 14:23:17 UTC 2022
    - 2.9K bytes
    - Viewed (0)
  9. src/crypto/x509/boring_test.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
    
    package x509
    
    import (
    	"crypto/ecdsa"
    	"crypto/elliptic"
    	"crypto/internal/boring/fipstls"
    	"crypto/rand"
    	"crypto/rsa"
    	"crypto/x509/pkix"
    	"fmt"
    	"math/big"
    	"strings"
    	"testing"
    	"time"
    )
    
    const (
    	boringCertCA = iota
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 17 17:38:47 UTC 2022
    - 3.7K bytes
    - Viewed (0)
  10. src/crypto/internal/boring/build-goboring.sh

    EOF
    
    awk -f boringx.awk goboringcrypto.h # writes goboringcrypto.x
    awk -f boringh.awk goboringcrypto.h # writes goboringcrypto[01].h
    
    ls -l ../boringssl/include
    clang++ -std=c++11 -fPIC -I../boringssl/include -O2 -o a.out  goboringcrypto.cc
    ./a.out || exit 2
    
    # clang implements u128 % u128 -> u128 by calling __umodti3,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 26 22:52:27 UTC 2024
    - 5.6K bytes
    - Viewed (0)
Back to top