Lines Matching refs:private_key
393 (EcCurve::P224, Key::P224(NistKey(try_to_vec(key_info.private_key)?))) in import_pkcs8_key_impl()
396 (EcCurve::P256, Key::P256(NistKey(try_to_vec(key_info.private_key)?))) in import_pkcs8_key_impl()
399 (EcCurve::P384, Key::P384(NistKey(try_to_vec(key_info.private_key)?))) in import_pkcs8_key_impl()
402 (EcCurve::P521, Key::P521(NistKey(try_to_vec(key_info.private_key)?))) in import_pkcs8_key_impl()
421 if key_info.private_key.len() != 2 + CURVE25519_PRIV_KEY_LEN in import_pkcs8_key_impl()
422 || key_info.private_key[0] != 0x04 in import_pkcs8_key_impl()
423 || key_info.private_key[1] != 0x20 in import_pkcs8_key_impl()
427 import_raw_ed25519_key(&key_info.private_key[2..]) in import_pkcs8_key_impl()
437 if key_info.private_key.len() != 2 + CURVE25519_PRIV_KEY_LEN in import_pkcs8_key_impl()
438 || key_info.private_key[0] != 0x04 in import_pkcs8_key_impl()
439 || key_info.private_key[1] != 0x20 in import_pkcs8_key_impl()
443 import_raw_x25519_key(&key_info.private_key[2..]) in import_pkcs8_key_impl()