mirror of
https://github.com/etesync/android
synced 2025-02-02 19:01:06 +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);
|
hashContent.write(content);
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
// FIXME: Do something
|
// Can never happen, but just in case, return a bad hmac
|
||||||
e.printStackTrace();
|
return "DEADBEEFDEADBEEFDEADBEEFDEADBEEF".getBytes();
|
||||||
}
|
}
|
||||||
|
|
||||||
return hmac(keyBase64, hashContent.toByteArray());
|
return hmac(keyBase64, hashContent.toByteArray());
|
||||||
|
Loading…
Reference in New Issue
Block a user