Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
F
Front-End
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
abdullh.alsoleman
Front-End
Commits
0e92d900
Commit
0e92d900
authored
Feb 25, 2016
by
Matt Perry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use pointycastle as crypto library. cipher is deprecated.
parent
135a38d6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
8 deletions
+6
-8
signing.dart
packages/flx/lib/signing.dart
+3
-5
pubspec.yaml
packages/flx/pubspec.yaml
+2
-2
signing_test.dart
packages/flx/test/signing_test.dart
+1
-1
No files found.
packages/flx/lib/signing.dart
View file @
0e92d900
...
...
@@ -9,11 +9,10 @@ import 'dart:typed_data';
import
'package:asn1lib/asn1lib.dart'
;
import
'package:bignum/bignum.dart'
;
import
'package:cipher/cipher.dart'
;
import
'package:cipher/impl/client.dart'
;
import
'package:pointycastle/pointycastle.dart'
;
import
'package:crypto/crypto.dart'
;
export
'package:
cipher/cipher
.dart'
show
AsymmetricKeyPair
;
export
'package:
pointycastle/pointycastle
.dart'
show
AsymmetricKeyPair
;
// The ECDSA algorithm parameters we're using. These match the parameters used
// by the Flutter updater package.
...
...
@@ -29,7 +28,7 @@ class CipherParameters {
// Seeds our secure random number generator using data from /dev/urandom.
// Disclaimer: I don't really understand why we need 2 parameters for
//
cipher
's API.
//
pointycastle
's API.
Future
seedRandom
()
async
{
try
{
RandomAccessFile
file
=
await
new
File
(
"/dev/urandom"
).
open
();
...
...
@@ -53,7 +52,6 @@ class CipherParameters {
static
CipherParameters
get
()
=>
_params
;
static
CipherParameters
_init
()
{
initCipher
();
return
new
CipherParameters
();
}
}
...
...
packages/flx/pubspec.yaml
View file @
0e92d900
...
...
@@ -4,9 +4,9 @@ author: Flutter Authors <flutter-dev@googlegroups.com>
description
:
Library for dealing with Flutter bundle (.flx) files
homepage
:
https://github.com/flutter/flutter/tree/master/packages/flx
dependencies
:
bignum
:
^0.
0.7
bignum
:
^0.
1.0
asn1lib
:
^0.4.1
cipher
:
^0.7.1
pointycastle
:
0.10.0
crypto
:
^0.9.1
environment
:
...
...
packages/flx/test/signing_test.dart
View file @
0e92d900
...
...
@@ -3,7 +3,7 @@ import 'dart:convert' hide BASE64;
import
'dart:typed_data'
;
import
'package:bignum/bignum.dart'
;
import
'package:
cipher/cipher
.dart'
hide
CipherParameters
;
import
'package:
pointycastle/pointycastle
.dart'
hide
CipherParameters
;
import
'package:crypto/crypto.dart'
;
import
'package:flx/signing.dart'
;
import
'package:test/test.dart'
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment