law pkcs7_unpad_zero
import bend-osdev-pkcs7@0.1.0.0/LAWS.bend as LAWSimport Base
import bend-osdev-bytes@0.1.1.0/bytes.bend as B
import bend-osdev-mode-core@0.1.0.0/mode_core.bend as M
import bend-osdev-pkcs7@0.1.0.0/pkcs7.bend as P
35# a last byte of 0, or one the bytes before it contradict, is bad padding
36law pkcs7_unpad_zero:
37 {P.Pkcs7.unpad(16n, B.Octets.of_list([107, 193, 190, 226, 46, 64, 159, 150, 233, 61, 126, 17, 115, 147, 23, 0])) == Fail{M.CmBadPadding{}} : Result<&2, &2, M.CmError, B.Octets>}
Uses (6)
Used by (0)
No other definition uses this definition.