Polly 20.0.0git
Functions
rtest.c File Reference
#include <limits.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include "rsamath.h"

Go to the source code of this file.

Functions

void random_fill (unsigned char *buf, int len)
 
void print_buf (unsigned char *buf, int len, int brk, FILE *ofp)
 
int main (int argc, char *argv[])
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 38 of file rtest.c.

References MP_OK, print_buf(), random_fill(), res, rsa_pkcs1v15_decode(), and rsa_pkcs1v15_encode().

◆ print_buf()

void print_buf ( unsigned char *  buf,
int  len,
int  brk,
FILE *  ofp 
)

Definition at line 108 of file rtest.c.

Referenced by main().

◆ random_fill()

void random_fill ( unsigned char *  buf,
int  len 
)

Definition at line 96 of file rtest.c.

Referenced by main().