Exemplo n.º 1
0
 internal extern static int HMAC_Init_ex(ref HMAC_CTX ctx, byte[] key, int key_len, IntPtr md, IntPtr zero);
Exemplo n.º 2
0
 private extern static void HMAC_Init_exNative(ref HMAC_CTX ctx, byte[] key, int key_len, IntPtr md, IntPtr zero);
Exemplo n.º 3
0
 internal extern static unsafe int HMAC_Init(out HMAC_CTX ctx, byte *key, int key_len, IntPtr md);
Exemplo n.º 4
0
 private extern static unsafe int HMAC_InitNative(out HMAC_CTX ctx, byte* key, int key_len, IntPtr md);
Exemplo n.º 5
0
 private extern static unsafe int HMAC_FinalNative(ref HMAC_CTX ctx, byte* md, ref uint len);
Exemplo n.º 6
0
 internal extern static unsafe void HMAC_CTX_cleanup(ref HMAC_CTX ctx);
Exemplo n.º 7
0
 internal static unsafe int HMAC_Update(ref HMAC_CTX ctx, byte* data, int len)
 {
     HMAC_UpdateNative(ref ctx, data, len);
     return Success;
 }
Exemplo n.º 8
0
 private extern static unsafe int HMAC_InitNative(out HMAC_CTX ctx, byte *key, int key_len, IntPtr md);
Exemplo n.º 9
0
 private extern static unsafe int HMAC_UpdateNative(ref HMAC_CTX ctx, byte *data, int len);
Exemplo n.º 10
0
 internal static unsafe int HMAC_Update(ref HMAC_CTX ctx, byte *data, int len)
 {
     HMAC_UpdateNative(ref ctx, data, len);
     return(Success);
 }
Exemplo n.º 11
0
 internal static unsafe int HMAC_Final(ref HMAC_CTX ctx, byte *md, ref uint len)
 {
     HMAC_FinalNative(ref ctx, md, ref len);
     return(Success);
 }
Exemplo n.º 12
0
        // On OSX, these functions are void returning (and the man pages give no indication of what would happen if they
        // fail), but upstack code is written against surface area where they return 1 on success and 0 on error.
        // These routines call the underlying APIs and then just return success

        internal static unsafe int HMAC_Init(out HMAC_CTX ctx, byte *key, int key_len, IntPtr md)
        {
            HMAC_InitNative(out ctx, key, key_len, md);
            return(Success);
        }
Exemplo n.º 13
0
 private extern static void HMAC_Init_exNative(ref HMAC_CTX ctx, byte[] key, int key_len, IntPtr md, IntPtr zero);
Exemplo n.º 14
0
 internal static int HMAC_Init_ex(ref HMAC_CTX ctx, byte[] key, int key_len, IntPtr md, IntPtr zero)
 {
     HMAC_Init_exNative(ref ctx, key, key_len, md, zero);
     return(Success);
 }
Exemplo n.º 15
0
 internal extern static unsafe int HMAC_Update(ref HMAC_CTX ctx, byte *data, int len);
Exemplo n.º 16
0
 private extern static unsafe int HMAC_FinalNative(ref HMAC_CTX ctx, byte *md, ref uint len);
Exemplo n.º 17
0
 internal extern static unsafe int HMAC_Final(ref HMAC_CTX ctx, byte *md, ref uint len);
Exemplo n.º 18
0
 internal extern static unsafe int HMAC_Init(out HMAC_CTX ctx, byte* key, int key_len, IntPtr md);
Exemplo n.º 19
0
        // On OSX, these functions are void returning (and the man pages give no indication of what would happen if they
        // fail), but upstack code is written against surface area where they return 1 on success and 0 on error.
        // These routines call the underlying APIs and then just return success

        internal static unsafe int HMAC_Init(out HMAC_CTX ctx, byte* key, int key_len, IntPtr md)
        {
            HMAC_InitNative(out ctx, key, key_len, md);
            return Success;
        }
Exemplo n.º 20
0
 internal extern static int HMAC_Init_ex(ref HMAC_CTX ctx, byte[] key, int key_len, IntPtr md, IntPtr zero);
Exemplo n.º 21
0
 internal static unsafe int HMAC_Final(ref HMAC_CTX ctx, byte* md, ref uint len)
 {
     HMAC_FinalNative(ref ctx, md, ref len);
     return Success;
 }
Exemplo n.º 22
0
 internal extern static unsafe int HMAC_Update(ref HMAC_CTX ctx, byte* data, int len);
Exemplo n.º 23
0
 private extern static unsafe int HMAC_UpdateNative(ref HMAC_CTX ctx, byte* data, int len);
Exemplo n.º 24
0
 internal extern static unsafe int HMAC_Final(ref HMAC_CTX ctx, byte* md, ref uint len);
Exemplo n.º 25
0
 internal extern static unsafe void HMAC_CTX_cleanup(ref HMAC_CTX ctx);
Exemplo n.º 26
0
 internal static int HMAC_Init_ex(ref HMAC_CTX ctx, byte[] key, int key_len, IntPtr md, IntPtr zero)
 {
     HMAC_Init_exNative(ref ctx, key, key_len, md, zero);
     return Success;
 }