version 1.87, 2001/12/21 08:52:22 |
version 1.89, 2001/12/29 21:56:01 |
|
|
if (buffer_len(b) < bytes) |
if (buffer_len(b) < bytes) |
fatal("buffer_get_bignum_bits: input buffer too small: " |
fatal("buffer_get_bignum_bits: input buffer too small: " |
"need %d have %d", bytes, buffer_len(b)); |
"need %d have %d", bytes, buffer_len(b)); |
BN_bin2bn((u_char *)buffer_ptr(b), bytes, value); |
BN_bin2bn(buffer_ptr(b), bytes, value); |
buffer_consume(b, bytes); |
buffer_consume(b, bytes); |
} |
} |
|
|
|
|
printf("Too many arguments.\n"); |
printf("Too many arguments.\n"); |
usage(); |
usage(); |
} |
} |
if (key_type_name == NULL) { |
|
printf("You must specify a key type (-t).\n"); |
|
usage(); |
|
} |
|
if (change_passphrase && change_comment) { |
if (change_passphrase && change_comment) { |
printf("Can only have one of -p and -c.\n"); |
printf("Can only have one of -p and -c.\n"); |
usage(); |
usage(); |
|
|
|
|
arc4random_stir(); |
arc4random_stir(); |
|
|
|
if (key_type_name == NULL) { |
|
printf("You must specify a key type (-t).\n"); |
|
usage(); |
|
} |
type = key_type_from_name(key_type_name); |
type = key_type_from_name(key_type_name); |
if (type == KEY_UNSPEC) { |
if (type == KEY_UNSPEC) { |
fprintf(stderr, "unknown key type %s\n", key_type_name); |
fprintf(stderr, "unknown key type %s\n", key_type_name); |