Home | History | Annotate | Download | only in openssh

Lines Matching defs:private

62 /* openssh private key file format */
63 #define MARK_BEGIN "-----BEGIN OPENSSH PRIVATE KEY-----\n"
64 #define MARK_END "-----END OPENSSH PRIVATE KEY-----\n"
74 #define LEGACY_BEGIN "SSH PRIVATE KEY FILE FORMAT 1.1\n"
1523 RSA *private = NULL;
1532 if ((private = RSA_new()) == NULL || (f4 = BN_new()) == NULL) {
1537 !RSA_generate_key_ex(private, bits, f4, NULL)) {
1541 *rsap = private;
1542 private = NULL;
1545 if (private != NULL)
1546 RSA_free(private);
1555 DSA *private;
1560 if ((private = DSA_new()) == NULL) {
1565 if (!DSA_generate_parameters_ex(private, bits, NULL, 0, NULL,
1566 NULL, NULL) || !DSA_generate_key(private)) {
1567 DSA_free(private);
1571 *dsap = private;
1572 private = NULL;
1575 if (private != NULL)
1576 DSA_free(private);
1599 * The group may be stored in a ASN.1 encoded private key in one of two
1634 EC_KEY *private;
1641 if ((private = EC_KEY_new_by_curve_name(*nid)) == NULL) {
1645 if (EC_KEY_generate_key(private) != 1) {
1649 EC_KEY_set_asn1_flag(private, OPENSSL_EC_NAMED_CURVE);
1650 *ecdsap = private;
1651 private = NULL;
1654 if (private != NULL)
1655 EC_KEY_free(private);
2259 /* Converts a private to a public key */
2965 /* log2(private) > log2(order)/2 */
2974 /* private < order - 1 */
3126 /* append private key and comment*/
3329 /* decrypt private portion of key */
3358 /* Load the private key and comment */
3374 /* XXX decode pubkey and check against private */
3410 * Serialises the authentication (private) key to a blob, encrypting it with
3435 /* This buffer is used to build the secret part of the private key. */
3446 * Store the private key (n and e will not be stored because they
3485 /* Allocate space for the private part of the key in the buffer. */
3650 /* The encrypted private part is not parsed by this function. */
3750 /* Read the rest of the private key. */