Subject: Question: using ssh-agent as "protected memory" storage.

Question: using ssh-agent as "protected memory" storage.

From: Fellow Traveler <fellowtraveler_at_rayservers.net>
Date: Mon, 02 Jul 2012 23:50:43 -0700

Hello,

Sorry to bother you all but I have already done a lot of research online
and haven't come to a satisfactory answer.

**** All I want, is to be able to store a small piece of data in
"protected memory", and then retrieve it again later. ****

I am already doing some pretty tricked-out stuff to store this data in
my own RAM, but that's not good enough -- I'd prefer to use some sort of
"standard" protected memory, versus trying to do it myself.

On Windows there is a function called "VirtualProtect" which does this,
and I thought perhaps ssh-agent might be able to provide the same
functionality on UNIX.

Is this possible? If not, what is the best way to go about doing such a
thing?

---
Alternately, is it possible to use ssh-agent for encrypting/decrypting
data using a key stored inside ssh-agent?  Because this would also solve
my problem. Does libssh2 allow me to encrypt/decrypt using the
identities, similar to how it allows me to authenticate using the
identities?
---
I'm not trying to do anything on a remote machine, either. I just want
to talk to the local ssh-agent running on the same machine (for the
purpose described above.)
Thoughts?
---
Thanks in advance for your feedback / suggestions.
-Fellow Traveler
_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2012-07-03