1
0
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:
Tom Hacohen 2017-02-14 15:15:20 +00:00
parent 833c8c0847
commit 88322f341a

View File

@ -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());