With openssl keys the amount of data you can encode at a time is
key bits / 8 - 11
So it's fine for small bits of data, but you can't do massive chunks in it. But knowing it always produces a data chunk of the keysize/8 you could just encode/decode in bits if you know the size of the key.
Anybody know a way of working it out from the keys, or whether there's something in the openssl functions that tells you it. I've been looking at the manual but might be code-blind.
cheers,
D.