Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4e3e6aa

Browse files
committed
fix: Documentation issues (#92, #132, #173)
1 parent cf3b1ba commit 4e3e6aa

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

cryptography/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ Future<void> main() async {
349349
keyPair: aliceKeyPair,
350350
remotePublicKey: bobPublicKey,
351351
);
352-
final sharedSecretBytes = await aliceKeyPair.extractBytes();
352+
final sharedSecretBytes = await sharedSecret.extractBytes();
353353
print('Shared secret: $sharedSecretBytes');
354354
}
355355
```

cryptography/lib/src/cryptography/algorithms.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1605,7 +1605,7 @@ abstract class Poly1305 extends MacAlgorithm {
16051605
/// import 'package:cryptography/cryptography.dart';
16061606
///
16071607
/// Future<void> main() async {
1608-
/// final algorithm = RsaPss(Sha256());
1608+
/// final algorithm = RsaPss.sha256();
16091609
///
16101610
/// // Generate a key pair
16111611
/// final keyPair = await algorithm.newKeyPair();

cryptography/lib/src/cryptography/cipher.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ abstract class Cipher {
348348
/// secretKey: secretKey,
349349
/// nonce: nonce,
350350
/// );
351-
/// await encryptedSink.addStream(encryptedStream);
351+
/// await sink.addStream(encryptedStream);
352352
/// } finally {
353353
/// sink.close();
354354
/// }

0 commit comments

Comments
 (0)