Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for _goboringcrypto_BN_num_bytes (0.41 sec)

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

    }
    
    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 {
    	x := make(BigInt, (C._goboringcrypto_BN_num_bytes(bn)+wordBytes-1)/wordBytes)
    	if C._goboringcrypto_BN_bn2le_padded(wbase(x), C.size_t(len(x)*wordBytes), bn) == 0 {
    		panic("boringcrypto: bignum conversion failed")
    	}
    	return x
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 06 14:00:54 UTC 2024
    - 3K bytes
    - Viewed (0)
  2. src/crypto/internal/boring/goboringcrypto.h

    typedef struct GO_BIGNUM { char data[24]; } GO_BIGNUM;
    GO_BIGNUM* _goboringcrypto_BN_new(void);
    void _goboringcrypto_BN_free(GO_BIGNUM*);
    unsigned _goboringcrypto_BN_num_bits(const GO_BIGNUM*);
    unsigned _goboringcrypto_BN_num_bytes(const GO_BIGNUM*);
    int _goboringcrypto_BN_is_negative(const GO_BIGNUM*);
    GO_BIGNUM* _goboringcrypto_BN_bin2bn(const uint8_t*, size_t, GO_BIGNUM*);
    GO_BIGNUM* _goboringcrypto_BN_le2bn(const uint8_t*, size_t, GO_BIGNUM*);
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Jan 26 22:52:27 UTC 2024
    - 14.1K bytes
    - Viewed (0)
Back to top