openssl::base64

Function encode_block

source
pub fn encode_block(src: &[u8]) -> String
Expand description

Encodes a slice of bytes to a base64 string.

ยงPanics

Panics if the input length or computed output length overflow a signed C integer.

This corresponds to EVP_EncodeBlock.