#define ASCRYPTSTM_EOF
(
-
1
)
#define ASCryptStmModeEOF
0x0004
#define ASCryptStmModeRead
0x0001
#define ASCryptStmModeWrite
0x0002
typedef
struct
_t_ASCryptStmRec
*
ASCryptStm
;
ASInt32
ASCryptStmFCloseProc(
ASCryptStm
stm
);
stm | The security stream to be closed.
|
0
when successful, a non-zero error code otherwise. ASInt32
ASCryptStmFFlushProc(
ASCryptStm
stm
);
stm | The security stream to be flushed.
|
0
when successful, a non-zero error code otherwise. ASInt32
ASCryptStmFPutEOFProc(
ASCryptStm
stm
);
stm | The security stream to receive the EOF.
|
0
when successful, a non-zero error code otherwise. ASInt32
ASCryptStmFResetProc(
ASCryptStm
stm
);
stm | The security stream to be reset.
|
0
when successful, a non-zero error code otherwise. getc
when the buffer is empty. It is called only during decryption (when reading from the stream, not when writing). ASInt32
ASCryptStmFilBufProc(
ASCryptStm
pistm
);
pistm | The security stream to fill.
|
0
when successful, a non-zero error code otherwise. putc
when the buffer is full. It is called only during encryption (when writing to the stream, not when reading). ASInt32
ASCryptStmFlsBufProc(
ASInt32
ch
,
ASCryptStm
stm
);
ch | The character being written to the full stream.
|
stm | The security stream that is full.
|
0
when successful, a non-zero error code otherwise. get
operation. It is called only during decryption (when reading from the stream, not when writing). ASInt32
ASCryptStmUnGetcProc(
ASInt32
ch
,
ASCryptStm
stm
);
ch | The character being written to the stream.
|
stm | The security stream to which the character is written.
|
0
when successful, a non-zero error code otherwise.
| |
Called by
getc when the buffer is empty. | |
Called by
putc when the buffer is full. | |
Backs up an input stream.
| |
Flushes a dirty buffer if necessary.
| |
Closes a stream.
| |
Discards any buffered data.
| |
Puts an EOF marker.
| |
|
| |||||||||||
The number of characters remaining in the buffer.
| |||||||||||
char * currentPointer ; | The next character to get or put.
| ||||||||||
char * basePointer ; | The base of the buffer, if any.
| ||||||||||
Flag to indicate mode:
| |||||||||||
Handlers for security stream access.
| |||||||||||
The base ASStm object.
| |||||||||||
The number of bytes requested for decryption.
| |||||||||||
void * clientData ; | A pointer to arbitrary user-defined data.
| ||||||||||
|