Skip to content

@mega-yfue/eufy-sdk / p2pCodec / EciesUnwrapOptions

Interface: EciesUnwrapOptions

Options for eciesUnwrap.

Properties

pkcs7?

ts
optional pkcs7?: boolean;

Whether the AES-128-CBC plaintext is PKCS7-padded (video: true). Default false (zero-/no-pad).


verifyHmac?

ts
optional verifyHmac?: boolean;

When true, the envelope carries a trailing 32-byte HMAC tag over iv ‖ ct (the video CMD_VIDEO_FRAME envelope, which is ephPub(33) ‖ iv(16) ‖ ct(48) ‖ HMAC(32)). The tag is verified with kdf[16:48] as the MAC key and a mismatch yields undefined. When false (the CMD_GATEWAYINFO envelope, ephPub(33) ‖ iv(16) ‖ ct(48)) there is no HMAC step.

Independent and unofficial. Not affiliated with, endorsed by, or sponsored by Anker Innovations, Anker eufy, or eufy. "Anker eufy", "eufy" and "Anker" are trademarks of their respective owners. Use responsibly — rapid or failed logins can trigger captcha or temporary cooldowns.