Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cryptography/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ Future<void> main() async {
keyPair: aliceKeyPair,
remotePublicKey: bobPublicKey,
);
final sharedSecretBytes = await aliceKeyPair.extractBytes();
final sharedSecretBytes = await sharedSecret.extractBytes();
print('Shared secret: $sharedSecretBytes');
}
```
Expand Down
2 changes: 1 addition & 1 deletion cryptography/lib/src/cryptography/algorithms.dart
Original file line number Diff line number Diff line change
Expand Up @@ -1605,7 +1605,7 @@ abstract class Poly1305 extends MacAlgorithm {
/// import 'package:cryptography/cryptography.dart';
///
/// Future<void> main() async {
/// final algorithm = RsaPss(Sha256());
/// final algorithm = RsaPss.sha256();
///
/// // Generate a key pair
/// final keyPair = await algorithm.newKeyPair();
Expand Down
2 changes: 1 addition & 1 deletion cryptography/lib/src/cryptography/cipher.dart
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ abstract class Cipher {
/// secretKey: secretKey,
/// nonce: nonce,
/// );
/// await encryptedSink.addStream(encryptedStream);
/// await sink.addStream(encryptedStream);
/// } finally {
/// sink.close();
/// }
Expand Down