The output is stored in the buffer out and the number of bytes output is stored in outl. Similarly a newline character will also be output.ĮVP_EncodeInit() initialises ctx for the start of a new encoding operation.ĮVP_EncodeUpdate() encode inl bytes of data found in the buffer pointed to by in. If the data length is not divisible by 3 then a full 4 bytes is still output for the final 1 or 2 bytes of input. The final block (which may be less than 48 bytes) will output 4 bytes for every 3 bytes of input. For each 48 byte input block encoded 64 bytes of base 64 data is output plus an additional newline character (i.e. 65 bytes in total). If the input data length is not a multiple of 3 then the output data will be padded at the end using the “=” character.Įncoding of binary data is performed in blocks of 48 input bytes (or less for the final block). For every 3 bytes of binary data provided 4 bytes of base 64 encoded data will be produced plus some occasional newlines (see below). Base 64 encoding converts binary data into a printable form that uses the characters A-Z, a-z, 0-9, “+” and “/” to represent the data. The EVP encode routines provide a high level interface to base 64 encoding and decoding. Int EVP_DecodeBlock(unsigned char *t, const unsigned char *f, int n) Int EVP_DecodeFinal(EVP_ENCODE_CTX *ctx, unsigned Int EVP_DecodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, Void EVP_DecodeInit(EVP_ENCODE_CTX *ctx) Int EVP_EncodeBlock(unsigned char *t, const unsigned char *f, int n) Void EVP_EncodeFinal(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl) Void EVP_EncodeUpdate(EVP_ENCODE_CTX *ctx, unsigned char *out, int *outl, Void EVP_EncodeInit(EVP_ENCODE_CTX *ctx) EVP_EncodeInit, EVP_EncodeUpdate, EVP_EncodeFinal, EVP_EncodeBlock, EVP_DecodeInit, EVP_DecodeUpdate, EVP_DecodeFinal, EVP_DecodeBlock - EVP base 64 encode/decode routines
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |