Skip to content

Commit

Permalink
updated binaries to v1.5.5 to support mixed go libraries
Browse files Browse the repository at this point in the history
  • Loading branch information
jerson committed Sep 27, 2022
1 parent 7d23cbb commit 81ad4f2
Show file tree
Hide file tree
Showing 35 changed files with 50 additions and 26 deletions.
10 changes: 8 additions & 2 deletions android/src/main/jniLibs/arm64-v8a/librsa_bridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#line 1 "cgo-builtin-export-prolog"

#include <stddef.h> /* for ptrdiff_t below */
#include <stddef.h>

#ifndef GO_CGO_EXPORT_PROLOGUE_H
#define GO_CGO_EXPORT_PROLOGUE_H
Expand Down Expand Up @@ -46,11 +46,17 @@ typedef long long GoInt64;
typedef unsigned long long GoUint64;
typedef GoInt64 GoInt;
typedef GoUint64 GoUint;
typedef __SIZE_TYPE__ GoUintptr;
typedef size_t GoUintptr;
typedef float GoFloat32;
typedef double GoFloat64;
#ifdef _MSC_VER
#include <complex.h>
typedef _Fcomplex GoComplex64;
typedef _Dcomplex GoComplex128;
#else
typedef float _Complex GoComplex64;
typedef double _Complex GoComplex128;
#endif

/*
static assertion to make sure the file is being used on architecture
Expand Down
Binary file modified android/src/main/jniLibs/arm64-v8a/librsa_bridge.so
Binary file not shown.
10 changes: 8 additions & 2 deletions android/src/main/jniLibs/armeabi-v7a/librsa_bridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#line 1 "cgo-builtin-export-prolog"

#include <stddef.h> /* for ptrdiff_t below */
#include <stddef.h>

#ifndef GO_CGO_EXPORT_PROLOGUE_H
#define GO_CGO_EXPORT_PROLOGUE_H
Expand Down Expand Up @@ -46,11 +46,17 @@ typedef long long GoInt64;
typedef unsigned long long GoUint64;
typedef GoInt32 GoInt;
typedef GoUint32 GoUint;
typedef __SIZE_TYPE__ GoUintptr;
typedef size_t GoUintptr;
typedef float GoFloat32;
typedef double GoFloat64;
#ifdef _MSC_VER
#include <complex.h>
typedef _Fcomplex GoComplex64;
typedef _Dcomplex GoComplex128;
#else
typedef float _Complex GoComplex64;
typedef double _Complex GoComplex128;
#endif

/*
static assertion to make sure the file is being used on architecture
Expand Down
Binary file modified android/src/main/jniLibs/armeabi-v7a/librsa_bridge.so
Binary file not shown.
10 changes: 8 additions & 2 deletions android/src/main/jniLibs/x86/librsa_bridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#line 1 "cgo-builtin-export-prolog"

#include <stddef.h> /* for ptrdiff_t below */
#include <stddef.h>

#ifndef GO_CGO_EXPORT_PROLOGUE_H
#define GO_CGO_EXPORT_PROLOGUE_H
Expand Down Expand Up @@ -46,11 +46,17 @@ typedef long long GoInt64;
typedef unsigned long long GoUint64;
typedef GoInt32 GoInt;
typedef GoUint32 GoUint;
typedef __SIZE_TYPE__ GoUintptr;
typedef size_t GoUintptr;
typedef float GoFloat32;
typedef double GoFloat64;
#ifdef _MSC_VER
#include <complex.h>
typedef _Fcomplex GoComplex64;
typedef _Dcomplex GoComplex128;
#else
typedef float _Complex GoComplex64;
typedef double _Complex GoComplex128;
#endif

/*
static assertion to make sure the file is being used on architecture
Expand Down
Binary file modified android/src/main/jniLibs/x86/librsa_bridge.so
Binary file not shown.
10 changes: 8 additions & 2 deletions android/src/main/jniLibs/x86_64/librsa_bridge.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

#line 1 "cgo-builtin-export-prolog"

#include <stddef.h> /* for ptrdiff_t below */
#include <stddef.h>

#ifndef GO_CGO_EXPORT_PROLOGUE_H
#define GO_CGO_EXPORT_PROLOGUE_H
Expand Down Expand Up @@ -46,11 +46,17 @@ typedef long long GoInt64;
typedef unsigned long long GoUint64;
typedef GoInt64 GoInt;
typedef GoUint64 GoUint;
typedef __SIZE_TYPE__ GoUintptr;
typedef size_t GoUintptr;
typedef float GoFloat32;
typedef double GoFloat64;
#ifdef _MSC_VER
#include <complex.h>
typedef _Fcomplex GoComplex64;
typedef _Dcomplex GoComplex128;
#else
typedef float _Complex GoComplex64;
typedef double _Complex GoComplex128;
#endif

