SASC
DVBSoftCAM

crypto-bn.h File Reference

#include <openssl/bn.h>

Go to the source code of this file.

Classes

class  cBN
class  cBNctx

Functions

void RotateBytes (unsigned char *in, int n)
void RotateBytes (unsigned char *out, const unsigned char *in, int n)

Function Documentation

void RotateBytes ( unsigned char *  in,
int  n 
)

Definition at line 38 of file crypto.c.

Referenced by cN2Prov0101::Algo(), cNagra1::CreatePQ(), cNagraDES::Crypt(), cNagraDES::Decrypt(), cNagra2::DecryptECM(), cNagra2::DecryptEMM(), cNagra1::DecryptEMM(), cCryptoworks::DecryptRSA(), cBN::GetLE(), cN2Prov::MECM(), cSystemNagra::ProcessECM(), and cBN::PutLE().

{
  if(n>1) {
    unsigned char *e=in+n-1;
    do {
      unsigned char temp=*in;
      *in++=*e;
      *e-- =temp;
      } while(in<e);
    }
}
void RotateBytes ( unsigned char *  out,
const unsigned char *  in,
int  n 
)

Definition at line 30 of file crypto.c.

{
  if(n>0) {
    out+=n;
    do { *(--out)=*(in++); } while(--n);
    }
}
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines