- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for bnToBig (0.09 sec)
-
src/crypto/internal/boring/rsa.go
C._goboringcrypto_RSA_get0_key(key, &n, &e, &d) C._goboringcrypto_RSA_get0_factors(key, &p, &q) C._goboringcrypto_RSA_get0_crt_params(key, &dp, &dq, &qinv) return bnToBig(n), bnToBig(e), bnToBig(d), bnToBig(p), bnToBig(q), bnToBig(dp), bnToBig(dq), bnToBig(qinv), nil } type PublicKeyRSA struct { // _key MUST NOT be accessed directly. Instead, use the withKey method. _key *C.GO_RSA }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 23:38:03 UTC 2024 - 12K bytes - Viewed (0) -
src/crypto/internal/boring/boring.go
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 { 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 {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 06 14:00:54 UTC 2024 - 3K bytes - Viewed (0)