diff --git a/content/posts/2021-07-09-cryptography.md b/content/posts/2021-07-09-cryptography.md index 71afccf..98fa706 100644 --- a/content/posts/2021-07-09-cryptography.md +++ b/content/posts/2021-07-09-cryptography.md @@ -308,6 +308,7 @@ HMAC Process: 여기에서 $ipad$, $opad$는 특정한 패딩 값을 가리키고, $H$는 해시 함수, $K$는 비밀 키, $\parallel$는 이어붙이기 연산자다. - 주어진 메시지 $ M $과 비밀 키 $ K $에 대해, HMAC은 다음과 같이 계산된다: + $$ \text{HMAC}(K, M) = H((K' \oplus opad) \concat H((K' \oplus ipad) \concat M)) $$ 여기서 $ H $는 해시 함수, $ K' $는 원래 키 $ K $를 내부 블록 크기에 맞게 조정한 것, $ opad $와 $ ipad $는 각각 외부 및 내부 패딩이다.