diff --git a/src/api/EteSync.ts b/src/api/EteSync.ts index cc6530b..dd57acc 100644 --- a/src/api/EteSync.ts +++ b/src/api/EteSync.ts @@ -276,7 +276,7 @@ export class UserInfo extends BaseItem { } calculateHmac(cryptoManager: CryptoManager, encrypted: byte[]): byte[] { - let postfix = stringToByteArray(this._json.pubkey); + let postfix = sjcl.codec.bytes.fromBits(sjcl.codec.base64.toBits(this._json.pubkey)); return cryptoManager.hmac(encrypted.concat(postfix)); }