src\libraries\Common\src\System\Security\Cryptography\MLDsa.cs (14)
123Helpers.ThrowIfDestinationWrongLength(destination, Algorithm.SignatureSizeInBytes);
305Helpers.ThrowIfDestinationWrongLength(destination, Algorithm.SignatureSizeInBytes);
574Helpers.ThrowIfDestinationWrongLength(destination, Algorithm.SignatureSizeInBytes);
716return Helpers.EncodeAsnWriterToPem(PemLabels.SpkiPublicKey, writer, clear: false);
1103return Helpers.EncodeAsnWriterToPem(PemLabels.EncryptedPkcs8PrivateKey, writer, clear: false);
1147return Helpers.EncodeAsnWriterToPem(PemLabels.EncryptedPkcs8PrivateKey, writer, clear: false);
1202Helpers.ThrowIfDestinationWrongLength(destination, Algorithm.PublicKeySizeInBytes);
1244Helpers.ThrowIfDestinationWrongLength(destination, Algorithm.PrivateKeySizeInBytes);
1284Helpers.ThrowIfDestinationWrongLength(destination, Algorithm.PrivateSeedSizeInBytes);
1349Helpers.ThrowIfAsnInvalidLength(source);
1418Helpers.ThrowIfAsnInvalidLength(source);
1481Helpers.ThrowIfAsnInvalidLength(source);
1530Helpers.ThrowIfAsnInvalidLength(source);
2248throw Helpers.CreateAlgorithmUnknownException(writer);