Some of the crypto methods in the BIG-IP REST API are deprecated and that results in unexpected results. Jason straightens it out on this episode of The Drift.
Source: https://community.f5.com/t5/technical-forum/api-rest-error-400/td-p/300286
(music by Jake Rahm)