- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for bigToBn (0.12 sec)
-
src/crypto/internal/boring/rsa.go
key := C._goboringcrypto_RSA_new() if key == nil { return nil, fail("RSA_new") } if !bigToBn(&key.n, N) || !bigToBn(&key.e, E) || !bigToBn(&key.d, D) || !bigToBn(&key.p, P) || !bigToBn(&key.q, Q) || !bigToBn(&key.dmp1, Dp) || !bigToBn(&key.dmq1, Dq) || !bigToBn(&key.iqmp, Qinv) { return nil, fail("BN_bin2bn") } k := &PrivateKeyRSA{_key: key}
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
panic("boringcrypto: bignum conversion failed") } return x } func bigToBn(bnp **C.GO_BIGNUM, b BigInt) bool { if *bnp != nil { C._goboringcrypto_BN_free(*bnp) *bnp = nil } if b == nil { return true } bn := bigToBN(b) if bn == nil { return false } *bnp = bn return true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 06 14:00:54 UTC 2024 - 3K bytes - Viewed (0) -
src/crypto/internal/boring/ecdsa.go
} group := C._goboringcrypto_EC_KEY_get0_group(key) pt := C._goboringcrypto_EC_POINT_new(group) if pt == nil { C._goboringcrypto_EC_KEY_free(key) return nil, fail("EC_POINT_new") } bx := bigToBN(X) by := bigToBN(Y) ok := bx != nil && by != nil && C._goboringcrypto_EC_POINT_set_affine_coordinates_GFp(group, pt, bx, by, nil) != 0 && C._goboringcrypto_EC_KEY_set_public_key(key, pt) != 0 if bx != nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 17:51:31 UTC 2023 - 4.7K bytes - Viewed (0)