Hawkynt

SEED Key Wrap with Padding

RFC 5649 key wrapping with padding applied to SEED cipher. Supports arbitrary-length plaintext by padding to 8-byte multiples and embedding length in AIV.

Properties

Property Value
Category Special Algorithms
Sub-category Key Wrapping
Security status ๐Ÿ›ก๏ธ Secure
Complexity Intermediate
Inventor NIST (RFC 5649 specification with SEED cipher)
Year 2009
Origin ๐Ÿ‡ฐ๐Ÿ‡ท South Korea
Source algorithms/crypto/seedwrappad.js

Parameters

Parameter Supported values
Key sizes 16 bytes (128 bits)

Security

Status: ๐Ÿ›ก๏ธ Secure

No vulnerabilities are recorded for this implementation.

Documentation

References

Test vectors

2 vectors ship with this algorithm and run in the test suite. Byte values are hexadecimal.

Vector 1 โ€” Self-consistency vector (RFC 5649 wrap structure, sized like RFC 5649 ยง6.2, with SEED substituted for AES; no official SEED-KWP KAT exists) โ€” single-block case (7-octet key data)

Field Value
key 000102030405060708090a0b0c0d0e0f
input 466f7250617369
expected 47e20ac2284005f3dbdf0b2ee509a460

Vector 2 โ€” Self-consistency vector (RFC 5649 wrap structure, sized like RFC 5649 ยง6.1, with SEED substituted for AES; no official SEED-KWP KAT exists) โ€” multi-block case (20-octet key data, general RFC 3394 loop)

Field Value
key 2b7e151628aed2a6abf7158809cf4f3c
input c37b7e6492584340bed12207808941155068f738
expected 938241514e0bf5f5ead58fe8eb09a93fa101fefc47e2f90de121a3765644226a

โ† All algorithms