• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/OpenSSH-189/openssh/

Lines Matching defs:blob

85  * Serialises the authentication (private) key to a blob, encrypting it with
86 * passphrase. The identification of the blob (lowest 64 bits of n) will
91 key_private_rsa1_to_blob(Key *key, Buffer *blob, const char *passphrase,
167 buffer_append(blob, buffer_ptr(&encrypted), buffer_len(&encrypted));
175 key_private_pem_to_blob(Key *key, Buffer *blob, const char *_passphrase,
217 buffer_append(blob, bptr, blen);
223 /* Save a key blob to a file */
245 /* Serialise "key" to buffer "blob" */
247 key_private_to_blob(Key *key, Buffer *blob, const char *passphrase,
252 return key_private_rsa1_to_blob(key, blob, passphrase, comment);
256 return key_private_pem_to_blob(key, blob, passphrase, comment);
285 key_parse_public_rsa1(Buffer *blob, char **commentp)
291 if (buffer_len(blob) < sizeof(authfile_id_string)) {
300 if (memcmp(buffer_ptr(blob), authfile_id_string,
306 buffer_append(&copy, buffer_ptr(blob), buffer_len(blob));
328 key_load_file(int fd, const char *filename, Buffer *blob)
349 buffer_clear(blob);
357 buffer_clear(blob);
361 buffer_append(blob, buf, len);
362 if (buffer_len(blob) > MAX_KEY_FILE_SIZE) {
363 buffer_clear(blob);
370 st.st_size != buffer_len(blob)) {
374 buffer_clear(blob);
424 key_parse_private_rsa1(Buffer *blob, const char *passphrase, char **commentp)
435 if (buffer_len(blob) < sizeof(authfile_id_string)) {
444 if (memcmp(buffer_ptr(blob), authfile_id_string,
450 buffer_append(&copy, buffer_ptr(blob), buffer_len(blob));
525 key_parse_private_pem(Buffer *blob, int type, const char *passphrase,
533 if ((bio = BIO_new_mem_buf(buffer_ptr(blob),
534 buffer_len(blob))) == NULL) {
647 key_parse_private_type(Buffer *blob, int type, const char *passphrase,
652 return key_parse_private_rsa1(blob, passphrase, commentp);
657 return key_parse_private_pem(blob, type, passphrase, commentp);