#include "asn1.h"
#include <bitpunch/debugio.h>
#include <libtasn1.h>
#include <stdlib.h>
Go to the source code of this file.
|  | 
| int | BPU_asn1EncodePriKey (char **buffer, int *size, const BPU_T_Mecs_Ctx *ctx) | 
|  | BPU_asn1EncodePriKey dsadsad.  More... 
 | 
|  | 
| int | BPU_asn1DecodePriKey (BPU_T_Mecs_Ctx **ctx, const char *buffer, const int size) | 
|  | 
| int | BPU_asn1EncodePubKey (char **buffer, int *size, const BPU_T_Mecs_Ctx *ctx) | 
|  | 
| int | BPU_asn1DecodePubKey (BPU_T_Mecs_Ctx **ctx, const char *buffer, const int size) | 
|  | 
| int | BPU_asn1ReadValue (char **buffer, int *len, const int max_len, const char *name, const asn1_node node) | 
|  | 
| BPU_T_EN_Mecs_Types | BPU_asn1GetMecsTypeFromOid (asn1_node node) | 
|  | 
| int | BPU_asn1MallocBuffer (char **buffer, int *len, const int max_len, const asn1_node node, const char *name) | 
|  | 
| int | BPU_asn1LoadFileToBuffer (char **buffer, long *size, const char *file_name) | 
|  | 
| int | BPU_asn1LoadKeyPair (BPU_T_Mecs_Ctx **ctx, const char *pri_key_file, const char *pub_key_file) | 
|  | 
| int | BPU_asn1LoadPriKey (BPU_T_Mecs_Ctx **ctx, const char *pri_key_file) | 
|  | 
| int | BPU_asn1LoadPubKey (BPU_T_Mecs_Ctx **ctx, const char *pub_key_file) | 
|  | 
| int | BPU_asn1SaveKeyPair (const BPU_T_Mecs_Ctx *ctx, const char *pri_key_file, const char *pub_key_file) | 
|  | 
| int | BPU_asn1SavePriKey (const BPU_T_Mecs_Ctx *ctx, const char *pri_key_file) | 
|  | 
| int | BPU_asn1SavePubKey (const BPU_T_Mecs_Ctx *ctx, const char *pub_key_file) | 
|  | 
| int | BPU_asn1WriteBufferToFile (const char *buffer, const long size, const char *file_name) | 
|  | 
      
        
          | int BPU_asn1DecodePriKey | ( | BPU_T_Mecs_Ctx ** | ctx, | 
        
          |  |  | const char * | buffer, | 
        
          |  |  | const int | size | 
        
          |  | ) |  |  | 
      
 
 
      
        
          | int BPU_asn1DecodePubKey | ( | BPU_T_Mecs_Ctx ** | ctx, | 
        
          |  |  | const char * | buffer, | 
        
          |  |  | const int | size | 
        
          |  | ) |  |  | 
      
 
 
      
        
          | int BPU_asn1EncodePriKey | ( | char ** | buffer, | 
        
          |  |  | int * | size, | 
        
          |  |  | const BPU_T_Mecs_Ctx * | ctx | 
        
          |  | ) |  |  | 
      
 
BPU_asn1EncodePriKey dsadsad. 
- Parameters
- 
  
  
- Returns
- 0sasa 
Definition at line 26 of file asn1.c.
 
 
      
        
          | int BPU_asn1EncodePubKey | ( | char ** | buffer, | 
        
          |  |  | int * | size, | 
        
          |  |  | const BPU_T_Mecs_Ctx * | ctx | 
        
          |  | ) |  |  | 
      
 
 
      
        
          | int BPU_asn1LoadFileToBuffer | ( | char ** | buffer, | 
        
          |  |  | long * | size, | 
        
          |  |  | const char * | file_name | 
        
          |  | ) |  |  | 
      
 
 
      
        
          | int BPU_asn1LoadKeyPair | ( | BPU_T_Mecs_Ctx ** | ctx, | 
        
          |  |  | const char * | pri_key_file, | 
        
          |  |  | const char * | pub_key_file | 
        
          |  | ) |  |  | 
      
 
 
      
        
          | int BPU_asn1LoadPriKey | ( | BPU_T_Mecs_Ctx ** | ctx, | 
        
          |  |  | const char * | pri_key_file | 
        
          |  | ) |  |  | 
      
 
 
      
        
          | int BPU_asn1LoadPubKey | ( | BPU_T_Mecs_Ctx ** | ctx, | 
        
          |  |  | const char * | pub_key_file | 
        
          |  | ) |  |  | 
      
 
 
      
        
          | int BPU_asn1MallocBuffer | ( | char ** | buffer, | 
        
          |  |  | int * | len, | 
        
          |  |  | const int | max_len, | 
        
          |  |  | const asn1_node | node, | 
        
          |  |  | const char * | name | 
        
          |  | ) |  |  | 
      
 
 
      
        
          | int BPU_asn1ReadValue | ( | char ** | buffer, | 
        
          |  |  | int * | len, | 
        
          |  |  | const int | max_len, | 
        
          |  |  | const char * | name, | 
        
          |  |  | const asn1_node | node | 
        
          |  | ) |  |  | 
      
 
 
      
        
          | int BPU_asn1SaveKeyPair | ( | const BPU_T_Mecs_Ctx * | ctx, | 
        
          |  |  | const char * | pri_key_file, | 
        
          |  |  | const char * | pub_key_file | 
        
          |  | ) |  |  | 
      
 
 
      
        
          | int BPU_asn1SavePriKey | ( | const BPU_T_Mecs_Ctx * | ctx, | 
        
          |  |  | const char * | pri_key_file | 
        
          |  | ) |  |  | 
      
 
 
      
        
          | int BPU_asn1SavePubKey | ( | const BPU_T_Mecs_Ctx * | ctx, | 
        
          |  |  | const char * | pub_key_file | 
        
          |  | ) |  |  | 
      
 
 
      
        
          | int BPU_asn1WriteBufferToFile | ( | const char * | buffer, | 
        
          |  |  | const long | size, | 
        
          |  |  | const char * | file_name | 
        
          |  | ) |  |  |