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);
729return Helpers.EncodeAsnWriterToPem(PemLabels.SpkiPublicKey, writer, clear: false);
1127return Helpers.EncodeAsnWriterToPem(PemLabels.EncryptedPkcs8PrivateKey, writer, clear: false);
1172return Helpers.EncodeAsnWriterToPem(PemLabels.EncryptedPkcs8PrivateKey, writer, clear: false);
1228Helpers.ThrowIfDestinationWrongLength(destination, Algorithm.PublicKeySizeInBytes);
1270Helpers.ThrowIfDestinationWrongLength(destination, Algorithm.PrivateKeySizeInBytes);
1310Helpers.ThrowIfDestinationWrongLength(destination, Algorithm.PrivateSeedSizeInBytes);
1376Helpers.ThrowIfAsnInvalidLength(source);
1447Helpers.ThrowIfAsnInvalidLength(source);
1512Helpers.ThrowIfAsnInvalidLength(source);
1562Helpers.ThrowIfAsnInvalidLength(source);
2289throw Helpers.CreateAlgorithmUnknownException(writer);