I would like to know the security of using key size that is larger than the message digest (output) of a HMAC in one time pad encryption. One time pads for the message and the key of HMAC are different, scenario:
- A single message will be sent from $A$ to $B$ on insecure medium but is not known WHEN, in advance.
- Both $A$ and $B$ agreed previously on the one-time pads (which are randomly generated) for the key of the HMAC, and for the message encryption of the message.
- The message $M$ of size $L$ (> 50 bytes, padded) is encrypted with one-time pad of $L$ bytes.
- The key for the HMAC of message digest of size $D$ bytes is a one-time pad and larger than $D$ bytes.
- HMAC uses encrypt-then-mac, so the MAC is $\mathsf{HMAC}(K, C)$, where $K$ is the key and $C$ is the ciphertext. Needless to say that one-time pads for the message and the key of HMAC are only used once for this message only.
Because the key size is larger than the output of the hash, can I say that a possible attacker will find the wrong key even if he tries to brute force it? So even if he finds a key, there is a high chance (as the input space "key" is larger than the output space "digest") that he finds it wrong and will be noticed by the recipient when he tries to send a crafted packet.
Is there somewhere that I miss? The one issue that I see here is my doubt of the hash function not mapping inputs to outputs "perfectly" (like the input size of $CN$ not mapping to the output size of $N$, where each output is mapped to $C$ inputs exactly).