mirror of
https://github.com/etesync/android
synced 2025-01-23 06:01:01 +00:00
Handle impossible issue in hmac calculation.
This commit is contained in:
parent
833c8c0847
commit
88322f341a
@ -78,8 +78,8 @@ abstract class BaseManager {
|
||||
|
||||
hashContent.write(content);
|
||||
} catch (IOException e) {
|
||||
// FIXME: Do something
|
||||
e.printStackTrace();
|
||||
// Can never happen, but just in case, return a bad hmac
|
||||
return "DEADBEEFDEADBEEFDEADBEEFDEADBEEF".getBytes();
|
||||
}
|
||||
|
||||
return hmac(keyBase64, hashContent.toByteArray());
|
||||
|
Loading…
Reference in New Issue
Block a user