Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 7 of 7 for bytesCompressed (0.17 sec)

  1. src/crypto/internal/nistec/nistec_test.go

    			rand.Read(scalar)
    			p.ScalarBaseMult(scalar)
    			p.ScalarMult(p, scalar)
    			out := p.Bytes()
    			if _, err := nistec.NewP224Point().SetBytes(out); err != nil {
    				t.Fatal(err)
    			}
    			out = p.BytesCompressed()
    			if _, err := p.SetBytes(out); err != nil {
    				t.Fatal(err)
    			}
    		}); allocs > 0 {
    			t.Errorf("expected zero allocations, got %0.1f", allocs)
    		}
    	})
    	t.Run("P256", func(t *testing.T) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 12 18:48:23 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  2. src/crypto/internal/nistec/p384.go

    	x := new(fiat.P384Element).Mul(p.x, zinv)
    
    	return append(out[:0], x.Bytes()...), nil
    }
    
    // BytesCompressed returns the compressed or infinity encoding of p, as
    // specified in SEC 1, Version 2.0, Section 2.3.3. Note that the encoding of the
    // point at infinity is shorter than all other encodings.
    func (p *P384Point) BytesCompressed() []byte {
    	// This function is outlined to make the allocations inline in the caller
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 12 00:04:29 UTC 2022
    - 18K bytes
    - Viewed (0)
  3. src/crypto/internal/nistec/p256.go

    	x := new(fiat.P256Element).Mul(p.x, zinv)
    
    	return append(out[:0], x.Bytes()...), nil
    }
    
    // BytesCompressed returns the compressed or infinity encoding of p, as
    // specified in SEC 1, Version 2.0, Section 2.3.3. Note that the encoding of the
    // point at infinity is shorter than all other encodings.
    func (p *P256Point) BytesCompressed() []byte {
    	// This function is outlined to make the allocations inline in the caller
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 17.2K bytes
    - Viewed (0)
  4. src/crypto/internal/nistec/p224.go

    	x := new(fiat.P224Element).Mul(p.x, zinv)
    
    	return append(out[:0], x.Bytes()...), nil
    }
    
    // BytesCompressed returns the compressed or infinity encoding of p, as
    // specified in SEC 1, Version 2.0, Section 2.3.3. Note that the encoding of the
    // point at infinity is shorter than all other encodings.
    func (p *P224Point) BytesCompressed() []byte {
    	// This function is outlined to make the allocations inline in the caller
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 12 00:04:29 UTC 2022
    - 15.9K bytes
    - Viewed (0)
  5. src/crypto/internal/nistec/p521.go

    	x := new(fiat.P521Element).Mul(p.x, zinv)
    
    	return append(out[:0], x.Bytes()...), nil
    }
    
    // BytesCompressed returns the compressed or infinity encoding of p, as
    // specified in SEC 1, Version 2.0, Section 2.3.3. Note that the encoding of the
    // point at infinity is shorter than all other encodings.
    func (p *P521Point) BytesCompressed() []byte {
    	// This function is outlined to make the allocations inline in the caller
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Aug 12 00:04:29 UTC 2022
    - 17K bytes
    - Viewed (0)
  6. src/crypto/internal/nistec/generate.go

    	x := new({{.Element}}).Mul(p.x, zinv)
    
    	return append(out[:0], x.Bytes()...), nil
    }
    
    // BytesCompressed returns the compressed or infinity encoding of p, as
    // specified in SEC 1, Version 2.0, Section 2.3.3. Note that the encoding of the
    // point at infinity is shorter than all other encodings.
    func (p *{{.P}}Point) BytesCompressed() []byte {
    	// This function is outlined to make the allocations inline in the caller
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 04 17:29:44 UTC 2024
    - 19.7K bytes
    - Viewed (0)
  7. src/crypto/internal/nistec/p256_asm.go

    	p256FromMont(x, x)
    	p256LittleToBig((*[32]byte)(out[:]), x)
    
    	return out[:], nil
    }
    
    // BytesCompressed returns the compressed or infinity encoding of p, as
    // specified in SEC 1, Version 2.0, Section 2.3.3. Note that the encoding of the
    // point at infinity is shorter than all other encodings.
    func (p *P256Point) BytesCompressed() []byte {
    	// This function is outlined to make the allocations inline in the caller
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 13 18:57:38 UTC 2024
    - 21.4K bytes
    - Viewed (0)
Back to top