[openssl-users] base64 decode in C

Prashant Bapat prashant at apigee.com
Wed Mar 18 15:08:29 UTC 2015


Hi Dave and Walter,

Thanks for our reply.

I'm not doing anything different for the ssh pubkey. I'm able to decode it
using the "openssl enc -base64 -d -A" command. But not using the C program.

Attaching my entire code here. After getting the base64 decoded I'm
calculating the MD5 sum and printing it. This works for a regular string
but not for SSH pubkey.

Thanks again.

--Prashant

On 18 March 2015 at 18:04, Walter H. <Walter.H at mathemainzel.info> wrote:

> Hi,
>
> before calling this function,
> remove any whitespace;
>
> Walter
>
>
>
> _______________________________________________
> openssl-users mailing list
> To unsubscribe: https://mta.openssl.org/mailman/listinfo/openssl-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20150318/43fb4f62/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: base64.c
Type: text/x-csrc
Size: 1658 bytes
Desc: not available
URL: <http://mta.openssl.org/pipermail/openssl-users/attachments/20150318/43fb4f62/attachment.c>


More information about the openssl-users mailing list