-
Notifications
You must be signed in to change notification settings - Fork 0
ghkdqhrbals:GCM(Galois Counter Mode) With GMAC
Hwangbo Gyumin edited this page Jun 5, 2022
·
1 revision
Using AES, we can handle only 128 bit of pain text.
notation
Pain Text -> PT
Cypher Text -> CT
Cypher Key -> CK
PT1 PT2 ... PTn with same CK
add IV(Initialization Vector) and loop
- [PT1] XOR IV
- (1) encrypt with CK
- [PT2] XOR (2)
- (3) encrypt with CK
Do it until PTn
![스크린샷 2022-06-04 오후 5 50 07](https://user-images.githubusercontent.com/29156882/171992004-aa175370-acb7-4be3-b906-ba3a19a434e2.png)
![스크린샷 2022-06-04 오후 5 50 12](https://user-images.githubusercontent.com/29156882/171992011-90d450bd-5097-46c3-8856-d0d457a6fb8e.png)
![스크린샷 2022-06-04 오후 5 50 19](https://user-images.githubusercontent.com/29156882/171992014-775e7b7b-2866-46bf-9cc1-b89622764c23.png)
produce Tag(MAC) and CT
![스크린샷 2022-06-04 오후 5 57 03](https://user-images.githubusercontent.com/29156882/171992314-dfc97965-3891-4e08-94b7-66d5cbc9ddf5.png)
with AEAD(Authentication Encryption with Associated Data)
GCM plus steps in intitial GMAC XOR with associated Data(Protoco version, Port, Seq, Address, etc)
![스크린샷 2022-06-04 오후 6 04 18](https://user-images.githubusercontent.com/29156882/171992488-b1bcd334-5331-4ef5-99fa-518b52e6b22e.png)
This project provide basic banking service setup with Go