The Red Matrix
 All Classes Namespaces Files Functions Variables Pages
crypto.php File Reference

Functions

 rsa_sign ($data, $key, $alg= 'sha256')
 
 rsa_verify ($data, $sig, $key, $alg= 'sha256')
 
 pkcs5_pad ($text, $blocksize)
 
 pkcs5_unpad ($text)
 
 AES256CBC_encrypt ($data, $key, $iv)
 
 AES256CBC_decrypt ($data, $key, $iv)
 
 aes_encapsulate ($data, $pubkey)
 
 aes_unencapsulate ($data, $prvkey)
 
 new_keypair ($bits)
 

Function Documentation

AES256CBC_decrypt (   $data,
  $key,
  $iv 
)

Referenced by aes_unencapsulate().

AES256CBC_encrypt (   $data,
  $key,
  $iv 
)

Referenced by aes_encapsulate().

new_keypair (   $bits)

Referenced by create_identity(), and hostxrd_init().

pkcs5_pad (   $text,
  $blocksize 
)

Referenced by AES256CBC_encrypt().

pkcs5_unpad (   $text)

Referenced by AES256CBC_decrypt().

rsa_sign (   $data,
  $key,
  $alg = 'sha256' 
)
rsa_verify (   $data,
  $sig,
  $key,
  $alg = 'sha256' 
)