src\libraries\Common\src\System\Security\Cryptography\CompositeMLDsa.cs (13)
149int bytesWritten = SignDataCore(new ReadOnlySpan<byte>(data), new ReadOnlySpan<byte>(context), signature);
162new ReadOnlySpan<byte>(data),
163new ReadOnlySpan<byte>(context),
292return VerifyData(new ReadOnlySpan<byte>(data), new ReadOnlySpan<byte>(signature), new ReadOnlySpan<byte>(context));
484return ImportFromEncryptedPem(source.AsSpan(), new ReadOnlySpan<byte>(passwordBytes));
627return ImportSubjectPublicKeyInfo(new ReadOnlySpan<byte>(source));
695return ImportEncryptedPkcs8PrivateKey(password.AsSpan(), new ReadOnlySpan<byte>(source));
817return ImportPkcs8PrivateKey(new ReadOnlySpan<byte>(source));
888return ImportCompositeMLDsaPublicKey(algorithm, new ReadOnlySpan<byte>(source));
938return ImportCompositeMLDsaPrivateKey(algorithm, new ReadOnlySpan<byte>(source));
src\libraries\Common\src\System\Security\Cryptography\MLDsa.cs (20)
171SignData(new ReadOnlySpan<byte>(data), destination.AsSpan(), new ReadOnlySpan<byte>(context));
259return VerifyData(new ReadOnlySpan<byte>(data), new ReadOnlySpan<byte>(signature), new ReadOnlySpan<byte>(context));
374SignPreHash(new ReadOnlySpan<byte>(hash), destination.AsSpan(), hashAlgorithmOid, new ReadOnlySpan<byte>(context));
494new ReadOnlySpan<byte>(hash),
495new ReadOnlySpan<byte>(signature),
497new ReadOnlySpan<byte>(context));
507return SignMu(new ReadOnlySpan<byte>(externalMu));
612return VerifyMu(new ReadOnlySpan<byte>(externalMu), new ReadOnlySpan<byte>(signature));
1411return ImportSubjectPublicKeyInfo(new ReadOnlySpan<byte>(source));
1464return ImportPkcs8PrivateKey(new ReadOnlySpan<byte>(source));
1582return ImportEncryptedPkcs8PrivateKey(password.AsSpan(), new ReadOnlySpan<byte>(source));
1808return ImportFromEncryptedPem(source.AsSpan(), new ReadOnlySpan<byte>(passwordBytes));
1858return ImportMLDsaPublicKey(algorithm, new ReadOnlySpan<byte>(source));
1908return ImportMLDsaPrivateKey(algorithm, new ReadOnlySpan<byte>(source));
1958return ImportMLDsaPrivateSeed(algorithm, new ReadOnlySpan<byte>(source));
src\libraries\Common\src\System\Security\Cryptography\SlhDsa.cs (16)
186SignData(new ReadOnlySpan<byte>(data), destination.AsSpan(), new ReadOnlySpan<byte>(context));
272return VerifyData(new ReadOnlySpan<byte>(data), new ReadOnlySpan<byte>(signature), new ReadOnlySpan<byte>(context));
379SignPreHash(new ReadOnlySpan<byte>(hash), destination.AsSpan(), hashAlgorithmOid, new ReadOnlySpan<byte>(context));
487new ReadOnlySpan<byte>(hash),
488new ReadOnlySpan<byte>(signature),
490new ReadOnlySpan<byte>(context));
1250return ImportSubjectPublicKeyInfo(new ReadOnlySpan<byte>(source));
1318return ImportPkcs8PrivateKey(new ReadOnlySpan<byte>(source));
1433return ImportEncryptedPkcs8PrivateKey(password.AsSpan(), new ReadOnlySpan<byte>(source));
1653return ImportFromEncryptedPem(source.AsSpan(), new ReadOnlySpan<byte>(passwordBytes));
1703return ImportSlhDsaPublicKey(algorithm, new ReadOnlySpan<byte>(source));
1753return ImportSlhDsaPrivateKey(algorithm, new ReadOnlySpan<byte>(source));
System\Security\Cryptography\CryptographicOperations.cs (9)
94return HashData(hashAlgorithm, new ReadOnlySpan<byte>(source));
397return HmacData(hashAlgorithm, new ReadOnlySpan<byte>(key), new ReadOnlySpan<byte>(source));
545return HmacData(hashAlgorithm, new ReadOnlySpan<byte>(key), source);
841new ReadOnlySpan<byte>(key),
842new ReadOnlySpan<byte>(source),
843new ReadOnlySpan<byte>(hash));
929return VerifyHmac(hashAlgorithm, new ReadOnlySpan<byte>(key), source, new ReadOnlySpan<byte>(hash));
System\Security\Cryptography\SymmetricAlgorithm.cs (10)
498return DecryptEcb(new ReadOnlySpan<byte>(ciphertext), paddingMode);
616return EncryptEcb(new ReadOnlySpan<byte>(plaintext), paddingMode);
739return DecryptCbc(new ReadOnlySpan<byte>(ciphertext), new ReadOnlySpan<byte>(iv), paddingMode);
894return EncryptCbc(new ReadOnlySpan<byte>(plaintext), new ReadOnlySpan<byte>(iv), paddingMode);
1067new ReadOnlySpan<byte>(ciphertext),
1068new ReadOnlySpan<byte>(iv),
1308new ReadOnlySpan<byte>(plaintext),
1309new ReadOnlySpan<byte>(iv),