Stroika Library 3.0d16
 
Loading...
Searching...
No Matches
RC4.h
Go to the documentation of this file.
1/*
2 * Copyright(c) Sophist Solutions, Inc. 1990-2025. All rights reserved
3 */
4#ifndef _Stroika_Foundation_Cryptography_RC4_h_
5#define _Stroika_Foundation_Cryptography_RC4_h_ 1
6
7#include "Stroika/Foundation/StroikaPreComp.h"
8
9#include "Stroika/Foundation/Common/Common.h"
13
14/**
15 * \file
16 *
17 * TODO:
18 * @todo REDO THIS API - USELESS AS IS. Pass in DerivedKey object - but only after I've made it
19 * more portable.
20 *
21 *
22 *
23 */
24
25namespace Stroika::Foundation::Cryptography::Encoding::Algorithm {
26
27#if qStroika_HasComponent_OpenSSL
28 /**
29 */
30 Streams::InputStream::Ptr<byte> DecodeRC4 (const Memory::BLOB& key, const Streams::InputStream::Ptr<byte>& in);
31 Memory::BLOB DecodeRC4 (const Memory::BLOB& key, const Memory::BLOB& in);
32#endif
33
34#if qStroika_HasComponent_OpenSSL
35 /**
36 */
37 Streams::InputStream::Ptr<byte> EncodeRC4 (const Memory::BLOB& key, const Streams::InputStream::Ptr<byte>& in);
38 Memory::BLOB EncodeRC4 (const Memory::BLOB& key, const Memory::BLOB& in);
39#endif
40
41#if qStroika_HasComponent_OpenSSL
42 /**
43 */
44 Streams::OutputStream::Ptr<byte> RC4Decoder (const Memory::BLOB& key, const Streams::OutputStream::Ptr<byte>& out);
45#endif
46
47#if qStroika_HasComponent_OpenSSL
48 /**
49 */
50 Streams::OutputStream::Ptr<byte> RC4Encoder (const Memory::BLOB& key, const Streams::OutputStream::Ptr<byte>& out);
51#endif
52
53}
54
55/*
56 ********************************************************************************
57 ***************************** Implementation Details ***************************
58 ********************************************************************************
59 */
60
61#endif /*_Stroika_Foundation_Cryptography_RC4_h_*/