Пример #1
0
 public static void uplink_free_encryption_key_result(UplinkEncryptionKeyResult result)
 {
     storj_uplinkPINVOKE.uplink_free_encryption_key_result(UplinkEncryptionKeyResult.getCPtr(result));
     if (storj_uplinkPINVOKE.SWIGPendingException.Pending)
     {
         throw storj_uplinkPINVOKE.SWIGPendingException.Retrieve();
     }
 }
Пример #2
0
        public static UplinkEncryptionKeyResult uplink_derive_encryption_key(string passphrase, SWIGTYPE_p_void salt, uint length)
        {
            UplinkEncryptionKeyResult ret = new UplinkEncryptionKeyResult(storj_uplinkPINVOKE.uplink_derive_encryption_key(new storj_uplinkPINVOKE.SWIGStringMarshal(passphrase).swigCPtr, SWIGTYPE_p_void.getCPtr(salt), length), true);

            return(ret);
        }
Пример #3
0
 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(UplinkEncryptionKeyResult obj)
 {
     return((obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.swigCPtr);
 }