openSSL 暗号化ライブラリの次の関数のパラメーターを理解しようとしています。
void AES_ctr128_encrypt(const unsigned char *in, unsigned char *out,
size_t length, const AES_KEY *key,
unsigned char ivec[AES_BLOCK_SIZE],
unsigned char ecount_buf[AES_BLOCK_SIZE],
unsigned int *num);
ここで与えられた提案に取り組むことで、私は理解することができました:
*in - is the buffer in.
*out - is the buffer out.
length - is the the length of the *in buffer.
*key - is the private key.
ivec[0-7] - is the random IV
ivec[8-15] - is the counter thats incremented for every block that's encrypted.
ecount_buf
パラメータとパラメータについてはよくわかりませんnum
。
呼び出しが返された後にnum
設定されていることがわかります。length % AES_BLOCK_SIZE
ecount_buf
パラメータの目的へのポインタはありますか?