Upgrading cryptography 0.2 to 0.3
Unknown0.2.6 → 0.3.5
UnknownUpgrade verdict
None of the 6 releases in this range publish notes, so breaking changes can't be ruled out.
In plain terms
- Some releases in this range publish no notes, so DepDelta can't rule out breaking changes.
- DepDelta found no commit log for them either.
Must act Unknown for releases without notes
Releases without notes may still need changes. Check their commits before upgrading.
Dart SDK requirement changed in 0.3.0: >=2.7.0 <3.0.0 → >=2.5.0 <3.0.0.
API changes
Generated by DepDelta from published Dart source. Not mixed with prose notes.
- removed:
class AuthenticatedCipher: abstract - removed:
class AuthenticatedCipherText - removed:
class Chacha20Poly1305Aead extends AuthenticatedCipher - removed:
class KeyPairGenerator: abstract - removed:
class SecretKeyGenerator - removed:
class SeedableKeyPairGenerator: abstract extends KeyPairGenerator - removed:
class SyncKeyStreamCipher: abstract extends Cipher - removed:
ctor AuthenticatedCipher() - removed:
ctor AuthenticatedCipher.from({ @required Cipher cipher, @required MacAlgorithm macAlgorithm, }) - removed:
ctor AuthenticatedCipherText({@required this.cipherText, @required this.mac}) - removed:
ctor KeyPairGenerator() - removed:
ctor SecretKeyGenerator({ @required this.validLengths, @required this.defaultLength, }) - removed:
ctor SeedableKeyPairGenerator() - removed:
ctor SyncKeyStreamCipher() - removed:
field AuthenticatedCipherText.cipherText: final List<int> - removed:
field AuthenticatedCipherText.mac: final Mac - removed:
field SecretKeyGenerator.defaultLength: final int - removed:
field SecretKeyGenerator.validLengths: final Set<int> - removed:
get AuthenticatedCipher.cipher: Cipher - removed:
get AuthenticatedCipher.macAlgorithm: MacAlgorithm - removed:
get AuthenticatedCipher.supportsAad: bool - removed:
get AuthenticatedCipherText.hashCode: int - removed:
get Chacha20Poly1305Aead.cipher: Cipher - removed:
get Chacha20Poly1305Aead.macAlgorithm: MacAlgorithm - removed:
get Cipher.secretKeyGenerator: SecretKeyGenerator - removed:
get HashAlgorithm.blockLength: int - removed:
get KeyExchangeAlgorithm.keyPairGenerator: KeyPairGenerator - removed:
get KeyPairGenerator.lengthInBytes: int - removed:
get KeyPairGenerator.name: String - removed:
get PrivateKey.bytes: List<int> - removed:
get SecretKey.bytes: List<int> - removed:
get SeedableKeyPairGenerator.defaultSeedLength: int - removed:
get SignatureAlgorithm.keyPairGenerator: KeyPairGenerator - removed:
method AuthenticatedCipher.decrypt( AuthenticatedCipherText input, { @required SecretKey secretKey, @required Nonce nonce, List<int> aad, }): Future<Uint8List> - removed:
method AuthenticatedCipher.encrypt( List<int> input, { @required SecretKey secretKey, @required Nonce nonce, List<int> aad, }): Future<AuthenticatedCipherText> - removed:
method AuthenticatedCipherText.operator ==(other): bool - removed:
method AuthenticatedCipherText.toBytes(): Uint8List - removed:
method Chacha20Poly1305Aead.decrypt( AuthenticatedCipherText input, { List<int> aad, @required SecretKey secretKey, @required Nonce nonce, }): Future<Uint8List> - removed:
method Chacha20Poly1305Aead.encrypt( List<int> input, { List<int> aad, @required SecretKey secretKey, @required Nonce nonce, }): Future<AuthenticatedCipherText> - removed:
method HashSink.close(): Future<Hash> - removed:
method HashSink.closeSync(): Hash - removed:
method KeyPairGenerator.generate(): Future<KeyPair> - removed:
method KeyPairGenerator.generateFromSeed(PrivateKey seedKey): Future<KeyPair> - removed:
method KeyPairGenerator.generateFromSeedSync(PrivateKey seedKey): KeyPair - removed:
method KeyPairGenerator.generateSync(): KeyPair - removed:
method MacSink.close(): Future<Mac> - removed:
method MacSink.closeSync(): Mac - removed:
method SecretKeyGenerator.generate({int length}): Future<SecretKey> - removed:
method SecretKeyGenerator.generateSync({int length}): SecretKey - removed:
method SecretKeyGenerator.isValidLength(int length): bool - removed:
method SeedableKeyPairGenerator.generate(): Future<KeyPair> - removed:
method SeedableKeyPairGenerator.generateFromSeed(PrivateKey seedKey): Future<KeyPair> - removed:
method SeedableKeyPairGenerator.generateFromSeedSync(PrivateKey seedKey): KeyPair - removed:
method SeedableKeyPairGenerator.generateSync(): KeyPair - removed:
method SyncKeyStreamCipher.decryptSync( List<int> input, { @required SecretKey secretKey, @required Nonce nonce, int offset = …, }): Uint8List - removed:
method SyncKeyStreamCipher.encryptSync( List<int> input, { @required SecretKey secretKey, @required Nonce nonce, int offset = …, }): Uint8List - removed:
method SyncKeyStreamCipher.newState({ @required SecretKey secretKey, @required Nonce nonce, int keyStreamIndex, }): SyncKeyStreamCipherState - removed:
static method SyncKeyStreamCipher.checkNewStateArguments(SyncKeyStreamCipher cipher, {@required SecretKey secretKey, @required int keyStreamIndex, Nonce nonce}): void - removed:
variable aesCtr32: const Cipher - removed:
variable sha3V224: const HashAlgorithm - removed:
variable sha3V256: const HashAlgorithm - removed:
variable sha3V384: const HashAlgorithm - removed:
variable sha3V512: const HashAlgorithm - changed:
class HashSink: abstract implements ByteConversionSink → class HashSink: abstract extends ByteConversionSink - changed:
class MacSink: abstract implements ByteConversionSink → class MacSink: abstract extends ByteConversionSink - changed:
function poly1305SecretKeyFromChacha20(SecretKey secretKey, {@required Nonce nonce}): Future<SecretKey> → function poly1305SecretKeyFromChacha20(SecretKey secretKey, {@required Nonce nonce}): SecretKey - changed:
method Cipher.decrypt( List<int> input, { @required SecretKey secretKey, @required Nonce nonce, int offset = …, }): Future<Uint8List> → method Cipher.decrypt( List<int> input, { @required SecretKey secretKey, @required Nonce nonce, List<int> aad, int keyStreamIndex = …, }): Future<List<int>> - changed:
method Cipher.decryptSync( List<int> input, { @required SecretKey secretKey, @required Nonce nonce, int offset = …, }): Uint8List → method Cipher.decryptSync( List<int> input, { @required SecretKey secretKey, @required Nonce nonce, List<int> aad, int keyStreamIndex = …, }): List<int> - changed:
method Cipher.encrypt( List<int> input, { @required SecretKey secretKey, @required Nonce nonce, int offset = …, }): Future<Uint8List> → method Cipher.encrypt( List<int> input, { @required SecretKey secretKey, @required Nonce nonce, List<int> aad, int keyStreamIndex = …, }): Future<List<int>> - changed:
method Cipher.encryptSync( List<int> input, { @required SecretKey secretKey, @required Nonce nonce, int offset = …, }): Uint8List → method Cipher.encryptSync( List<int> input, { @required SecretKey secretKey, @required Nonce nonce, List<int> aad, int keyStreamIndex = …, }): List<int> - changed:
method Cipher.newSecretKey(): Future<SecretKey> → method Cipher.newSecretKey({int length}): Future<SecretKey> - changed:
method Cipher.newSecretKeySync(): SecretKey → method Cipher.newSecretKeySync({int length}): SecretKey - changed:
method HashAlgorithm.hashSync(List<int> input): Hash → method HashAlgorithm.hashSync(List<int> data): Hash - changed:
method MacAlgorithm.calculateMacSync(List<int> input, {@required SecretKey secretKey}): Mac → method MacAlgorithm.calculateMacSync(List<int> data, {@required SecretKey secretKey}): Mac - changed:
method Nonce.increment(): Nonce → method Nonce.increment([int n = …]): Nonce - changed:
method SyncKeyStreamCipherState.fillWithConverted( List<int> result, int resultStart, List<int> input, int inputStart, {int length}): void → method SyncKeyStreamCipherState.fillWithConverted({ @required List<int> output, int outputStart = …, @required List<int> input, int inputStart = …, int length, }): void - changed:
method SyncKeyStreamCipherState.fillWithKeyStream(List<int> result, int start, {int length}): void → method SyncKeyStreamCipherState.fillWithKeyStream(List<int> result, {int start = …, int length}): void - changed:
variable chacha20: const SyncKeyStreamCipher → variable chacha20: const Cipher - changed:
variable chacha20Poly1305Aead: const Chacha20Poly1305Aead → variable chacha20Poly1305Aead: const CipherWithAppendedMac - added:
class CipherWithAppendedMac implements Cipher - added:
class HChacha20 - added:
class Hkdf - added:
class MacValidationException implements Exception - added:
ctor CipherWithAppendedMac( this.cipher, this.macAlgorithm, ) - added:
ctor HChacha20() - added:
ctor Hkdf(this.hmac) - added:
field CipherWithAppendedMac.cipher: final Cipher - added:
field CipherWithAppendedMac.macAlgorithm: final MacAlgorithm - added:
field Hkdf.hmac: final Hmac - added:
get Cipher.isAuthenticated: bool - added:
get Cipher.secretKeyLength: int - added:
get Cipher.secretKeyValidLengths: Set<int> - added:
get Cipher.supportsAad: bool - added:
get CipherWithAppendedMac.isAuthenticated: bool - added:
get CipherWithAppendedMac.name: String - added:
get CipherWithAppendedMac.nonceLength: int - added:
get CipherWithAppendedMac.secretKeyLength: int - added:
get CipherWithAppendedMac.secretKeyValidLengths: Set<int> - added:
get CipherWithAppendedMac.supportsAad: bool - added:
get HashAlgorithm.blockLengthInBytes: int - added:
get HashSink.hash: Hash - added:
get Hmac.macLengthInBytes: int - added:
get Hmac.name: String - added:
get KeyExchangeAlgorithm.isSeedSupported: bool - added:
get KeyExchangeAlgorithm.publicKeyLength: int - added:
get MacAlgorithm.macLengthInBytes: int - added:
get MacAlgorithm.name: String - added:
get MacSink.mac: Mac - added:
get SignatureAlgorithm.isSeedSupported: bool - added:
get SignatureAlgorithm.publicKeyLength: int - added:
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> - added:
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> - added:
method Cipher.getDataInCipherText(List<int> cipherText): List<int> - added:
method Cipher.getMacInCipherText(List<int> cipherText): Mac - added:
method Cipher.isSecretKeyLengthInBytesValid(int length): bool - added:
method Cipher.toString(): String - added:
method CipherWithAppendedMac.calculateMacSync( List<int> cipherText, { @required SecretKey secretKey, @required Nonce nonce, @required List<int> aad, }): Mac - added:
method CipherWithAppendedMac.decrypt( List<int> cipherText, { @required SecretKey secretKey, @required Nonce nonce, List<int> aad, int keyStreamIndex = …, }): Future<List<int>> - added:
method CipherWithAppendedMac.decryptSync( List<int> cipherText, { @required SecretKey secretKey, @required Nonce nonce, List<int> aad, int keyStreamIndex = …, }): List<int> - added:
method CipherWithAppendedMac.decryptToBuffer( List<int> input, { @required List<int> buffer, int bufferStart = …, @required SecretKey secretKey, @required Nonce nonce, List<int> aad, int keyStreamIndex = …, }): Future<int> - added:
method CipherWithAppendedMac.encrypt( List<int> clearText, { @required SecretKey secretKey, @required Nonce nonce, List<int> aad, int keyStreamIndex = …, }): Future<List<int>> - added:
method CipherWithAppendedMac.encryptSync( List<int> clearText, { @required SecretKey secretKey, @required Nonce nonce, List<int> aad, int keyStreamIndex = …, }): List<int> - added:
method CipherWithAppendedMac.encryptToBuffer( List<int> input, { @required List<int> buffer, int bufferStart = …, @required SecretKey secretKey, @required Nonce nonce, List<int> aad, int keyStreamIndex = …, }): Future<int> - added:
method CipherWithAppendedMac.getDataInCipherText(List<int> cipherText): List<int> - added:
method CipherWithAppendedMac.getMacInCipherText(List<int> cipherText): Mac - added:
method CipherWithAppendedMac.isSecretKeyLengthInBytesValid(int length): bool - added:
method CipherWithAppendedMac.newNonce(): Nonce - added:
method CipherWithAppendedMac.newSecretKey({int length}): Future<SecretKey> - added:
method CipherWithAppendedMac.newSecretKeySync({int length}): SecretKey - added:
method CipherWithAppendedMac.toString(): String - added:
method HChacha20.deriveKeySync({ @required SecretKey secretKey, @required Nonce nonce, }): SecretKey - added:
method HashAlgorithm.toString(): String - added:
method Hkdf.deriveKey( SecretKey input, { @required int outputLength, Nonce nonce, List<int> info, }): Future<SecretKey> - added:
method KeyExchangeAlgorithm.newKeyPair(): Future<KeyPair> - added:
method KeyExchangeAlgorithm.newKeyPairFromSeed(PrivateKey seed): Future<KeyPair> - added:
method KeyExchangeAlgorithm.newKeyPairFromSeedSync(PrivateKey seed): KeyPair - added:
method KeyExchangeAlgorithm.newKeyPairSync(): KeyPair - added:
method MacValidationException.toString(): String - added:
method SignatureAlgorithm.newKeyPair(): Future<KeyPair> - added:
method SignatureAlgorithm.newKeyPairFromSeed(PrivateKey seed): Future<KeyPair> - added:
method SignatureAlgorithm.newKeyPairFromSeedSync(PrivateKey seed): KeyPair - added:
method SignatureAlgorithm.newKeyPairSync(): KeyPair - added:
variable aesCtr: const Cipher - added:
variable xchacha20: const Cipher - added:
variable xchacha20Poly1305Aead: const CipherWithAppendedMac
- removed:
class ConstantTimeBytesEquality implements Equality<List<int>> - removed:
ctor ConstantTimeBytesEquality() - removed:
method ConstantTimeBytesEquality.equals(List<int> left, List<int> right): bool - removed:
method ConstantTimeBytesEquality.hash(List<int> e): int - removed:
method ConstantTimeBytesEquality.isValidKey(Object o): bool