Exemple #1
0
 TrimSignature(byte[] buf)
 {
     return(BufArray.SubArray(
                buf,
                Hmac512.SignatureByteLength,
                buf.Length - Hmac512.SignatureByteLength
                ));
 }
Exemple #2
0
    VerifyTrim(byte[] key, byte[] buf)
    {
        if (!Hmac512.Verify(key, buf))
        {
            return(null);
        }

        return(BufArray.SubArray(
                   buf,
                   Hmac512.SignatureByteLength,
                   buf.Length - Hmac512.SignatureByteLength
                   ));
    }