File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff 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` ` `
Original file line number Diff line number Diff 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();
Original file line number Diff line number Diff 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 /// }
You can’t perform that action at this time.
0 commit comments