Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for bytesToBN (0.28 sec)

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

    	return (*C.uint8_t)(unsafe.Pointer(&b[0]))
    }
    
    const wordBytes = bits.UintSize / 8
    
    func bigToBN(x BigInt) *C.GO_BIGNUM {
    	return C._goboringcrypto_BN_le2bn(wbase(x), C.size_t(len(x)*wordBytes), nil)
    }
    
    func bytesToBN(x []byte) *C.GO_BIGNUM {
    	return C._goboringcrypto_BN_bin2bn((*C.uint8_t)(&x[0]), C.size_t(len(x)), nil)
    }
    
    func bnToBig(bn *C.GO_BIGNUM) BigInt {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 14:00:54 UTC 2024
    - 3K bytes
    - Viewed (0)
Back to top