src\libraries\Common\src\System\Security\Cryptography\MLDsa.cs (14)
122Helpers.ThrowIfDestinationWrongLength(destination, Algorithm.SignatureSizeInBytes);
305Helpers.ThrowIfDestinationWrongLength(destination, Algorithm.SignatureSizeInBytes);
580Helpers.ThrowIfDestinationWrongLength(destination, Algorithm.SignatureSizeInBytes);
726return Helpers.EncodeAsnWriterToPem(PemLabels.SpkiPublicKey, writer, clear: false);
1113return Helpers.EncodeAsnWriterToPem(PemLabels.EncryptedPkcs8PrivateKey, writer, clear: false);
1157return Helpers.EncodeAsnWriterToPem(PemLabels.EncryptedPkcs8PrivateKey, writer, clear: false);
1212Helpers.ThrowIfDestinationWrongLength(destination, Algorithm.PublicKeySizeInBytes);
1254Helpers.ThrowIfDestinationWrongLength(destination, Algorithm.PrivateKeySizeInBytes);
1294Helpers.ThrowIfDestinationWrongLength(destination, Algorithm.PrivateSeedSizeInBytes);
1359Helpers.ThrowIfAsnInvalidLength(source);
1422Helpers.ThrowIfAsnInvalidLength(source);
1485Helpers.ThrowIfAsnInvalidLength(source);
1534Helpers.ThrowIfAsnInvalidLength(source);
2252throw Helpers.CreateAlgorithmUnknownException(in identifier);