OpenCore  1.0.4
OpenCore Bootloader
Loading...
Searching...
No Matches
RsaTool.c File Reference
#include <limits.h>
#include <stdint.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "openssl_compat.h"

Go to the source code of this file.

Typedefs

typedef void(* t_data_printer) (void *context, void *data, size_t size)
 

Enumerations

enum  {
  INVALID_MODE , CERT_MODE , PEM_MODE , RAW_MODE ,
  SIGN_MODE
}
 

Functions

uint8_tread_file (FILE *fp, unsigned int *size)
 
int sign_file (FILE *fp, const char *sigfile, const char *pubkfile)
 
int main (int argc, char *argv[])
 

Typedef Documentation

◆ t_data_printer

typedef void(* t_data_printer) (void *context, void *data, size_t size)

Definition at line 50 of file RsaTool.c.

Enumeration Type Documentation

◆ anonymous enum

anonymous enum
Enumerator
INVALID_MODE 
CERT_MODE 
PEM_MODE 
RAW_MODE 
SIGN_MODE 

Definition at line 213 of file RsaTool.c.

Function Documentation

◆ main()

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

Definition at line 220 of file RsaTool.c.

◆ read_file()

uint8_t * read_file ( FILE * fp,
unsigned int * size )

Definition at line 154 of file RsaTool.c.

◆ sign_file()

int sign_file ( FILE * fp,
const char * sigfile,
const char * pubkfile )

Definition at line 166 of file RsaTool.c.