Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for bigBytesECDH (0.15 sec)

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

    	defer C._goboringcrypto_BN_free(big)
    	if C._goboringcrypto_EC_POINT_get_affine_coordinates_GFp(group, pt, big, nil, nil) == 0 {
    		return nil, fail("EC_POINT_get_affine_coordinates_GFp")
    	}
    	return bigBytesECDH(curve, big)
    }
    
    func bigBytesECDH(curve string, big *C.GO_BIGNUM) ([]byte, error) {
    	out := make([]byte, curveSize(curve))
    	if C._goboringcrypto_BN_bn2bin_padded((*C.uint8_t)(&out[0]), C.size_t(len(out)), big) == 0 {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Jul 20 17:51:31 UTC 2023
    - 6.2K bytes
    - Viewed (0)
Back to top