[HW2] Does CBC.dec should remove padding? #819
Replies: 1 comment
-
test 코드를 살펴보니 패딩을 제거하고 마지막 블록이 1바이트가 되는 것이 맞는 것 같습니다! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Your Name
하승종
Question
한국어 질문
CBC.mli
에 명시된 dec의 타입은 다음과 같습니다.과제 문서에선 CBC decryption의 동작을 다음과 같이 설명하고 있습니다
하지만 패딩을 제거하게 되면 패딩의 크기에 따라 마지막 block이 16bit 가 아니게 되고 dec 함수의 리턴 타입이 문서에서 명시한
Block.t list
가 되지 않는 상황이 발생하는데, dec 함수에서 패딩을 제거해야 하는 것인지, 아니면 제거하지 말아야 하는 것인지 궁금합니다.English Translation
The type of dec specified in
CBC.mli
is as follows:The assignment document describes the CBC decryption process as follows:
However, if padding is removed, the last block may not be 16 bytes long, which contradicts the return type
Block.t list
specified in the document.I am wondering whether the dec function should remove the padding or not, considering this discrepancy.
Beta Was this translation helpful? Give feedback.
All reactions