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);
1441Helpers.ThrowIfAsnInvalidLength(source);
1506Helpers.ThrowIfAsnInvalidLength(source);
1556Helpers.ThrowIfAsnInvalidLength(source);
2281throw Helpers.CreateAlgorithmUnknownException(in identifier);