3 ms·
> You implement a formal spec for a requirement and/or high-level function that takes plaintext as input and outputs ciphertext. this misses the relationship b
by munin 11y ago
> You implement a formal spec for a requirement and/or high-level function that takes plaintext as input and outputs ciphertext.
this misses the relationship between the size of the plaintext and the ciphertext...
edit: part of the problem is tooling, to deal with stuff like this you need dependent types and those do exist, but not in a way that "the programmer on the street" can use...
- nickpsecurity 11y agoIt doesn't and you don't. Size should be specified in both the spec (data properties) and the pre-conditions of the function implementing it.