Files
wolfssl/doc/dox_comments/header_files-ja/arc4.h

41 lines
2.0 KiB
C
Raw Normal View History

/*!
\ingroup ARC4
\brief ARC4暗号化を使用してOUTを出力したりします使WC_ARC4SETKEYを使用してARC4構造を初期化する必要があります
\return none
\param arc4 使ARC4構造へのポインタ
\param out
\param in
_Example_
\code
Arc4 enc;
byte key[] = { key to use for encryption };
wc_Arc4SetKey(&enc, key, sizeof(key));
byte plain[] = { plain text to encode };
byte cipher[sizeof(plain)];
byte decrypted[sizeof(plain)];
// encrypt the plain into cipher
wc_Arc4Process(&enc, cipher, plain, sizeof(plain));
// decrypt the cipher
wc_Arc4Process(&enc, decrypted, cipher, sizeof(cipher));
\endcode
\sa wc_Arc4SetKey
*/
int wc_Arc4Process(Arc4* arc4, byte* out, const byte* in, word32 length);
/*!
\ingroup ARC4
\brief ARC4オブジェクトのキーを設定し使WC_ARC4PROCESSを使用した暗号化に使用する前に呼び出される必要があります
\return none
\param arc4 使ARC4構造へのポインタ
\param key ARC4構造を初期化するためのキー
_Example_
\code
Arc4 enc;
byte key[] = { initialize with key to use for encryption };
wc_Arc4SetKey(&enc, key, sizeof(key));
\endcode
\sa wc_Arc4Process
*/
int wc_Arc4SetKey(Arc4* arc4, const byte* key, word32 length);