/*
static assertion to make sure the file is being used on architecture
Expand Down
Binary file modified android/src/main/jniLibs/x86_64/librsa_bridge.so
Binary file not shown.
Binary file modified ios/librsa_bridge.a
Binary file not shown.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-fast-rsa",
"version": "2.3.2",
"version": "2.3.3",
"description": "library for use RSA",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down
4 changes: 2 additions & 2 deletions src/bridge.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export { Hash } from './model/hash';
export { KeyPair } from './model/key-pair';
export { PEMCipher } from './model/pemcipher';
export { PKCS12KeyPair } from './model/pkcs12key-pair';
export { PEMCipher } from './model/p-e-m-cipher';
export { PKCS12KeyPair } from './model/p-k-c-s12-key-pair';
export { PrivateKeyInfo } from './model/private-key-info';
export { PublicKeyInfo } from './model/public-key-info';
export { SaltLength } from './model/salt-length';
26 changes: 13 additions & 13 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,24 @@ import { GenerateRequest } from './model/generate-request';
import { KeyPairResponse } from './model/key-pair-response';
import { StringResponse } from './model/string-response';
import { ConvertPrivateKeyRequest } from './model/convert-private-key-request';
import { ConvertJWTRequest } from './model/convert-jwtrequest';
import { ConvertJWTRequest } from './model/convert-j-w-t-request';
import { ConvertKeyPairRequest } from './model/convert-key-pair-request';
import { ConvertPKCS12Request } from './model/convert-pkcs12request';
import { ConvertPKCS12Request } from './model/convert-p-k-c-s12-request';
import { ConvertPublicKeyRequest } from './model/convert-public-key-request';
import { DecryptPrivateKeyRequest } from './model/decrypt-private-key-request';
import { EncryptPrivateKeyRequest } from './model/encrypt-private-key-request';
import { DecryptOAEPRequest } from './model/decrypt-oaeprequest';
import { DecryptPKCS1v15Request } from './model/decrypt-pkcs1v15request';
import { EncryptOAEPRequest } from './model/encrypt-oaeprequest';
import { EncryptPKCS1v15Request } from './model/encrypt-pkcs1v15request';
import { SignPSSRequest } from './model/sign-pssrequest';
import { SignPKCS1v15Request } from './model/sign-pkcs1v15request';
import { VerifyPSSRequest } from './model/verify-pssrequest';
import { VerifyPKCS1v15Request } from './model/verify-pkcs1v15request';
import { DecryptOAEPRequest } from './model/decrypt-o-a-e-p-request';
import { DecryptPKCS1v15Request } from './model/decrypt-p-k-c-s1v15-request';
import { EncryptOAEPRequest } from './model/encrypt-o-a-e-p-request';
import { EncryptPKCS1v15Request } from './model/encrypt-p-k-c-s1v15-request';
import { SignPSSRequest } from './model/sign-p-s-s-request';
import { SignPKCS1v15Request } from './model/sign-p-k-c-s1v15-request';
import { VerifyPSSRequest } from './model/verify-p-s-s-request';
import { VerifyPKCS1v15Request } from './model/verify-p-k-c-s1v15-request';
import { HashRequest } from './model/hash-request';
import { Base64Request } from './model/base64request';
import { PKCS12KeyPairResponse } from './model/pkcs12key-pair-response';
import './shim'
import { Base64Request } from './model/base64-request';
import { PKCS12KeyPairResponse } from './model/p-k-c-s12-key-pair-response';
import './shim';

const FastRSANativeModules = (NativeModules as NativeModulesDef).FastRSA;

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion src/model/encrypt-private-key-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import * as flatbuffers from 'flatbuffers';

import { PEMCipher } from '../model/pemcipher';
import { PEMCipher } from '../model/p-e-m-cipher';


export class EncryptPrivateKeyRequest {
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import * as flatbuffers from 'flatbuffers';

import { PKCS12KeyPair } from '../model/pkcs12key-pair';
import { PKCS12KeyPair } from '../model/p-k-c-s12-key-pair';


export class PKCS12KeyPairResponse {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 81ad4f2

Please sign in to comment.