3 ms·
Why are you doing this instead of SHA[N]withRSA? https://github.com/KryptCo/kryptonite-android/blob/master/app/src/main/java/co/krypt/kryptonite/crypto/SSHKeyPa
by sweis 9y ago
Why are you doing this instead of SHA[N]withRSA?
https://github.com/KryptCo/kryptonite-android/blob/master/app/src/main/java/co/krypt/kryptonite/crypto/SSHKeyPair.java#L60 https://github.com/KryptCo/kryptonite-android/blob/master/ap...
- 4kevinking 9y agoWe do the hashing ourselves so that it's easy to use any hash function in the future. If you create a Keystore key but decide to use a hash function you didn't specify at generation time, it will be rejected by the API.
- sweis 9y agoI don't know if you've done it correctly. You can use the built-in signature digest support and still add support for whatever you want in the future.