- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for EC_KEY_set_private_key (0.2 sec)
-
src/crypto/internal/boring/ecdsa.go
ok := bd != nil && C._goboringcrypto_EC_KEY_set_private_key(key, bd) != 0 if bd != nil { C._goboringcrypto_BN_free(bd) } if !ok { C._goboringcrypto_EC_KEY_free(key) return nil, fail("EC_KEY_set_private_key") } k := &PrivateKeyECDSA{key} // Note: Because of the finalizer, any time k.key is passed to cgo, // that call must be followed by a call to runtime.KeepAlive(k),
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 17:51:31 UTC 2023 - 4.7K bytes - Viewed (0) -
src/crypto/internal/boring/ecdh.go
ok := b != nil && C._goboringcrypto_EC_KEY_set_private_key(key, b) != 0 if b != nil { C._goboringcrypto_BN_free(b) } if !ok { C._goboringcrypto_EC_KEY_free(key) return nil, fail("EC_KEY_set_private_key") } k := &PrivateKeyECDH{curve, key} // Note: Same as in NewPublicKeyECDH regarding finalizer and KeepAlive. runtime.SetFinalizer(k, (*PrivateKeyECDH).finalize) return k, nil }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jul 20 17:51:31 UTC 2023 - 6.2K bytes - Viewed (0)