internal static void EvpCipherSetKeyAndIV( SafeEvpCipherCtxHandle ctx, ReadOnlySpan <byte> key, ReadOnlySpan <byte> iv, EvpCipherDirection direction) { if (!EvpCipherSetKeyAndIV( ctx, ref MemoryMarshal.GetReference(key), ref MemoryMarshal.GetReference(iv), direction)) { throw new CryptographicException(); } }
private static extern bool EvpCipherSetKeyAndIV( SafeEvpCipherCtxHandle ctx, ref byte key, ref byte iv, EvpCipherDirection direction);