ºÎÄÚºê

OCB-AES ÆÄÀ̽ãÀ»À§ÇÑ ÀÎÁõ µÈ ¾Ïȣȭ
Áö±Ý ´Ù¿î·Îµå

ºÎÄÚºê ¼øÀ§ ¹× ¿ä¾à

±¤°í

  • Rating:
  • ƯÇã:
  • Public Domain
  • °¡°Ý:
  • FREE
  • °Ô½ÃÀÚ À̸§:
  • Pawel Krawczyk
  • °Ô½ÃÀÚ À¥»çÀÌÆ®:
  • http://ipsec.pl/pubs/pam_tacplus.php

ºÎÄÚºê ű×


ºÎÄÚºê ¼³¸í

Pyocb´Â AES ºí·Ï ¾ÏÈ£¸¦ »ç¿ëÇÏ¿© ÀÎÁõ µÈ ¾Ïȣȭ ¸ðµå OCB (¿ÀÇÁ¼Â ÄÚµåºÏ ¸ðµå)ÀÇ ¼ø¼öÇÑ ÆÄÀ̽㠱¸ÇöÀ» Á¦°øÇÏ´Â Python ¸ðµâÀÔ´Ï´Ù. OCB´Â ´ÜÀÏ ¾Ïȣȭ ´Ü°è ¹× ´ÜÀÏ ÀÎÅÍÆäÀ̽º¸¦ »ç¿ëÇÏ¿© ±â¹Ð À¯Áö, ¹«°á¼º ¹× ÀÎÁõÀ» Á¦°øÇÕ´Ï´Ù. º°µµÀÇ HMAC °è»êÀÌÀÖ´Â ÀüÅëÀûÀÎ ¸ðµå (CTR ¶Ç´Â CBC¿Í °°Àº CTR ¶Ç´Â CBC)ÀÇ ´ë¾ÈÀÔ´Ï´Ù. SusagedAtathe ¸ðµâÀº _bytearray_ °´Ã¼¿¡¼­ ÀÛµ¿ÇÕ´Ï´Ù. Å°, nonce, Çì´õ ¹× ÀÏ¹Ý ÅؽºÆ®´Â intearrays·Î OCB·Î Àü´ÞµÇ¾î¾ßÇÕ´Ï´Ù. >>> plaintext = bytearray ( '¸¶¹ý ´Ü¾î´Â squeamish ossifrage') >>> Çì´õ = bytearray ( '¹Þ´Â »ç¶÷ : john.doe@example.com') >>> Å° = bytearray (). fromHex ( 'a45f5fdea5c088d1d7c8be37cabc8c5c') >>> Nonce = bytearray (¹üÀ§ (¹üÀ§ (¹üÀ§ (¹üÀ§ (¹üÀ§ (¹üÀ§ (¹üÀ§ (¹üÀ§ (16)) OCB.AES °¡Á® ¿À´Â AES >>> OCB °¡Á® ¿À±â OCB ¸ðµâÀº ³»Àå AES ±¸ÇöÀ» Á¦°øÇÏÁö¸¸ ´Ù¸¥ ºí·Ï ¾ÏÈ£´Â OCB-AES ¾ÏÈ£ °´Ã¼¸¦ »ç¿ëÇϽʽÿÀ. >>> AES = AES (128) >>> OCB = OCB (AES) Á¦Ç°ÀÇ È¨ÆäÀÌÁö


ºÎÄÚºê °ü·Ã ¼ÒÇÁÆ®¿þ¾î