Crate revolt_files

Crate revolt_files 

Source

Constants§

AUTHENTICATION_TAG_SIZE_BYTES
Size of the authentication tag in the buffer

Functions§

create_cipher
Create an AES-256-GCM cipher
create_client
Create an S3 client
create_thumbnail
Create thumbnail from given image
decode_image
Decode image from reader
delete_from_s3
Delete a file from S3 by path
fetch_from_s3
Fetch a file from S3 (and decrypt it)
image_size
Determine size of image at temp file
image_size_vec
Determine size of image with buffer
is_valid_image
Check whether given reader has a valid image
upload_to_s3
Encrypt and upload a file to S3 (returning its nonce/IV)
video_size
Determine size of video at temp file