RE: B64 Decode issues (C)

2010-08-05 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of Marc Phillips > Sent: Thursday, 05 August, 2010 11:20 > Ger Hobbelt wrote: > > Got some sample data to show which makes the bugger fail? > > sqlite3 /tmp/MyTestsqlite.db > SQLite version 3.3.6 > Enter ".help" for instructions > sqlite> CREATE

Re: B64 Decode issues (C)

2010-08-05 Thread Marc Phillips
> If you want to encrypt a database, have you considered SQLCipher > (http://www.zetetic.net/code/sqlcipher)? It is free and uses OpenSSL. I'm not encrypting it (the data is encrypted via the app already anyway), I'm simply b64 encoding it; thanks though, this might be useful for other things.

Re: B64 Decode issues (C)

2010-08-05 Thread Jeffrey Walton
Hi Marc, If you want to encrypt a database, have you considered SQLCipher (http://www.zetetic.net/code/sqlcipher)? It is free and uses OpenSSL. Jeff On Thu, Aug 5, 2010 at 11:19 AM, Marc Phillips wrote: > Ger Hobbelt wrote: >> Got some sample data to show which makes the bugger fail? > > sqlit

Re: B64 Decode issues (C)

2010-08-05 Thread Marc Phillips
Ger Hobbelt wrote: > Got some sample data to show which makes the bugger fail? sqlite3 /tmp/MyTestsqlite.db SQLite version 3.3.6 Enter ".help" for instructions sqlite> CREATE TABLE test (id INTEGER primary key AUTOINCREMENT, test TEXT); sqlite> .quit encode: bmem = BIO_new(BIO_s_mem()); b64 = BI

Re: B64 Decode issues (C)

2010-08-05 Thread Ger Hobbelt
Got some sample data to show which makes the bugger fail? On Thu, Aug 5, 2010 at 4:58 AM, Marc Phillips wrote: > I mean if try to decode, it stops 15 bytes in. If I read > the original file, and print out byte 15, it's a \n. > > I tried using BIO_FLAGS_BASE64_NO_NL, which then failes on encode.

Re: B64 Decode issues (C)

2010-08-04 Thread Marc Phillips
> I'm not sure quite what you mean here. bio_b64 by default > adds \n linebreaks every 64 chars when encoding (output) I mean if try to decode, it stops 15 bytes in. If I read the original file, and print out byte 15, it's a \n. I tried using BIO_FLAGS_BASE64_NO_NL, which then failes on encode

RE: B64 Decode issues (C)

2010-08-04 Thread Dave Thompson
> From: owner-openssl-us...@openssl.org On Behalf Of Marc Phillips > Sent: Tuesday, 03 August, 2010 23:48 > I'm having an issue with using base64 decode. I can encode fine, > and can decode strings just fine, but am having an issue > decoding (specifically) a sqlite database. > > Here's my enco