Skip to content

Commit

Permalink
updated deps
Browse files Browse the repository at this point in the history
  • Loading branch information
jerson committed Mar 6, 2022
1 parent 780ce00 commit 9549ff9
Show file tree
Hide file tree
Showing 37 changed files with 58 additions and 58 deletions.
Binary file modified android/src/main/jniLibs/arm64-v8a/librsa_bridge.so
Binary file not shown.
Binary file modified android/src/main/jniLibs/armeabi-v7a/librsa_bridge.so
Binary file not shown.
Binary file modified android/src/main/jniLibs/x86/librsa_bridge.so
Binary file not shown.
Binary file modified android/src/main/jniLibs/x86_64/librsa_bridge.so
Binary file not shown.
2 changes: 1 addition & 1 deletion example/ios/FastRsaExample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@
);
inputPaths = (
"${PODS_ROOT}/Target Support Files/Pods-FastRsaExample/Pods-FastRsaExample-frameworks.sh",
"${PODS_XCFRAMEWORKS_BUILD_DIR}/OpenSSL/OpenSSL.framework/OpenSSL",
"${PODS_XCFRAMEWORKS_BUILD_DIR}/OpenSSL-Universal/OpenSSL.framework/OpenSSL",
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
Expand Down
6 changes: 3 additions & 3 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ PODS:
- React-cxxreact (= 0.63.4)
- React-jsi (= 0.63.4)
- React-jsinspector (0.63.4)
- react-native-fast-rsa (2.0.0-rc1):
- react-native-fast-rsa (2.2.0):
- React-Core
- React-RCTActionSheet (0.63.4):
- React-Core/RCTActionSheetHeaders (= 0.63.4)
Expand Down Expand Up @@ -466,7 +466,7 @@ SPEC CHECKSUMS:
React-jsi: a0418934cf48f25b485631deb27c64dc40fb4c31
React-jsiexecutor: 93bd528844ad21dc07aab1c67cb10abae6df6949
React-jsinspector: 58aef7155bc9a9683f5b60b35eccea8722a4f53a
react-native-fast-rsa: ad7a00a5fd5a249035a1e879e32503f9883e3c97
react-native-fast-rsa: 575b5a50c5b9191c12a4519660ab4974dc39be91
React-RCTActionSheet: 89a0ca9f4a06c1f93c26067af074ccdce0f40336
React-RCTAnimation: 1bde3ecc0c104c55df246eda516e0deb03c4e49b
React-RCTBlob: a97d378b527740cc667e03ebfa183a75231ab0f0
Expand All @@ -482,4 +482,4 @@ SPEC CHECKSUMS:

PODFILE CHECKSUM: f4bde262957a68d7cd9eea91821a62cd12944561

COCOAPODS: 1.10.1
COCOAPODS: 1.11.2
Binary file modified ios/librsa_bridge.a
Binary file not shown.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-fast-rsa",
"version": "2.2.0",
"version": "2.2.1",
"description": "library for use RSA",
"main": "lib/commonjs/index",
"module": "lib/module/index",
Expand Down Expand Up @@ -153,6 +153,6 @@
]
},
"dependencies": {
"flatbuffers": "^2.0.3"
"flatbuffers": "^2.0.6"
}
}
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/p-e-m-cipher';
export { PKCS12KeyPair } from './model/p-k-c-s12-key-pair';
export { PEMCipher } from './model/pemcipher';
export { PKCS12KeyPair } from './model/pkcs12key-pair';
export { PrivateKeyInfo } from './model/private-key-info';
export { PublicKeyInfo } from './model/public-key-info';
export { SaltLength } from './model/salt-length';
24 changes: 12 additions & 12 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,23 @@ 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-j-w-t-request';
import { ConvertJWTRequest } from './model/convert-jwtrequest';
import { ConvertKeyPairRequest } from './model/convert-key-pair-request';
import { ConvertPKCS12Request } from './model/convert-p-k-c-s12-request';
import { ConvertPKCS12Request } from './model/convert-pkcs12request';
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-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 { 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 { HashRequest } from './model/hash-request';
import { Base64Request } from './model/base64-request';
import { PKCS12KeyPairResponse } from './model/p-k-c-s12-key-pair-response';
import { Base64Request } from './model/base64request';
import { PKCS12KeyPairResponse } from './model/pkcs12key-pair-response';

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/p-e-m-cipher';
import { PEMCipher } from '../model/pemcipher';


export class EncryptPrivateKeyRequest {
Expand Down
2 changes: 1 addition & 1 deletion src/model/generate-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ nBits():number {
return offset ? this.bb!.readInt32(this.bb_pos + offset) : 0;
}

mutate_nBits(value:number):boolean {
mutate_n_bits(value:number):boolean {
const offset = this.bb!.__offset(this.bb_pos, 4);

if (offset === 0) {
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/p-k-c-s12-key-pair';
import { PKCS12KeyPair } from '../model/pkcs12key-pair';


export class PKCS12KeyPairResponse {
Expand Down
File renamed without changes.
22 changes: 11 additions & 11 deletions src/model/private-key-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ static getSizePrefixedRootAsPrivateKeyInfo(bb:flatbuffers.ByteBuffer, obj?:Priva
return (obj || new PrivateKeyInfo()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
}

bitLen():flatbuffers.Long {
bitLen():bigint {
const offset = this.bb!.__offset(this.bb_pos, 4);
return offset ? this.bb!.readInt64(this.bb_pos + offset) : this.bb!.createLong(0, 0);
return offset ? this.bb!.readInt64(this.bb_pos + offset) : BigInt('0');
}

mutate_bitLen(value:flatbuffers.Long):boolean {
mutate_bit_len(value:bigint):boolean {
const offset = this.bb!.__offset(this.bb_pos, 4);

if (offset === 0) {
Expand All @@ -36,12 +36,12 @@ mutate_bitLen(value:flatbuffers.Long):boolean {
return true;
}

size():flatbuffers.Long {
size():bigint {
const offset = this.bb!.__offset(this.bb_pos, 6);
return offset ? this.bb!.readInt64(this.bb_pos + offset) : this.bb!.createLong(0, 0);
return offset ? this.bb!.readInt64(this.bb_pos + offset) : BigInt('0');
}

mutate_size(value:flatbuffers.Long):boolean {
mutate_size(value:bigint):boolean {
const offset = this.bb!.__offset(this.bb_pos, 6);

if (offset === 0) {
Expand All @@ -63,12 +63,12 @@ static startPrivateKeyInfo(builder:flatbuffers.Builder) {
builder.startObject(3);
}

static addBitLen(builder:flatbuffers.Builder, bitLen:flatbuffers.Long) {
builder.addFieldInt64(0, bitLen, builder.createLong(0, 0));
static addBitLen(builder:flatbuffers.Builder, bitLen:bigint) {
builder.addFieldInt64(0, bitLen, BigInt('0'));
}

static addSize(builder:flatbuffers.Builder, size:flatbuffers.Long) {
builder.addFieldInt64(1, size, builder.createLong(0, 0));
static addSize(builder:flatbuffers.Builder, size:bigint) {
builder.addFieldInt64(1, size, BigInt('0'));
}

static addError(builder:flatbuffers.Builder, errorOffset:flatbuffers.Offset) {
Expand All @@ -80,7 +80,7 @@ static endPrivateKeyInfo(builder:flatbuffers.Builder):flatbuffers.Offset {
return offset;
}

static createPrivateKeyInfo(builder:flatbuffers.Builder, bitLen:flatbuffers.Long, size:flatbuffers.Long, errorOffset:flatbuffers.Offset):flatbuffers.Offset {
static createPrivateKeyInfo(builder:flatbuffers.Builder, bitLen:bigint, size:bigint, errorOffset:flatbuffers.Offset):flatbuffers.Offset {
PrivateKeyInfo.startPrivateKeyInfo(builder);
PrivateKeyInfo.addBitLen(builder, bitLen);
PrivateKeyInfo.addSize(builder, size);
Expand Down
32 changes: 16 additions & 16 deletions src/model/public-key-info.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ static getSizePrefixedRootAsPublicKeyInfo(bb:flatbuffers.ByteBuffer, obj?:Public
return (obj || new PublicKeyInfo()).__init(bb.readInt32(bb.position()) + bb.position(), bb);
}

bitLen():flatbuffers.Long {
bitLen():bigint {
const offset = this.bb!.__offset(this.bb_pos, 4);
return offset ? this.bb!.readInt64(this.bb_pos + offset) : this.bb!.createLong(0, 0);
return offset ? this.bb!.readInt64(this.bb_pos + offset) : BigInt('0');
}

mutate_bitLen(value:flatbuffers.Long):boolean {
mutate_bit_len(value:bigint):boolean {
const offset = this.bb!.__offset(this.bb_pos, 4);

if (offset === 0) {
Expand All @@ -36,12 +36,12 @@ mutate_bitLen(value:flatbuffers.Long):boolean {
return true;
}

size():flatbuffers.Long {
size():bigint {
const offset = this.bb!.__offset(this.bb_pos, 6);
return offset ? this.bb!.readInt64(this.bb_pos + offset) : this.bb!.createLong(0, 0);
return offset ? this.bb!.readInt64(this.bb_pos + offset) : BigInt('0');
}

mutate_size(value:flatbuffers.Long):boolean {
mutate_size(value:bigint):boolean {
const offset = this.bb!.__offset(this.bb_pos, 6);

if (offset === 0) {
Expand All @@ -52,12 +52,12 @@ mutate_size(value:flatbuffers.Long):boolean {
return true;
}

e():flatbuffers.Long {
e():bigint {
const offset = this.bb!.__offset(this.bb_pos, 8);
return offset ? this.bb!.readInt64(this.bb_pos + offset) : this.bb!.createLong(0, 0);
return offset ? this.bb!.readInt64(this.bb_pos + offset) : BigInt('0');
}

mutate_e(value:flatbuffers.Long):boolean {
mutate_e(value:bigint):boolean {
const offset = this.bb!.__offset(this.bb_pos, 8);

if (offset === 0) {
Expand All @@ -72,24 +72,24 @@ static startPublicKeyInfo(builder:flatbuffers.Builder) {
builder.startObject(3);
}

static addBitLen(builder:flatbuffers.Builder, bitLen:flatbuffers.Long) {
builder.addFieldInt64(0, bitLen, builder.createLong(0, 0));
static addBitLen(builder:flatbuffers.Builder, bitLen:bigint) {
builder.addFieldInt64(0, bitLen, BigInt('0'));
}

static addSize(builder:flatbuffers.Builder, size:flatbuffers.Long) {
builder.addFieldInt64(1, size, builder.createLong(0, 0));
static addSize(builder:flatbuffers.Builder, size:bigint) {
builder.addFieldInt64(1, size, BigInt('0'));
}

static addE(builder:flatbuffers.Builder, e:flatbuffers.Long) {
builder.addFieldInt64(2, e, builder.createLong(0, 0));
static addE(builder:flatbuffers.Builder, e:bigint) {
builder.addFieldInt64(2, e, BigInt('0'));
}

static endPublicKeyInfo(builder:flatbuffers.Builder):flatbuffers.Offset {
const offset = builder.endObject();
return offset;
}

static createPublicKeyInfo(builder:flatbuffers.Builder, bitLen:flatbuffers.Long, size:flatbuffers.Long, e:flatbuffers.Long):flatbuffers.Offset {
static createPublicKeyInfo(builder:flatbuffers.Builder, bitLen:bigint, size:bigint, e:bigint):flatbuffers.Offset {
PublicKeyInfo.startPublicKeyInfo(builder);
PublicKeyInfo.addBitLen(builder, bitLen);
PublicKeyInfo.addSize(builder, size);
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ saltLength():SaltLength {
return offset ? this.bb!.readInt32(this.bb_pos + offset) : SaltLength.AUTO;
}

mutate_saltLength(value:SaltLength):boolean {
mutate_salt_length(value:SaltLength):boolean {
const offset = this.bb!.__offset(this.bb_pos, 8);

if (offset === 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ saltLength():SaltLength {
return offset ? this.bb!.readInt32(this.bb_pos + offset) : SaltLength.AUTO;
}

mutate_saltLength(value:SaltLength):boolean {
mutate_salt_length(value:SaltLength):boolean {
const offset = this.bb!.__offset(this.bb_pos, 8);

if (offset === 0) {
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ saltLength():SaltLength {
return offset ? this.bb!.readInt32(this.bb_pos + offset) : SaltLength.AUTO;
}

mutate_saltLength(value:SaltLength):boolean {
mutate_salt_length(value:SaltLength):boolean {
const offset = this.bb!.__offset(this.bb_pos, 10);

if (offset === 0) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ saltLength():SaltLength {
return offset ? this.bb!.readInt32(this.bb_pos + offset) : SaltLength.AUTO;
}

mutate_saltLength(value:SaltLength):boolean {
mutate_salt_length(value:SaltLength):boolean {
const offset = this.bb!.__offset(this.bb_pos, 10);

if (offset === 0) {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -4425,10 +4425,10 @@ flat@^5.0.2:
resolved "https://registry.yarnpkg.com/flat/-/flat-5.0.2.tgz#8ca6fe332069ffa9d324c327198c598259ceb241"
integrity sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==

flatbuffers@^2.0.3:
version "2.0.3"
resolved "https://registry.yarnpkg.com/flatbuffers/-/flatbuffers-2.0.3.tgz#3bfb2c00c0d5acc1a5d219087e0ee25c756f410a"
integrity sha512-lTN0GS4FjwPY6h8BDDuq8f2ZORIyRgI4pHXzIt7GBsTgyCt2z9OAPiWNaeEaNcjrmuLLzFagEDwpYiqGv5BEWg==
flatbuffers@^2.0.6:
version "2.0.6"
resolved "https://registry.yarnpkg.com/flatbuffers/-/flatbuffers-2.0.6.tgz#3aa3a39d282af9a660b4a0cdd1bb7ad91874abfc"
integrity sha512-QTTZTXTbVfuOVQu2X6eLOw4vefUxnFJZxAKeN3rEPhjEzBtIbehimJLfVGHPM8iX0Na+9i76SBEg0skf0c0sCA==

flatted@^3.1.0:
version "3.2.2"
Expand Down

0 comments on commit 9549ff9

Please sign in to comment.