GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
AES(3) FreeBSD Library Functions Manual AES(3)

setupAESstate, aesCBCencrypt, aesCBCdecrypt - advanced encryption standard (rijndael)

#include <u.h>
#include <libc.h>
#include <mp.h>
#include <libsec.h>

void setupAESstate(AESstate *s, uchar key[], int keybytes, uchar *ivec)

void aesCBCencrypt(uchar*, int, AESstate*)

void aesCBCdecrypt(uchar*, int, AESstate*)

DES is being replaced by Rijndael, also known as AES, as the preferred block ciper. setupAESstate, aesCBCencrypt, and aesCBCdecrypt implement cipher block chaining encryption. Keybytes should be 16, 24, or 32. The initialization vector ivec of AESbsize bytes should random enough to be unlikely to be reused but does not need to be cryptographically strongly unpredictable.

/src/libsec


Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.