You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For improved interoperability, CryptoKey should have some facility for returning and accepting raw binary ciphertext and IVs.
For example, update the signature of Lock() to accept a second argument $raw. If true, return an array of [ "iv" => "...", "data" => "..." ]. Likewise, Unlock() could accept such an array.
The text was updated successfully, but these errors were encountered:
Not exactly; I think the separation between the key (details of encryption) and the output of Lock (encrypted message) is fairly important. The most that Lock() should return is probably:
For improved interoperability,
CryptoKey
should have some facility for returning and accepting raw binary ciphertext and IVs.For example, update the signature of
Lock()
to accept a second argument$raw
. If true, return an array of [ "iv" => "...", "data" => "..." ]. Likewise,Unlock()
could accept such an array.The text was updated successfully, but these errors were encountered: