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(); } }
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); }
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); }