Skip to content

Upgrading cryptography 0.3 to 1

Unknown0.3.5 → 1.4.1

UnknownUpgrade verdict

None of the 12 releases in this range publish notes, so breaking changes can't be ruled out.

  • Some releases in this range publish no notes, so DepDelta can't rule out breaking changes.
  • DepDelta found no commit log for them either.
Unknown for releases without notes

Releases without notes may still need changes. Check their commits before upgrading.

Generated by DepDelta from published Dart source. Not mixed with prose notes.

  • removed: class SyncKeyStreamCipherState: abstract extends Converter<List<int>, Uint8List>
  • removed: ctor SyncKeyStreamCipherState({@required this.keyStreamIndex})
  • removed: field PublicKey.bytes: final List<int>
  • removed: field SyncKeyStreamCipherState.keyStreamIndex: int
  • removed: get Hmac.macLengthInBytes: int
  • removed: get SyncKeyStreamCipherState.isClosed: bool
  • removed: method Cipher.isSecretKeyLengthInBytesValid(int length): bool
  • removed: method CipherWithAppendedMac.isSecretKeyLengthInBytesValid(int length): bool
  • removed: method SyncKeyStreamCipherState.close(): void
  • removed: method SyncKeyStreamCipherState.convert(List<int> input): Uint8List
  • removed: method SyncKeyStreamCipherState.fillWithConverted({ @required List<int> output, int outputStart = …, @required List<int> input, int inputStart = …, int length, }): void
  • removed: method SyncKeyStreamCipherState.fillWithKeyStream(List<int> result, {int start = …, int length}): void
  • removed: static method SyncKeyStreamCipherState.checkNotClosed(SyncKeyStreamCipherState state): void
  • changed: class PublicKey → class PublicKey: abstract
  • changed: ctor PublicKey(this.bytes) → ctor PublicKey(List<int> bytes)
  • changed: method Cipher.decrypt( List<int> input, { @required SecretKey secretKey, @required Nonce nonce, List<int> aad, int keyStreamIndex = …, }): Future<List<int>> → method Cipher.decrypt( List<int> cipherText, { @required SecretKey secretKey, @required Nonce nonce, List<int> aad, int keyStreamIndex = …, }): Future<Uint8List>
  • changed: method Cipher.decryptSync( List<int> input, { @required SecretKey secretKey, @required Nonce nonce, List<int> aad, int keyStreamIndex = …, }): List<int> → method Cipher.decryptSync( List<int> cipherText, { @required SecretKey secretKey, @required Nonce nonce, List<int> aad, int keyStreamIndex = …, }): Uint8List
  • changed: method Cipher.decryptToBuffer( List<int> input, { @required List<int> buffer, int bufferStart = …, @required SecretKey secretKey, @required Nonce nonce, List<int> aad, int keyStreamIndex = …, }): Future<int> → method Cipher.decryptToBuffer( List<int> cipherText, { @required List<int> buffer, int bufferStart = …, @required SecretKey secretKey, @required Nonce nonce, List<int> aad, int keyStreamIndex = …, }): Future<int>
  • changed: method Cipher.encrypt( List<int> input, { @required SecretKey secretKey, @required Nonce nonce, List<int> aad, int keyStreamIndex = …, }): Future<List<int>> → method Cipher.encrypt( List<int> plainText, { @required SecretKey secretKey, @required Nonce nonce, List<int> aad, int keyStreamIndex = …, }): Future<Uint8List>
  • changed: method Cipher.encryptSync( List<int> input, { @required SecretKey secretKey, @required Nonce nonce, List<int> aad, int keyStreamIndex = …, }): List<int> → method Cipher.encryptSync( List<int> plainText, { @required SecretKey secretKey, @required Nonce nonce, List<int> aad, int keyStreamIndex = …, }): Uint8List
  • changed: method Cipher.encryptToBuffer( List<int> input, { @required List<int> buffer, int bufferStart = …, @required SecretKey secretKey, @required Nonce nonce, List<int> aad, int keyStreamIndex = …, }): Future<int> → method Cipher.encryptToBuffer( List<int> plainText, { @required List<int> buffer, int bufferStart = …, @required SecretKey secretKey, @required Nonce nonce, List<int> aad, int keyStreamIndex = …, }): Future<int>
  • changed: method CipherWithAppendedMac.decrypt( List<int> cipherText, { @required SecretKey secretKey, @required Nonce nonce, List<int> aad, int keyStreamIndex = …, }): Future<List<int>> → method CipherWithAppendedMac.decrypt( List<int> cipherText, { @required SecretKey secretKey, @required Nonce nonce, List<int> aad, int keyStreamIndex = …, }): Future<Uint8List>
  • changed: method CipherWithAppendedMac.decryptSync( List<int> cipherText, { @required SecretKey secretKey, @required Nonce nonce, List<int> aad, int keyStreamIndex = …, }): List<int> → method CipherWithAppendedMac.decryptSync( List<int> cipherText, { @required SecretKey secretKey, @required Nonce nonce, List<int> aad, int keyStreamIndex = …, }): Uint8List
  • changed: method CipherWithAppendedMac.encrypt( List<int> clearText, { @required SecretKey secretKey, @required Nonce nonce, List<int> aad, int keyStreamIndex = …, }): Future<List<int>> → method CipherWithAppendedMac.encrypt( List<int> plainText, { @required SecretKey secretKey, @required Nonce nonce, List<int> aad, int keyStreamIndex = …, }): Future<Uint8List>
  • changed: method CipherWithAppendedMac.encryptSync( List<int> clearText, { @required SecretKey secretKey, @required Nonce nonce, List<int> aad, int keyStreamIndex = …, }): List<int> → method CipherWithAppendedMac.encryptSync( List<int> plainText, { @required SecretKey secretKey, @required Nonce nonce, List<int> aad, int keyStreamIndex = …, }): Uint8List
  • changed: method MacAlgorithm.calculateMac(List<int> input, {@required SecretKey secretKey}): Future<Mac> → method MacAlgorithm.calculateMac( List<int> input, { @required SecretKey secretKey, }): Future<Mac>
  • changed: method MacAlgorithm.calculateMacSync(List<int> data, {@required SecretKey secretKey}): Mac → method MacAlgorithm.calculateMacSync( List<int> data, { @required SecretKey secretKey, }): Mac
  • added: class AesGcm extends AesCipher
  • added: class Chacha20Poly1305Aead extends CipherWithAppendedMac
  • added: class EcJwkPrivateKey extends JwkPrivateKey
  • added: class EcJwkPublicKey extends JwkPublicKey
  • added: class JwkPrivateKey: abstract extends PrivateKey
  • added: class JwkPublicKey: abstract extends PublicKey
  • added: class Pbkdf2
  • added: class RsaJwkPrivateKey extends JwkPrivateKey
  • added: class RsaJwkPublicKey extends JwkPublicKey
  • added: class RsaPss extends SignatureAlgorithm
  • added: class RsaSsaPkcs1v15 extends SignatureAlgorithm
  • added: ctor AesGcm()
  • added: ctor Chacha20Poly1305Aead({ @required this.name, @required Cipher cipher, })
  • added: ctor EcJwkPrivateKey({ @required this.crv, @required this.d, @required this.x, @required this.y, })
  • added: ctor EcJwkPublicKey({ @required this.crv, @required this.x, @required this.y, })
  • added: ctor JwkPrivateKey()
  • added: ctor JwkPublicKey()
  • added: ctor Pbkdf2({ @required this.macAlgorithm, @required this.iterations, @required this.bits, })
  • added: ctor PublicKey.constructor()
  • added: ctor RsaJwkPrivateKey({ @required this.n, @required this.e, @required this.d, @required this.p, @required this.q, @required this.dp, @required this.dq, @required this.qi, })
  • added: ctor RsaJwkPublicKey({ @required this.n, @required this.e, })
  • added: ctor RsaPss(this.hashAlgorithm, {this.nonceLength})
  • added: ctor RsaSsaPkcs1v15(this.hashAlgorithm)
  • added: field AesGcm.()
  • added: field Chacha20Poly1305Aead.name: final String
  • added: field EcJwkPrivateKey.crv: final String
  • added: field EcJwkPrivateKey.d: final List<int>
  • added: field EcJwkPrivateKey.x: final List<int>
  • added: field EcJwkPrivateKey.y: final List<int>
  • added: field EcJwkPublicKey.crv: final String
  • added: field EcJwkPublicKey.x: final List<int>
  • added: field EcJwkPublicKey.y: final List<int>
  • added: field Pbkdf2.bits: final int
  • added: field Pbkdf2.iterations: final int
  • added: field Pbkdf2.macAlgorithm: final MacAlgorithm
  • added: field RsaJwkPrivateKey.d: final List<int>
  • added: field RsaJwkPrivateKey.dp: final List<int>
  • added: field RsaJwkPrivateKey.dq: final List<int>
  • added: field RsaJwkPrivateKey.e: final List<int>
  • added: field RsaJwkPrivateKey.n: final List<int>
  • added: field RsaJwkPrivateKey.p: final List<int>
  • added: field RsaJwkPrivateKey.q: final List<int>
  • added: field RsaJwkPrivateKey.qi: final List<int>
  • added: field RsaJwkPublicKey.e: final List<int>
  • added: field RsaJwkPublicKey.n: final List<int>
  • added: field RsaPss.hashAlgorithm: final HashAlgorithm
  • added: field RsaPss.nonceLength: final int
  • added: field RsaSsaPkcs1v15.hashAlgorithm: final HashAlgorithm
  • added: get AesGcm.isAuthenticated: bool
  • added: get AesGcm.name: String
  • added: get AesGcm.nonceLength: int
  • added: get AesGcm.supportsAad: bool
  • added: get Chacha20Poly1305Aead.supportsAad: bool
  • added: get Cipher.nonceLengthMax: int
  • added: get Cipher.nonceLengthMin: int
  • added: get CipherWithAppendedMac.nonceLengthMax: int
  • added: get CipherWithAppendedMac.nonceLengthMin: int
  • added: get Hmac.macLength: int
  • added: get JwkPublicKey.bytes: List<int>
  • added: get MacAlgorithm.macLength: int
  • added: get PrivateKey.cachedValues: Map<Object, Object>
  • added: get PublicKey.bytes: List<int>
  • added: get PublicKey.cachedValues: Map<Object, Object>
  • added: get RsaPss.name: String
  • added: get RsaPss.publicKeyLength: int
  • added: get RsaSsaPkcs1v15.name: String
  • added: get RsaSsaPkcs1v15.publicKeyLength: int
  • added: get SecretKey.cachedValues: Map<Object, Object>
  • added: method AesGcm.decrypt( List<int> cipherText, { @required SecretKey secretKey, @required Nonce nonce, List<int> aad, int keyStreamIndex = …, }): Future<Uint8List>
  • added: method AesGcm.decryptSync( List<int> cipherText, { SecretKey secretKey, Nonce nonce, List<int> aad, int keyStreamIndex = …, }): Uint8List
  • added: method AesGcm.encrypt( List<int> cipherText, { @required SecretKey secretKey, @required Nonce nonce, List<int> aad, int keyStreamIndex = …, }): Future<Uint8List>
  • added: method AesGcm.encryptSync( List<int> plainText, { @required SecretKey secretKey, @required Nonce nonce, List<int> aad, int keyStreamIndex = …, }): Uint8List
  • added: method AesGcm.getDataInCipherText(List<int> cipherText): List<int>
  • added: method AesGcm.getMacInCipherText(List<int> cipherText): Mac
  • added: method AesGcm.newSecretKey({int length}): Future<SecretKey>
  • added: method Chacha20Poly1305Aead.calculateMac( List<int> cipherText, { @required SecretKey secretKey, @required Nonce nonce, @required List<int> aad, }): Future<Mac>
  • added: method Chacha20Poly1305Aead.calculateMacSync( List<int> cipherText, { @required SecretKey secretKey, @required Nonce nonce, @required List<int> aad, }): Mac
  • added: method Chacha20Poly1305Aead.decrypt( List<int> cipherText, { @required SecretKey secretKey, @required Nonce nonce, List<int> aad, int keyStreamIndex = …, }): Future<Uint8List>
  • added: method Chacha20Poly1305Aead.decryptSync( List<int> cipherText, { @required SecretKey secretKey, @required Nonce nonce, List<int> aad, int keyStreamIndex = …, }): Uint8List
  • added: method Chacha20Poly1305Aead.encrypt( List<int> plainText, { @required SecretKey secretKey, @required Nonce nonce, List<int> aad, int keyStreamIndex = …, }): Future<Uint8List>
  • added: method Chacha20Poly1305Aead.encryptSync( List<int> plainText, { @required SecretKey secretKey, @required Nonce nonce, List<int> aad, int keyStreamIndex = …, }): Uint8List
  • added: method CipherWithAppendedMac.calculateMac( List<int> cipherText, { @required SecretKey secretKey, @required Nonce nonce, @required List<int> aad, }): Future<Mac>
  • added: method EcJwkPrivateKey.toJson(): Map<String, Object>
  • added: method EcJwkPrivateKey.toPublicKey(): EcJwkPublicKey
  • added: method EcJwkPublicKey.toJson(): Map<String, Object>
  • added: method Hmac.calculateMac( List<int> input, { @required SecretKey secretKey, }): Future<Mac>
  • added: method JwkPrivateKey.extractSync(): List<int>
  • added: method JwkPrivateKey.operator ==(other): bool
  • added: method JwkPrivateKey.toJson(): Map<String, Object>
  • added: method JwkPrivateKey.toPublicKey(): JwkPublicKey
  • added: method JwkPublicKey.operator ==(other): bool
  • added: method JwkPublicKey.toJson(): Map<String, Object>
  • added: method Pbkdf2.deriveBits( List<int> secretBytes, { @required Nonce nonce, }): Future<Uint8List>
  • added: method Pbkdf2.deriveBitsSync( List<int> secretBytes, { @required Nonce nonce, }): Uint8List
  • added: method RsaJwkPrivateKey.extractSync(): List<int>
  • added: method RsaJwkPrivateKey.toJson(): Map<String, Object>
  • added: method RsaJwkPrivateKey.toPublicKey(): RsaJwkPublicKey
  • added: method RsaJwkPublicKey.toJson(): Map<String, Object>
  • added: method RsaPss.newKeyPair({ int modulusLength = …, List<int> publicExponent = …, }): Future<KeyPair>
  • added: method RsaPss.newKeyPairSync({ int modulusLength = …, List<int> publicExponent = …, }): KeyPair
  • added: method RsaPss.sign(List<int> input, KeyPair keyPair): Future<Signature>
  • added: method RsaPss.signSync(List<int> input, KeyPair keyPair): Signature
  • added: method RsaPss.verify(List<int> input, Signature signature): Future<bool>
  • added: method RsaPss.verifySync(List<int> input, Signature signature): bool
  • added: method RsaSsaPkcs1v15.newKeyPair({ int modulusLength = …, List<int> publicExponent = …, }): Future<KeyPair>
  • added: method RsaSsaPkcs1v15.newKeyPairSync({ int modulusLength = …, List<int> publicExponent = …, }): KeyPair
  • added: method RsaSsaPkcs1v15.sign(List<int> input, KeyPair keyPair): Future<Signature>
  • added: method RsaSsaPkcs1v15.signSync(List<int> input, KeyPair keyPair): Signature
  • added: method RsaSsaPkcs1v15.verify(List<int> input, Signature signature): Future<bool>
  • added: method RsaSsaPkcs1v15.verifySync(List<int> input, Signature signature): bool
  • added: static field RsaPss.defaultModulusLength: const int
  • added: static field RsaPss.defaultPublicExponent: const List<int>
  • added: static field RsaSsaPkcs1v15.defaultModulusLength: const int
  • added: static field RsaSsaPkcs1v15.defaultPublicExponent: const List<int>
  • added: static method EcJwkPrivateKey.from(PrivateKey privateKey): Future<EcJwkPrivateKey>
  • added: static method EcJwkPrivateKey.fromBytes(List<int> bytes): EcJwkPrivateKey
  • added: static method EcJwkPrivateKey.fromJson(Map<String, Object> jwk): EcJwkPrivateKey
  • added: static method EcJwkPrivateKey.fromSync(PrivateKey privateKey): JwkPrivateKey
  • added: static method EcJwkPublicKey.fromBytes(List<int> bytes): EcJwkPublicKey
  • added: static method EcJwkPublicKey.fromJson(Map<String, Object> jwk): EcJwkPublicKey
  • added: static method JwkPrivateKey.fromBytes(List<int> bytes): JwkPrivateKey
  • added: static method JwkPrivateKey.fromJson(Map<String, Object> json): JwkPrivateKey
  • added: static method JwkPublicKey.fromBytes(List<int> bytes): JwkPublicKey
  • added: static method JwkPublicKey.fromJson(Map<String, Object> json): JwkPublicKey
  • added: static method RsaJwkPrivateKey.fromBytes(List<int> bytes): RsaJwkPrivateKey
  • added: static method RsaJwkPrivateKey.fromJson(Map<String, Object> jwk): RsaJwkPrivateKey
  • added: static method RsaJwkPublicKey.fromBytes(List<int> bytes): RsaJwkPublicKey
  • added: static method RsaJwkPublicKey.fromJson(Map<String, Object> jwk): RsaJwkPublicKey
  • added: variable blake2b: const HashAlgorithm
  • added: variable ecdsaP384Sha384: const SignatureAlgorithm
  • added: variable ecdsaP521Sha512: const SignatureAlgorithm
  • removed: function hexFromBytes(Iterable<int> list): String
  • removed: function hexToBytes(String input): List<int>
  • removed: function multiply256(Int32List result, Int32List a, Int32List b): void
  • removed: function rotateLeft32(int value, int shift): int
  • removed: function rotateRight32(int value, int shift): int
  • removed: variable constantTimeBytesEquality: const Equality<List<int>>
  • removed: variable uint32mask: const int