signalapp / libsignal

Home to the Signal Protocol as well as other cryptographic primitives which make Signal possible.
GNU Affero General Public License v3.0
3.08k stars 362 forks source link

Treat InvalidMacKeyLength as InvalidKeyException #432

Closed jrose-signal closed 2 years ago

jrose-signal commented 2 years ago

...not a generic RuntimeException. Now that it's only used for SignalMessage MAC keys (cf. #430), the only way it could be wrong is if it's provided incorrectly by the user.

jrose-signal commented 2 years ago

Merged as 57c1de64.