Bug #2182

No PBKDF2WithHmacSHA1 algorithm in android <2.3.3

Added by Anonymous about 4 years ago. Updated over 3 years ago.

Status:ClosedStart date:10/22/2013
Priority:LowDue date:
Assignee:abeluck% Done:

0%

Category:-
Target version:0.1
Component:

Description

I got "initializeSecrets failed: java.security.NoSuchAlgorithmException : SecretKeyFactory PBKDF2WithHmacSHA1 implementation not found"
when using notecipher in android 2.2. I'm guessing the algorithm isn't supported in that android version. I also tested on android 2.3.3 and it works there fine. So i propose either changing the minimumSDK in cacheword to 9 (2.3.3) or choosing a different algorithm in versions < 2.3.3

Kind regards,
uberspot

p.s. error message is printed in initializeSecrets(Context ctx, char[] x_passphrase) in PassphraseSecrets.java


Related issues

Related to CacheWord - Task #2425: bundle spongycastle Closed 11/11/2013
Related to CacheWord - Task #3665: remove spongycastle dep Closed 08/22/2014

Associated revisions

Revision d37909a8
Added by Abel Luck almost 4 years ago

drop min sdk to Android 2.2 now that we bundle SpongyCastle

fixes #2182

History

#1 Updated by hans about 4 years ago

  • Assignee set to abeluck

We'd like to support as old releases as possible, but that won't be possible if its a lot of work. I'll let Abel make that call.

(FYI, 2.3.3 is actually android-10, 2.3 is android-9.)

#2 Updated by abeluck about 4 years ago

Hm, I might be able to sidestep this in older Androids if I bundle the latest SpongyCastle library (read: BouncyCastle) with CacheWord.

#3 Updated by abeluck about 4 years ago

  • Target version set to 0.1

#4 Updated by abeluck almost 4 years ago

  • Status changed from New to In Progress

#5 Updated by abeluck almost 4 years ago

  • Status changed from In Progress to Closed

fixed now that we're using SC

#6 Updated by hans over 3 years ago

just to confirm, android-9 is the minimum needed to do this without spongycastle:
https://stackoverflow.com/questions/6896061/how-to-add-pbkdf2withhmacsha1-for-android-api-8-froyo

Also available in: Atom PDF