mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Merge Aaru.Decryption into devel
This commit is contained in:
1342
Aaru.Decryption/.editorconfig
Normal file
1342
Aaru.Decryption/.editorconfig
Normal file
File diff suppressed because it is too large
Load Diff
608
Aaru.Decryption/.gitignore
vendored
Normal file
608
Aaru.Decryption/.gitignore
vendored
Normal file
@@ -0,0 +1,608 @@
|
|||||||
|
### VisualStudio template
|
||||||
|
## Ignore Visual Studio temporary files, build results, and
|
||||||
|
## files generated by popular Visual Studio add-ons.
|
||||||
|
##
|
||||||
|
## Get latest from https://github.com/github/gitignore/blob/master/VisualStudio.gitignore
|
||||||
|
|
||||||
|
# User-specific files
|
||||||
|
*.suo
|
||||||
|
*.user
|
||||||
|
*.userosscache
|
||||||
|
*.sln.docstates
|
||||||
|
|
||||||
|
# User-specific files (MonoDevelop/Xamarin Studio)
|
||||||
|
*.userprefs
|
||||||
|
|
||||||
|
# Build results
|
||||||
|
[Dd]ebug/
|
||||||
|
[Dd]ebugPublic/
|
||||||
|
[Rr]elease/
|
||||||
|
[Rr]eleases/
|
||||||
|
x64/
|
||||||
|
x86/
|
||||||
|
bld/
|
||||||
|
[Bb]in/
|
||||||
|
[Oo]bj/
|
||||||
|
[Ll]og/
|
||||||
|
|
||||||
|
# Visual Studio 2015/2017 cache/options directory
|
||||||
|
.vs/
|
||||||
|
# Uncomment if you have tasks that create the project's static files in wwwroot
|
||||||
|
#wwwroot/
|
||||||
|
|
||||||
|
# Visual Studio 2017 auto generated files
|
||||||
|
Generated\ Files/
|
||||||
|
|
||||||
|
# MSTest test Results
|
||||||
|
[Tt]est[Rr]esult*/
|
||||||
|
[Bb]uild[Ll]og.*
|
||||||
|
|
||||||
|
# NUNIT
|
||||||
|
*.VisualState.xml
|
||||||
|
TestResult.xml
|
||||||
|
|
||||||
|
# Build Results of an ATL Project
|
||||||
|
[Dd]ebugPS/
|
||||||
|
[Rr]eleasePS/
|
||||||
|
dlldata.c
|
||||||
|
|
||||||
|
# Benchmark Results
|
||||||
|
BenchmarkDotNet.Artifacts/
|
||||||
|
|
||||||
|
# .NET Core
|
||||||
|
project.lock.json
|
||||||
|
project.fragment.lock.json
|
||||||
|
artifacts/
|
||||||
|
|
||||||
|
# StyleCop
|
||||||
|
StyleCopReport.xml
|
||||||
|
|
||||||
|
# Files built by Visual Studio
|
||||||
|
*_i.c
|
||||||
|
*_p.c
|
||||||
|
*_i.h
|
||||||
|
*.ilk
|
||||||
|
*.meta
|
||||||
|
*.obj
|
||||||
|
*.iobj
|
||||||
|
*.pch
|
||||||
|
*.pdb
|
||||||
|
*.ipdb
|
||||||
|
*.pgc
|
||||||
|
*.pgd
|
||||||
|
*.rsp
|
||||||
|
*.sbr
|
||||||
|
*.tlb
|
||||||
|
*.tli
|
||||||
|
*.tlh
|
||||||
|
*.tmp
|
||||||
|
*.tmp_proj
|
||||||
|
*.log
|
||||||
|
*.vspscc
|
||||||
|
*.vssscc
|
||||||
|
.builds
|
||||||
|
*.pidb
|
||||||
|
*.svclog
|
||||||
|
*.scc
|
||||||
|
|
||||||
|
# Chutzpah Test files
|
||||||
|
_Chutzpah*
|
||||||
|
|
||||||
|
# Visual C++ cache files
|
||||||
|
ipch/
|
||||||
|
*.aps
|
||||||
|
*.ncb
|
||||||
|
*.opendb
|
||||||
|
*.opensdf
|
||||||
|
*.sdf
|
||||||
|
*.cachefile
|
||||||
|
*.VC.db
|
||||||
|
*.VC.VC.opendb
|
||||||
|
|
||||||
|
# Visual Studio profiler
|
||||||
|
*.psess
|
||||||
|
*.vsp
|
||||||
|
*.vspx
|
||||||
|
*.sap
|
||||||
|
|
||||||
|
# Visual Studio Trace Files
|
||||||
|
*.e2e
|
||||||
|
|
||||||
|
# TFS 2012 Local Workspace
|
||||||
|
$tf/
|
||||||
|
|
||||||
|
# Guidance Automation Toolkit
|
||||||
|
*.gpState
|
||||||
|
|
||||||
|
# ReSharper is a .NET coding add-in
|
||||||
|
_ReSharper*/
|
||||||
|
*.[Rr]e[Ss]harper
|
||||||
|
*.DotSettings.user
|
||||||
|
|
||||||
|
# JustCode is a .NET coding add-in
|
||||||
|
.JustCode
|
||||||
|
|
||||||
|
# TeamCity is a build add-in
|
||||||
|
_TeamCity*
|
||||||
|
|
||||||
|
# DotCover is a Code Coverage Tool
|
||||||
|
*.dotCover
|
||||||
|
|
||||||
|
# AxoCover is a Code Coverage Tool
|
||||||
|
.axoCover/*
|
||||||
|
!.axoCover/settings.json
|
||||||
|
|
||||||
|
# Visual Studio code coverage results
|
||||||
|
*.coverage
|
||||||
|
*.coveragexml
|
||||||
|
|
||||||
|
# NCrunch
|
||||||
|
_NCrunch_*
|
||||||
|
.*crunch*.local.xml
|
||||||
|
nCrunchTemp_*
|
||||||
|
|
||||||
|
# MightyMoose
|
||||||
|
*.mm.*
|
||||||
|
AutoTest.Net/
|
||||||
|
|
||||||
|
# Web workbench (sass)
|
||||||
|
.sass-cache/
|
||||||
|
|
||||||
|
# Installshield output folder
|
||||||
|
[Ee]xpress/
|
||||||
|
|
||||||
|
# DocProject is a documentation generator add-in
|
||||||
|
DocProject/buildhelp/
|
||||||
|
DocProject/Help/*.HxT
|
||||||
|
DocProject/Help/*.HxC
|
||||||
|
DocProject/Help/*.hhc
|
||||||
|
DocProject/Help/*.hhk
|
||||||
|
DocProject/Help/*.hhp
|
||||||
|
DocProject/Help/Html2
|
||||||
|
DocProject/Help/html
|
||||||
|
|
||||||
|
# Click-Once directory
|
||||||
|
publish/
|
||||||
|
|
||||||
|
# Publish Web Output
|
||||||
|
*.[Pp]ublish.xml
|
||||||
|
*.azurePubxml
|
||||||
|
# Note: Comment the next line if you want to checkin your web deploy settings,
|
||||||
|
# but database connection strings (with potential passwords) will be unencrypted
|
||||||
|
*.pubxml
|
||||||
|
*.publishproj
|
||||||
|
|
||||||
|
# Microsoft Azure Web App publish settings. Comment the next line if you want to
|
||||||
|
# checkin your Azure Web App publish settings, but sensitive information contained
|
||||||
|
# in these scripts will be unencrypted
|
||||||
|
PublishScripts/
|
||||||
|
|
||||||
|
# NuGet Packages
|
||||||
|
*.nupkg
|
||||||
|
# The packages folder can be ignored because of Package Restore
|
||||||
|
**/[Pp]ackages/*
|
||||||
|
# except build/, which is used as an MSBuild target.
|
||||||
|
!**/[Pp]ackages/build/
|
||||||
|
# Uncomment if necessary however generally it will be regenerated when needed
|
||||||
|
#!**/[Pp]ackages/repositories.config
|
||||||
|
# NuGet v3's project.json files produces more ignorable files
|
||||||
|
*.nuget.props
|
||||||
|
*.nuget.targets
|
||||||
|
|
||||||
|
# Microsoft Azure Build Output
|
||||||
|
csx/
|
||||||
|
*.build.csdef
|
||||||
|
|
||||||
|
# Microsoft Azure Emulator
|
||||||
|
ecf/
|
||||||
|
rcf/
|
||||||
|
|
||||||
|
# Windows Store app package directories and files
|
||||||
|
AppPackages/
|
||||||
|
BundleArtifacts/
|
||||||
|
Package.StoreAssociation.xml
|
||||||
|
_pkginfo.txt
|
||||||
|
*.appx
|
||||||
|
|
||||||
|
# Visual Studio cache files
|
||||||
|
# files ending in .cache can be ignored
|
||||||
|
*.[Cc]ache
|
||||||
|
# but keep track of directories ending in .cache
|
||||||
|
!*.[Cc]ache/
|
||||||
|
|
||||||
|
# Others
|
||||||
|
ClientBin/
|
||||||
|
~$*
|
||||||
|
*~
|
||||||
|
*.dbmdl
|
||||||
|
*.dbproj.schemaview
|
||||||
|
*.jfm
|
||||||
|
*.pfx
|
||||||
|
*.publishsettings
|
||||||
|
orleans.codegen.cs
|
||||||
|
|
||||||
|
# Including strong name files can present a security risk
|
||||||
|
# (https://github.com/github/gitignore/pull/2483#issue-259490424)
|
||||||
|
#*.snk
|
||||||
|
|
||||||
|
# Since there are multiple workflows, uncomment next line to ignore bower_components
|
||||||
|
# (https://github.com/github/gitignore/pull/1529#issuecomment-104372622)
|
||||||
|
#bower_components/
|
||||||
|
|
||||||
|
# RIA/Silverlight projects
|
||||||
|
Generated_Code/
|
||||||
|
|
||||||
|
# Backup & report files from converting an old project file
|
||||||
|
# to a newer Visual Studio version. Backup files are not needed,
|
||||||
|
# because we have git ;-)
|
||||||
|
_UpgradeReport_Files/
|
||||||
|
Backup*/
|
||||||
|
UpgradeLog*.XML
|
||||||
|
UpgradeLog*.htm
|
||||||
|
ServiceFabricBackup/
|
||||||
|
*.rptproj.bak
|
||||||
|
|
||||||
|
# SQL Server files
|
||||||
|
*.mdf
|
||||||
|
*.ldf
|
||||||
|
*.ndf
|
||||||
|
|
||||||
|
# Business Intelligence projects
|
||||||
|
*.rdl.data
|
||||||
|
*.bim.layout
|
||||||
|
*.bim_*.settings
|
||||||
|
*.rptproj.rsuser
|
||||||
|
|
||||||
|
# Microsoft Fakes
|
||||||
|
FakesAssemblies/
|
||||||
|
|
||||||
|
# GhostDoc plugin setting file
|
||||||
|
*.GhostDoc.xml
|
||||||
|
|
||||||
|
# Node.js Tools for Visual Studio
|
||||||
|
.ntvs_analysis.dat
|
||||||
|
node_modules/
|
||||||
|
|
||||||
|
# Visual Studio 6 build log
|
||||||
|
*.plg
|
||||||
|
|
||||||
|
# Visual Studio 6 workspace options file
|
||||||
|
*.opt
|
||||||
|
|
||||||
|
# Visual Studio 6 auto-generated workspace file (contains which files were open etc.)
|
||||||
|
*.vbw
|
||||||
|
|
||||||
|
# Visual Studio LightSwitch build output
|
||||||
|
**/*.HTMLClient/GeneratedArtifacts
|
||||||
|
**/*.DesktopClient/GeneratedArtifacts
|
||||||
|
**/*.DesktopClient/ModelManifest.xml
|
||||||
|
**/*.Server/GeneratedArtifacts
|
||||||
|
**/*.Server/ModelManifest.xml
|
||||||
|
_Pvt_Extensions
|
||||||
|
|
||||||
|
# Paket dependency manager
|
||||||
|
.paket/paket.exe
|
||||||
|
paket-files/
|
||||||
|
|
||||||
|
# FAKE - F# Make
|
||||||
|
.fake/
|
||||||
|
|
||||||
|
# JetBrains Rider
|
||||||
|
.idea/
|
||||||
|
*.sln.iml
|
||||||
|
|
||||||
|
# CodeRush
|
||||||
|
.cr/
|
||||||
|
|
||||||
|
# Python Tools for Visual Studio (PTVS)
|
||||||
|
__pycache__/
|
||||||
|
*.pyc
|
||||||
|
|
||||||
|
# Cake - Uncomment if you are using it
|
||||||
|
# tools/**
|
||||||
|
# !tools/packages.config
|
||||||
|
|
||||||
|
# Tabs Studio
|
||||||
|
*.tss
|
||||||
|
|
||||||
|
# Telerik's JustMock configuration file
|
||||||
|
*.jmconfig
|
||||||
|
|
||||||
|
# BizTalk build output
|
||||||
|
*.btp.cs
|
||||||
|
*.btm.cs
|
||||||
|
*.odx.cs
|
||||||
|
*.xsd.cs
|
||||||
|
|
||||||
|
# OpenCover UI analysis results
|
||||||
|
OpenCover/
|
||||||
|
|
||||||
|
# Azure Stream Analytics local run output
|
||||||
|
ASALocalRun/
|
||||||
|
|
||||||
|
# MSBuild Binary and Structured Log
|
||||||
|
*.binlog
|
||||||
|
|
||||||
|
# NVidia Nsight GPU debugger configuration file
|
||||||
|
*.nvuser
|
||||||
|
|
||||||
|
# MFractors (Xamarin productivity tool) working folder
|
||||||
|
.mfractor/
|
||||||
|
### Linux template
|
||||||
|
|
||||||
|
# temporary files which can be created if a process still has a handle open of a deleted file
|
||||||
|
.fuse_hidden*
|
||||||
|
|
||||||
|
# KDE directory preferences
|
||||||
|
.directory
|
||||||
|
|
||||||
|
# Linux trash folder which might appear on any partition or disk
|
||||||
|
.Trash-*
|
||||||
|
|
||||||
|
# .nfs files are created when an open file is removed but is still being accessed
|
||||||
|
.nfs*
|
||||||
|
### Xcode template
|
||||||
|
# Xcode
|
||||||
|
#
|
||||||
|
# gitignore contributors: remember to update Global/Xcode.gitignore, Objective-C.gitignore & Swift.gitignore
|
||||||
|
|
||||||
|
## User settings
|
||||||
|
xcuserdata/
|
||||||
|
|
||||||
|
## compatibility with Xcode 8 and earlier (ignoring not required starting Xcode 9)
|
||||||
|
*.xcscmblueprint
|
||||||
|
*.xccheckout
|
||||||
|
|
||||||
|
## compatibility with Xcode 3 and earlier (ignoring not required starting Xcode 4)
|
||||||
|
build/
|
||||||
|
DerivedData/
|
||||||
|
*.moved-aside
|
||||||
|
*.pbxuser
|
||||||
|
!default.pbxuser
|
||||||
|
*.mode1v3
|
||||||
|
!default.mode1v3
|
||||||
|
*.mode2v3
|
||||||
|
!default.mode2v3
|
||||||
|
*.perspectivev3
|
||||||
|
!default.perspectivev3
|
||||||
|
### VisualStudioCode template
|
||||||
|
.vscode/*
|
||||||
|
!.vscode/settings.json
|
||||||
|
!.vscode/tasks.json
|
||||||
|
!.vscode/launch.json
|
||||||
|
!.vscode/extensions.json
|
||||||
|
### C++ template
|
||||||
|
# Prerequisites
|
||||||
|
*.d
|
||||||
|
|
||||||
|
# Compiled Object files
|
||||||
|
*.slo
|
||||||
|
*.lo
|
||||||
|
*.o
|
||||||
|
|
||||||
|
# Precompiled Headers
|
||||||
|
*.gch
|
||||||
|
|
||||||
|
# Compiled Dynamic libraries
|
||||||
|
*.so
|
||||||
|
*.dylib
|
||||||
|
*.dll
|
||||||
|
|
||||||
|
# Fortran module files
|
||||||
|
*.mod
|
||||||
|
*.smod
|
||||||
|
|
||||||
|
# Compiled Static libraries
|
||||||
|
*.lai
|
||||||
|
*.la
|
||||||
|
*.a
|
||||||
|
*.lib
|
||||||
|
|
||||||
|
# Executables
|
||||||
|
*.exe
|
||||||
|
*.out
|
||||||
|
*.app
|
||||||
|
### MonoDevelop template
|
||||||
|
#User Specific
|
||||||
|
*.usertasks
|
||||||
|
|
||||||
|
#Mono Project Files
|
||||||
|
*.resources
|
||||||
|
test-results/
|
||||||
|
### GPG template
|
||||||
|
secring.*
|
||||||
|
|
||||||
|
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
|
||||||
|
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839
|
||||||
|
|
||||||
|
# User-specific stuff
|
||||||
|
.idea/**/workspace.xml
|
||||||
|
.idea/**/tasks.xml
|
||||||
|
.idea/**/usage.statistics.xml
|
||||||
|
.idea/**/dictionaries
|
||||||
|
.idea/**/shelf
|
||||||
|
|
||||||
|
# Generated files
|
||||||
|
.idea/**/contentModel.xml
|
||||||
|
|
||||||
|
# Sensitive or high-churn files
|
||||||
|
.idea/**/dataSources/
|
||||||
|
.idea/**/dataSources.ids
|
||||||
|
.idea/**/dataSources.local.xml
|
||||||
|
.idea/**/sqlDataSources.xml
|
||||||
|
.idea/**/dynamic.xml
|
||||||
|
.idea/**/uiDesigner.xml
|
||||||
|
.idea/**/dbnavigator.xml
|
||||||
|
|
||||||
|
# Gradle
|
||||||
|
.idea/**/gradle.xml
|
||||||
|
.idea/**/libraries
|
||||||
|
|
||||||
|
# Gradle and Maven with auto-import
|
||||||
|
# When using Gradle or Maven with auto-import, you should exclude module files,
|
||||||
|
# since they will be recreated, and may cause churn. Uncomment if using
|
||||||
|
# auto-import.
|
||||||
|
# .idea/artifacts
|
||||||
|
# .idea/compiler.xml
|
||||||
|
# .idea/jarRepositories.xml
|
||||||
|
# .idea/modules.xml
|
||||||
|
# .idea/*.iml
|
||||||
|
# .idea/modules
|
||||||
|
# *.iml
|
||||||
|
# *.ipr
|
||||||
|
|
||||||
|
# CMake
|
||||||
|
cmake-build-*/
|
||||||
|
|
||||||
|
# Mongo Explorer plugin
|
||||||
|
.idea/**/mongoSettings.xml
|
||||||
|
|
||||||
|
# File-based project format
|
||||||
|
*.iws
|
||||||
|
|
||||||
|
# IntelliJ
|
||||||
|
out/
|
||||||
|
|
||||||
|
# mpeltonen/sbt-idea plugin
|
||||||
|
.idea_modules/
|
||||||
|
|
||||||
|
# JIRA plugin
|
||||||
|
atlassian-ide-plugin.xml
|
||||||
|
|
||||||
|
# Cursive Clojure plugin
|
||||||
|
.idea/replstate.xml
|
||||||
|
|
||||||
|
# Crashlytics plugin (for Android Studio and IntelliJ)
|
||||||
|
com_crashlytics_export_strings.xml
|
||||||
|
crashlytics.properties
|
||||||
|
crashlytics-build.properties
|
||||||
|
fabric.properties
|
||||||
|
|
||||||
|
# Editor-based Rest Client
|
||||||
|
.idea/httpRequests
|
||||||
|
|
||||||
|
# Android studio 3.1+ serialized cache file
|
||||||
|
.idea/caches/build_file_checksums.ser
|
||||||
|
|
||||||
|
### CMake template
|
||||||
|
CMakeCache.txt
|
||||||
|
CMakeFiles
|
||||||
|
CMakeScripts
|
||||||
|
Testing
|
||||||
|
Makefile
|
||||||
|
cmake_install.cmake
|
||||||
|
install_manifest.txt
|
||||||
|
compile_commands.json
|
||||||
|
CTestTestfile.cmake
|
||||||
|
### C template
|
||||||
|
# Object files
|
||||||
|
*.ko
|
||||||
|
*.elf
|
||||||
|
|
||||||
|
# Linker output
|
||||||
|
*.map
|
||||||
|
*.exp
|
||||||
|
|
||||||
|
*.so.*
|
||||||
|
|
||||||
|
# Executables
|
||||||
|
*.i*86
|
||||||
|
*.x86_64
|
||||||
|
*.hex
|
||||||
|
|
||||||
|
# Debug files
|
||||||
|
*.dSYM/
|
||||||
|
*.su
|
||||||
|
*.idb
|
||||||
|
|
||||||
|
# Kernel Module Compile Results
|
||||||
|
*.mod*
|
||||||
|
*.cmd
|
||||||
|
.tmp_versions/
|
||||||
|
modules.order
|
||||||
|
Module.symvers
|
||||||
|
Mkfile.old
|
||||||
|
dkms.conf
|
||||||
|
### Windows template
|
||||||
|
# Windows thumbnail cache files
|
||||||
|
Thumbs.db
|
||||||
|
ehthumbs.db
|
||||||
|
ehthumbs_vista.db
|
||||||
|
|
||||||
|
# Dump file
|
||||||
|
*.stackdump
|
||||||
|
|
||||||
|
# Folder config file
|
||||||
|
[Dd]esktop.ini
|
||||||
|
|
||||||
|
# Recycle Bin used on file shares
|
||||||
|
$RECYCLE.BIN/
|
||||||
|
|
||||||
|
# Windows Installer files
|
||||||
|
*.cab
|
||||||
|
*.msi
|
||||||
|
*.msix
|
||||||
|
*.msm
|
||||||
|
*.msp
|
||||||
|
|
||||||
|
# Windows shortcuts
|
||||||
|
*.lnk
|
||||||
|
|
||||||
|
# NuGet Packages Directory
|
||||||
|
packages/
|
||||||
|
## TODO: If the tool you use requires repositories.config uncomment the next line
|
||||||
|
#!packages/repositories.config
|
||||||
|
|
||||||
|
# Enable "build/" folder in the NuGet Packages folder since NuGet packages use it for MSBuild targets
|
||||||
|
# This line needs to be after the ignore of the build folder (and the packages folder if the line above has been uncommented)
|
||||||
|
!packages/build/
|
||||||
|
|
||||||
|
|
||||||
|
# Others
|
||||||
|
sql/
|
||||||
|
*.Cache
|
||||||
|
|
||||||
|
# Visual Studio 2017
|
||||||
|
.vs
|
||||||
|
|
||||||
|
workspace.xml
|
||||||
|
cmake-build-debug
|
||||||
|
### macOS template
|
||||||
|
# General
|
||||||
|
.DS_Store
|
||||||
|
.AppleDouble
|
||||||
|
.LSOverride
|
||||||
|
|
||||||
|
# Icon must end with two \r
|
||||||
|
Icon
|
||||||
|
|
||||||
|
# Thumbnails
|
||||||
|
._*
|
||||||
|
|
||||||
|
# Files that might appear in the root of a volume
|
||||||
|
.DocumentRevisions-V100
|
||||||
|
.fseventsd
|
||||||
|
.Spotlight-V100
|
||||||
|
.TemporaryItems
|
||||||
|
.Trashes
|
||||||
|
.VolumeIcon.icns
|
||||||
|
.com.apple.timemachine.donotpresent
|
||||||
|
|
||||||
|
# Directories potentially created on remote AFP share
|
||||||
|
.AppleDB
|
||||||
|
.AppleDesktop
|
||||||
|
Network Trash Folder
|
||||||
|
Temporary Items
|
||||||
|
.apdisk
|
||||||
|
|
||||||
|
pkg/**/pkg
|
||||||
|
pkg/**/src
|
||||||
|
pkg/**/*.asc
|
||||||
|
pkg/**/*.sig
|
||||||
|
pkg/**/*.tar.xz
|
||||||
|
pkg/**/*.zip
|
||||||
|
pkg/**/aaru
|
||||||
|
|
||||||
|
.sonarqube
|
||||||
|
|
||||||
|
build/*
|
||||||
66
Aaru.Decryption/Aaru.Decryption.csproj
Normal file
66
Aaru.Decryption/Aaru.Decryption.csproj
Normal file
@@ -0,0 +1,66 @@
|
|||||||
|
<Project Sdk="Microsoft.NET.Sdk">
|
||||||
|
|
||||||
|
<PropertyGroup>
|
||||||
|
<SchemaVersion>2.0</SchemaVersion>
|
||||||
|
<OutputType>Library</OutputType>
|
||||||
|
<RootNamespace>Aaru.Decryption</RootNamespace>
|
||||||
|
<AssemblyName>Aaru.Decryption</AssemblyName>
|
||||||
|
<ReleaseVersion>$(Version)</ReleaseVersion>
|
||||||
|
<GenerateAssemblyInfo>true</GenerateAssemblyInfo>
|
||||||
|
<Version>6.0.0-alpha9</Version>
|
||||||
|
<Company>Claunia.com</Company>
|
||||||
|
<Copyright>Copyright © 2011-2023 Natalia Portillo</Copyright>
|
||||||
|
<Product>Aaru Data Preservation Suite</Product>
|
||||||
|
<Title>Aaru.Decryption</Title>
|
||||||
|
<ApplicationVersion>$(Version)</ApplicationVersion>
|
||||||
|
<TargetFramework>net8.0</TargetFramework>
|
||||||
|
<LangVersion>12</LangVersion>
|
||||||
|
<Description>Decryption algorithms used by the Aaru Data Preservation Suite.</Description>
|
||||||
|
<PackageProjectUrl>https://github.com/aaru-dps/</PackageProjectUrl>
|
||||||
|
<PackageLicenseExpression>MIT</PackageLicenseExpression>
|
||||||
|
<RepositoryUrl>https://github.com/aaru-dps/Aaru.Decryption</RepositoryUrl>
|
||||||
|
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
||||||
|
<NeutralLanguage>en-US</NeutralLanguage>
|
||||||
|
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
||||||
|
<IncludeSymbols>true</IncludeSymbols>
|
||||||
|
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
|
||||||
|
<Authors>Rebecca Wallander <sakcheen@gmail.com></Authors>
|
||||||
|
<Nullable>enable</Nullable>
|
||||||
|
<DisableImplicitNamespaceImports>true</DisableImplicitNamespaceImports>
|
||||||
|
<EnableTrimAnalyzer>true</EnableTrimAnalyzer>
|
||||||
|
</PropertyGroup>
|
||||||
|
<PropertyGroup Condition=" '$(Configuration)' == 'Debug' ">
|
||||||
|
<NoWarn>CS1591;CS1574</NoWarn>
|
||||||
|
</PropertyGroup>
|
||||||
|
<ItemGroup Condition=" '$(Configuration)' == 'Debug' ">
|
||||||
|
<InternalsVisibleTo Include="Aaru.Tests"/>
|
||||||
|
<InternalsVisibleTo Include="Aaru.Tests.Devices"/>
|
||||||
|
</ItemGroup>
|
||||||
|
<PropertyGroup>
|
||||||
|
<NrtRevisionFormat>$(Version)+{chash:8}</NrtRevisionFormat>
|
||||||
|
<NrtResolveSimpleAttributes>true</NrtResolveSimpleAttributes>
|
||||||
|
<NrtShowRevision>true</NrtShowRevision>
|
||||||
|
</PropertyGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<ProjectReference Include="..\Aaru.Decoders\Aaru.Decoders.csproj"/>
|
||||||
|
<ProjectReference Include="..\Aaru.Devices\Aaru.Devices.csproj"/>
|
||||||
|
<ProjectReference Include="..\Aaru.Images\Aaru.Images.csproj"/>
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<EmbeddedResource Update="Localization\Localization.resx">
|
||||||
|
<Generator>ResXFileCodeGenerator</Generator>
|
||||||
|
<LastGenOutput>Localization.Designer.cs</LastGenOutput>
|
||||||
|
</EmbeddedResource>
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
<ItemGroup>
|
||||||
|
<Compile Update="Localization\Localization.Designer.cs">
|
||||||
|
<DesignTime>True</DesignTime>
|
||||||
|
<AutoGen>True</AutoGen>
|
||||||
|
<DependentUpon>Localization.resx</DependentUpon>
|
||||||
|
</Compile>
|
||||||
|
</ItemGroup>
|
||||||
|
|
||||||
|
</Project>
|
||||||
5
Aaru.Decryption/Aaru.Decryption.csproj.DotSettings
Normal file
5
Aaru.Decryption/Aaru.Decryption.csproj.DotSettings
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<wpf:ResourceDictionary xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||||||
|
xmlns:s="clr-namespace:System;assembly=mscorlib"
|
||||||
|
xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||||||
|
xml:space="preserve">
|
||||||
|
<s:Boolean x:Key="/Default/CodeInspection/NamespaceProvider/NamespaceFoldersToSkip/=localization/@EntryIndexedValue">True</s:Boolean></wpf:ResourceDictionary>
|
||||||
1060
Aaru.Decryption/DVD/CSS.cs
Normal file
1060
Aaru.Decryption/DVD/CSS.cs
Normal file
File diff suppressed because it is too large
Load Diff
472
Aaru.Decryption/DVD/Dump.cs
Normal file
472
Aaru.Decryption/DVD/Dump.cs
Normal file
@@ -0,0 +1,472 @@
|
|||||||
|
// /***************************************************************************
|
||||||
|
// Aaru Data Preservation Suite
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
//
|
||||||
|
// Filename : Dump.cs
|
||||||
|
// Author(s) : Rebecca Wallander <sakcheen+github@gmail.com>
|
||||||
|
//
|
||||||
|
// --[ Description ] ----------------------------------------------------------
|
||||||
|
//
|
||||||
|
// SCSI read commands related to Content Scrambling System.
|
||||||
|
//
|
||||||
|
// --[ License ] --------------------------------------------------------------
|
||||||
|
//
|
||||||
|
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
|
// copy of this software and associated documentation files (the
|
||||||
|
// "Software"), to deal in the Software without restriction, including
|
||||||
|
// without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
|
// permit persons to whom the Software is furnished to do so, subject to
|
||||||
|
// the following conditions:
|
||||||
|
//
|
||||||
|
// The above copyright notice and this permission notice shall be included
|
||||||
|
// in all copies or substantial portions of the Software.
|
||||||
|
//
|
||||||
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
|
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||||
|
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||||
|
// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
|
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||||
|
// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
//
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
// Copyright © 2020-2023 Rebecca Wallander
|
||||||
|
// ****************************************************************************/
|
||||||
|
|
||||||
|
using System;
|
||||||
|
using System.Linq;
|
||||||
|
using Aaru.Console;
|
||||||
|
using Aaru.Decoders.DVD;
|
||||||
|
using Aaru.Devices;
|
||||||
|
|
||||||
|
namespace Aaru.Decryption.DVD;
|
||||||
|
|
||||||
|
public sealed class Dump(Device dev)
|
||||||
|
{
|
||||||
|
const byte KEY_SIZE = 5;
|
||||||
|
const byte CHALLENGE_SIZE = 2 * KEY_SIZE;
|
||||||
|
const string MODULE_NAME = "DVD decryption";
|
||||||
|
|
||||||
|
public byte Agid { get; private set; }
|
||||||
|
public byte[] BusKey { get; private set; } = Array.Empty<byte>();
|
||||||
|
|
||||||
|
/// <summary>Returns the Authentication Success Flag of the logical unit.</summary>
|
||||||
|
/// <returns><c>true</c> if the command failed and <paramref name="senseBuffer" /> contains the sense buffer.</returns>
|
||||||
|
/// <param name="buffer">Buffer where the Authentication Success Flag will be stored.</param>
|
||||||
|
/// <param name="senseBuffer">Sense buffer.</param>
|
||||||
|
/// <param name="keyClass">Key class.</param>
|
||||||
|
/// <param name="timeout">Timeout in seconds.</param>
|
||||||
|
/// <param name="duration">Duration in milliseconds it took for the device to execute the command.</param>
|
||||||
|
public bool ReadAsf(out byte[] buffer, out byte[] senseBuffer, DvdCssKeyClass keyClass, uint timeout,
|
||||||
|
out double duration)
|
||||||
|
{
|
||||||
|
senseBuffer = new byte[64];
|
||||||
|
var cdb = new byte[12];
|
||||||
|
buffer = new byte[8];
|
||||||
|
|
||||||
|
cdb[0] = (byte)ScsiCommands.ReportKey;
|
||||||
|
cdb[7] = (byte)keyClass;
|
||||||
|
cdb[8] = (byte)((buffer.Length & 0xFF00) >> 8);
|
||||||
|
cdb[9] = (byte)(buffer.Length & 0xFF);
|
||||||
|
cdb[10] = (byte)((byte)CssReportKeyFormat.Asf ^ (Agid & 0x03) << 6);
|
||||||
|
|
||||||
|
dev.SendScsiCommand(cdb, ref buffer, out senseBuffer, timeout, ScsiDirection.In, out duration, out bool sense);
|
||||||
|
|
||||||
|
AaruConsole.DebugWriteLine(MODULE_NAME, Localization.REPORT_ASF_AGID_1_Sense_2_Last_Error_3_took_0_ms, duration,
|
||||||
|
Agid, sense, dev.LastError);
|
||||||
|
|
||||||
|
return sense;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Returns the Regional Playback Control State of the logical unit.</summary>
|
||||||
|
/// <returns><c>true</c> if the command failed and <paramref name="senseBuffer" /> contains the sense buffer.</returns>
|
||||||
|
/// <param name="buffer">Buffer where the Regional Playback Control State will be stored.</param>
|
||||||
|
/// <param name="senseBuffer">Sense buffer.</param>
|
||||||
|
/// <param name="keyClass">Key class.</param>
|
||||||
|
/// <param name="timeout">Timeout in seconds.</param>
|
||||||
|
/// <param name="duration">Duration in milliseconds it took for the device to execute the command.</param>
|
||||||
|
public bool ReadRpc(out byte[] buffer, out byte[] senseBuffer, DvdCssKeyClass keyClass, uint timeout,
|
||||||
|
out double duration)
|
||||||
|
{
|
||||||
|
senseBuffer = new byte[64];
|
||||||
|
var cdb = new byte[12];
|
||||||
|
buffer = new byte[8];
|
||||||
|
|
||||||
|
cdb[0] = (byte)ScsiCommands.ReportKey;
|
||||||
|
cdb[7] = (byte)keyClass;
|
||||||
|
cdb[8] = (byte)((buffer.Length & 0xFF00) >> 8);
|
||||||
|
cdb[9] = (byte)(buffer.Length & 0xFF);
|
||||||
|
cdb[10] = (byte)((byte)CssReportKeyFormat.RpcState ^ (Agid & 0x03) << 6);
|
||||||
|
|
||||||
|
dev.SendScsiCommand(cdb, ref buffer, out senseBuffer, timeout, ScsiDirection.In, out duration, out bool sense);
|
||||||
|
|
||||||
|
AaruConsole.DebugWriteLine(MODULE_NAME, Localization.REPORT_ASF_AGID_1_Sense_2_Last_Error_3_took_0_ms, duration,
|
||||||
|
Agid, sense, dev.LastError);
|
||||||
|
|
||||||
|
return sense;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Invalidates an Authentication Grant ID.</summary>
|
||||||
|
/// <param name="buffer">Buffer where the Regional Playback Control State will be stored.</param>
|
||||||
|
/// <param name="senseBuffer">Sense buffer.</param>
|
||||||
|
/// <param name="keyClass">Key class.</param>
|
||||||
|
/// <param name="timeout">Timeout in seconds.</param>
|
||||||
|
/// <param name="duration">Duration in milliseconds it took for the device to execute the command.</param>
|
||||||
|
/// <returns><c>true</c> if the command failed and <paramref name="senseBuffer" /> contains the sense buffer.</returns>
|
||||||
|
public bool InvalidateAgid(out byte[] buffer, out byte[] senseBuffer, DvdCssKeyClass keyClass, uint timeout,
|
||||||
|
out double duration)
|
||||||
|
{
|
||||||
|
senseBuffer = new byte[64];
|
||||||
|
var cdb = new byte[12];
|
||||||
|
buffer = Array.Empty<byte>();
|
||||||
|
|
||||||
|
cdb[0] = (byte)ScsiCommands.ReportKey;
|
||||||
|
cdb[7] = (byte)keyClass;
|
||||||
|
cdb[8] = (byte)((buffer.Length & 0xFF00) >> 8);
|
||||||
|
cdb[9] = (byte)(buffer.Length & 0xFF);
|
||||||
|
cdb[10] = (byte)((byte)CssReportKeyFormat.InvalidateAgid ^ (Agid & 0x03) << 6);
|
||||||
|
|
||||||
|
dev.SendScsiCommand(cdb, ref buffer, out senseBuffer, timeout, ScsiDirection.In, out duration, out bool sense);
|
||||||
|
|
||||||
|
AaruConsole.DebugWriteLine(MODULE_NAME, Localization.INVALIDATE_AGID_AGID_1_Sense_2_Last_Error_3_took_0_ms,
|
||||||
|
duration, Agid, sense, dev.LastError);
|
||||||
|
|
||||||
|
return sense;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Returns a valid Authentication Grant ID for CSS/CPPM.</summary>
|
||||||
|
/// <param name="buffer">Buffer where the Regional Playback Control State will be stored.</param>
|
||||||
|
/// <param name="senseBuffer">Sense buffer.</param>
|
||||||
|
/// <param name="keyClass">Key class.</param>
|
||||||
|
/// <param name="timeout">Timeout in seconds.</param>
|
||||||
|
/// <param name="duration">Duration in milliseconds it took for the device to execute the command.</param>
|
||||||
|
/// <returns><c>true</c> if the command failed and <paramref name="senseBuffer" /> contains the sense buffer.</returns>
|
||||||
|
public bool ReportAgidCssCppm(out byte[] buffer, out byte[] senseBuffer, DvdCssKeyClass keyClass, uint timeout,
|
||||||
|
out double duration)
|
||||||
|
{
|
||||||
|
senseBuffer = new byte[64];
|
||||||
|
var cdb = new byte[12];
|
||||||
|
buffer = new byte[8];
|
||||||
|
|
||||||
|
cdb[0] = (byte)ScsiCommands.ReportKey;
|
||||||
|
cdb[7] = (byte)keyClass;
|
||||||
|
cdb[8] = (byte)((buffer.Length & 0xFF00) >> 8);
|
||||||
|
cdb[9] = (byte)(buffer.Length & 0xFF);
|
||||||
|
cdb[10] = (byte)((byte)CssReportKeyFormat.AgidForCssCppm ^ (Agid & 0x03) << 6);
|
||||||
|
|
||||||
|
dev.SendScsiCommand(cdb, ref buffer, out senseBuffer, timeout, ScsiDirection.In, out duration, out bool sense);
|
||||||
|
|
||||||
|
AaruConsole.DebugWriteLine(MODULE_NAME, Localization.REPORT_AGID_CSS_CPPM_AGID_1_Sense_2_Last_Error_3_took_0_ms,
|
||||||
|
duration, Agid, sense, dev.LastError);
|
||||||
|
|
||||||
|
return sense;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Returns KEY1 from the logical unit.</summary>
|
||||||
|
/// <param name="buffer">Buffer where the Regional Playback Control State will be stored.</param>
|
||||||
|
/// <param name="senseBuffer">Sense buffer.</param>
|
||||||
|
/// <param name="keyClass">Key class.</param>
|
||||||
|
/// <param name="timeout">Timeout in seconds.</param>
|
||||||
|
/// <param name="duration">Duration in milliseconds it took for the device to execute the command.</param>
|
||||||
|
/// <returns><c>true</c> if the command failed and <paramref name="senseBuffer" /> contains the sense buffer.</returns>
|
||||||
|
public bool ReportKey1(out byte[] buffer, out byte[] senseBuffer, DvdCssKeyClass keyClass, uint timeout,
|
||||||
|
out double duration)
|
||||||
|
{
|
||||||
|
senseBuffer = new byte[64];
|
||||||
|
var cdb = new byte[12];
|
||||||
|
buffer = new byte[12];
|
||||||
|
|
||||||
|
cdb[0] = (byte)ScsiCommands.ReportKey;
|
||||||
|
cdb[7] = (byte)keyClass;
|
||||||
|
cdb[8] = (byte)((buffer.Length & 0xFF00) >> 8);
|
||||||
|
cdb[9] = (byte)(buffer.Length & 0xFF);
|
||||||
|
cdb[10] = (byte)((byte)CssReportKeyFormat.Key1 ^ (Agid & 0x03) << 6);
|
||||||
|
|
||||||
|
dev.SendScsiCommand(cdb, ref buffer, out senseBuffer, timeout, ScsiDirection.In, out duration, out bool sense);
|
||||||
|
|
||||||
|
AaruConsole.DebugWriteLine(MODULE_NAME, Localization.REPORT_KEY1_AGID_1_Sense_2_Last_Error_3_took_0_ms,
|
||||||
|
duration, Agid, sense, dev.LastError);
|
||||||
|
|
||||||
|
return sense;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Returns the challenge from the logical unit.</summary>
|
||||||
|
/// <param name="buffer">Buffer where the Regional Playback Control State will be stored.</param>
|
||||||
|
/// <param name="senseBuffer">Sense buffer.</param>
|
||||||
|
/// <param name="keyClass">Key class.</param>
|
||||||
|
/// <param name="timeout">Timeout in seconds.</param>
|
||||||
|
/// <param name="duration">Duration in milliseconds it took for the device to execute the command.</param>
|
||||||
|
/// <returns><c>true</c> if the command failed and <paramref name="senseBuffer" /> contains the sense buffer.</returns>
|
||||||
|
public bool ReportChallenge(out byte[] buffer, out byte[] senseBuffer, DvdCssKeyClass keyClass, uint timeout,
|
||||||
|
out double duration)
|
||||||
|
{
|
||||||
|
senseBuffer = new byte[64];
|
||||||
|
var cdb = new byte[12];
|
||||||
|
buffer = new byte[16];
|
||||||
|
|
||||||
|
cdb[0] = (byte)ScsiCommands.ReportKey;
|
||||||
|
cdb[7] = (byte)keyClass;
|
||||||
|
cdb[8] = (byte)((buffer.Length & 0xFF00) >> 8);
|
||||||
|
cdb[9] = (byte)(buffer.Length & 0xFF);
|
||||||
|
cdb[10] = (byte)((byte)CssReportKeyFormat.ChallengeKey ^ (Agid & 0x03) << 6);
|
||||||
|
|
||||||
|
dev.SendScsiCommand(cdb, ref buffer, out senseBuffer, timeout, ScsiDirection.In, out duration, out bool sense);
|
||||||
|
|
||||||
|
AaruConsole.DebugWriteLine(MODULE_NAME, Localization.REPORT_CHALLENGE_AGID_1_Sense_2_Last_Error_3_took_0_ms,
|
||||||
|
duration, Agid, sense, dev.LastError);
|
||||||
|
|
||||||
|
return sense;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Send a challenge to the logical unit.</summary>
|
||||||
|
/// <param name="buffer">Buffer where the Regional Playback Control State will be stored.</param>
|
||||||
|
/// <param name="senseBuffer">Sense buffer.</param>
|
||||||
|
/// <param name="keyClass">Key class.</param>
|
||||||
|
/// <param name="challengeKey">The challenge; can be any 10 bytes.</param>
|
||||||
|
/// <param name="timeout">Timeout in seconds.</param>
|
||||||
|
/// <param name="duration">Duration in milliseconds it took for the device to execute the command.</param>
|
||||||
|
/// <returns><c>true</c> if the command failed and <paramref name="senseBuffer" /> contains the sense buffer.</returns>
|
||||||
|
public bool SendChallenge(out byte[] buffer, out byte[] senseBuffer, DvdCssKeyClass keyClass, byte[] challengeKey,
|
||||||
|
uint timeout, out double duration)
|
||||||
|
{
|
||||||
|
senseBuffer = new byte[64];
|
||||||
|
var cdb = new byte[12];
|
||||||
|
buffer = new byte[16];
|
||||||
|
|
||||||
|
cdb[0] = (byte)ScsiCommands.SendKey;
|
||||||
|
cdb[7] = (byte)keyClass;
|
||||||
|
cdb[8] = (byte)((buffer.Length & 0xFF00) >> 8);
|
||||||
|
cdb[9] = (byte)(buffer.Length & 0xFF);
|
||||||
|
cdb[10] = (byte)((byte)CssSendKeyFormat.ChallengeKey ^ (Agid & 0x03) << 6);
|
||||||
|
buffer[0] = (byte)((buffer.Length - 2 & 0xFF00) >> 8);
|
||||||
|
buffer[1] = (byte)(buffer.Length - 2 & 0xFF);
|
||||||
|
buffer[4] = challengeKey[9];
|
||||||
|
buffer[5] = challengeKey[8];
|
||||||
|
buffer[6] = challengeKey[7];
|
||||||
|
buffer[7] = challengeKey[6];
|
||||||
|
buffer[8] = challengeKey[5];
|
||||||
|
buffer[9] = challengeKey[4];
|
||||||
|
buffer[10] = challengeKey[3];
|
||||||
|
buffer[11] = challengeKey[2];
|
||||||
|
buffer[12] = challengeKey[1];
|
||||||
|
buffer[13] = challengeKey[0];
|
||||||
|
|
||||||
|
dev.SendScsiCommand(cdb, ref buffer, out senseBuffer, timeout, ScsiDirection.Out, out duration, out bool sense);
|
||||||
|
|
||||||
|
AaruConsole.DebugWriteLine(MODULE_NAME,
|
||||||
|
Localization.SEND_CHALLENGE_AGID_1_Challenge_2_Sense_3_Last_Error_4_took_0_ms,
|
||||||
|
duration, Agid, challengeKey, sense, dev.LastError);
|
||||||
|
|
||||||
|
return sense;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Send KEY2 to the logical unit.</summary>
|
||||||
|
/// <param name="buffer">Buffer where the Regional Playback Control State will be stored.</param>
|
||||||
|
/// <param name="senseBuffer">Sense buffer.</param>
|
||||||
|
/// <param name="keyClass">Key class.</param>
|
||||||
|
/// <param name="key2">The KEY2 message.</param>
|
||||||
|
/// <param name="timeout">Timeout in seconds.</param>
|
||||||
|
/// <param name="duration">Duration in milliseconds it took for the device to execute the command.</param>
|
||||||
|
/// <returns><c>true</c> if the command failed and <paramref name="senseBuffer" /> contains the sense buffer.</returns>
|
||||||
|
public bool SendKey2(out byte[] buffer, out byte[] senseBuffer, DvdCssKeyClass keyClass, byte[] key2, uint timeout,
|
||||||
|
out double duration)
|
||||||
|
{
|
||||||
|
senseBuffer = new byte[64];
|
||||||
|
var cdb = new byte[12];
|
||||||
|
buffer = new byte[12];
|
||||||
|
|
||||||
|
cdb[0] = (byte)ScsiCommands.SendKey;
|
||||||
|
cdb[7] = (byte)keyClass;
|
||||||
|
cdb[8] = (byte)((buffer.Length & 0xFF00) >> 8);
|
||||||
|
cdb[9] = (byte)(buffer.Length & 0xFF);
|
||||||
|
cdb[10] = (byte)((byte)CssSendKeyFormat.Key2 ^ (Agid & 0x03) << 6);
|
||||||
|
buffer[0] = (byte)((buffer.Length - 2 & 0xFF00) >> 8);
|
||||||
|
buffer[1] = (byte)(buffer.Length - 2 & 0xFF);
|
||||||
|
buffer[4] = key2[4];
|
||||||
|
buffer[5] = key2[3];
|
||||||
|
buffer[6] = key2[2];
|
||||||
|
buffer[7] = key2[1];
|
||||||
|
buffer[8] = key2[0];
|
||||||
|
|
||||||
|
dev.SendScsiCommand(cdb, ref buffer, out senseBuffer, timeout, ScsiDirection.Out, out duration, out bool sense);
|
||||||
|
|
||||||
|
AaruConsole.DebugWriteLine(MODULE_NAME,
|
||||||
|
Localization.SEND_CHALLENGE_AGID_1_KEY2_2_Sense_3_Last_Error_4_took_0_ms, duration,
|
||||||
|
Agid, key2, sense, dev.LastError);
|
||||||
|
|
||||||
|
return sense;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Returns the encrypted disc key of the MMC logical unit</summary>
|
||||||
|
/// <returns><c>true</c> if the command failed and <paramref name="senseBuffer" /> contains the sense buffer.</returns>
|
||||||
|
/// <param name="buffer">Buffer where the bus key will be stored</param>
|
||||||
|
/// <param name="senseBuffer">Sense buffer.</param>
|
||||||
|
/// <param name="timeout">Timeout in seconds.</param>
|
||||||
|
/// <param name="duration">Duration in milliseconds it took for the device to execute the command.</param>
|
||||||
|
public bool ReadDiscKey(out byte[] buffer, out byte[] senseBuffer, uint timeout, out double duration)
|
||||||
|
{
|
||||||
|
senseBuffer = new byte[64];
|
||||||
|
var cdb = new byte[12];
|
||||||
|
buffer = new byte[2052];
|
||||||
|
|
||||||
|
cdb[0] = (byte)ScsiCommands.ReadDiscStructure;
|
||||||
|
cdb[1] = (byte)MmcDiscStructureMediaType.Dvd & 0x0F;
|
||||||
|
cdb[6] = 0;
|
||||||
|
cdb[7] = (byte)MmcDiscStructureFormat.DiscKey;
|
||||||
|
cdb[8] = (byte)((buffer.Length & 0xFF00) >> 8);
|
||||||
|
cdb[9] = (byte)(buffer.Length & 0xFF);
|
||||||
|
cdb[10] = (byte)((Agid & 0x03) << 6);
|
||||||
|
|
||||||
|
dev.SendScsiCommand(cdb, ref buffer, out senseBuffer, timeout, ScsiDirection.In, out duration, out bool sense);
|
||||||
|
|
||||||
|
return sense;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Returns the bus key of the MMC logical unit</summary>
|
||||||
|
/// <returns><c>true</c> if the command failed and <paramref name="senseBuffer" /> contains the sense buffer.</returns>
|
||||||
|
/// <param name="buffer">Buffer where the bus key will be stored</param>
|
||||||
|
/// <param name="senseBuffer">Sense buffer.</param>
|
||||||
|
/// <param name="protectionType">The type of protection the logical unit reports</param>
|
||||||
|
/// <param name="timeout">Timeout in seconds.</param>
|
||||||
|
/// <param name="duration">Duration in milliseconds it took for the device to execute the command.</param>
|
||||||
|
public bool ReadBusKey(out byte[] buffer, out byte[] senseBuffer, CopyrightType protectionType, uint timeout,
|
||||||
|
out double duration)
|
||||||
|
{
|
||||||
|
duration = 0;
|
||||||
|
buffer = Array.Empty<byte>();
|
||||||
|
senseBuffer = new byte[64];
|
||||||
|
|
||||||
|
var sense = false;
|
||||||
|
var challenge = new byte[CHALLENGE_SIZE];
|
||||||
|
var key1 = new byte[KEY_SIZE];
|
||||||
|
byte variant = 0;
|
||||||
|
|
||||||
|
for(byte i = 0; i < 4; i++)
|
||||||
|
{
|
||||||
|
// Invalidate AGID to reset any previous drive communications
|
||||||
|
Agid = i;
|
||||||
|
|
||||||
|
sense = InvalidateAgid(out buffer, out senseBuffer, DvdCssKeyClass.DvdCssCppmOrCprm, timeout, out duration);
|
||||||
|
|
||||||
|
switch(protectionType)
|
||||||
|
{
|
||||||
|
// Get AGID
|
||||||
|
case CopyrightType.CSS:
|
||||||
|
sense = ReportAgidCssCppm(out buffer, out senseBuffer, DvdCssKeyClass.DvdCssCppmOrCprm, timeout,
|
||||||
|
out duration);
|
||||||
|
|
||||||
|
break;
|
||||||
|
case CopyrightType.CPRM:
|
||||||
|
throw new NotImplementedException();
|
||||||
|
}
|
||||||
|
|
||||||
|
if(sense)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
Agid = (byte)(buffer[7] >> 6);
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(sense)
|
||||||
|
return true;
|
||||||
|
|
||||||
|
for(byte i = 0; i < CHALLENGE_SIZE; i++)
|
||||||
|
challenge[i] = i;
|
||||||
|
|
||||||
|
sense = SendChallenge(out buffer, out senseBuffer, DvdCssKeyClass.DvdCssCppmOrCprm, challenge, timeout,
|
||||||
|
out duration);
|
||||||
|
|
||||||
|
if(sense)
|
||||||
|
return true;
|
||||||
|
|
||||||
|
sense = ReportKey1(out buffer, out senseBuffer, DvdCssKeyClass.DvdCssCppmOrCprm, timeout, out duration);
|
||||||
|
|
||||||
|
if(sense)
|
||||||
|
return true;
|
||||||
|
|
||||||
|
for(byte i = 0; i < KEY_SIZE; i++)
|
||||||
|
key1[i] = buffer[8 - i];
|
||||||
|
|
||||||
|
for(byte i = 0; i < 32; i++)
|
||||||
|
{
|
||||||
|
CSS.EncryptKey(DvdCssKeyType.Key1, i, challenge, out byte[] keyCheck);
|
||||||
|
|
||||||
|
if(key1.SequenceEqual(keyCheck))
|
||||||
|
{
|
||||||
|
variant = i;
|
||||||
|
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if(i < 31)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
senseBuffer = Array.Empty<byte>();
|
||||||
|
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
sense = ReportChallenge(out buffer, out senseBuffer, DvdCssKeyClass.DvdCssCppmOrCprm, timeout, out duration);
|
||||||
|
|
||||||
|
if(sense)
|
||||||
|
return true;
|
||||||
|
|
||||||
|
for(byte i = 0; i < CHALLENGE_SIZE; i++)
|
||||||
|
challenge[i] = buffer[13 - i];
|
||||||
|
|
||||||
|
CSS.EncryptKey(DvdCssKeyType.Key2, variant, challenge, out byte[] key2);
|
||||||
|
|
||||||
|
sense = SendKey2(out buffer, out senseBuffer, DvdCssKeyClass.DvdCssCppmOrCprm, key2, timeout, out duration);
|
||||||
|
|
||||||
|
if(sense)
|
||||||
|
return true;
|
||||||
|
|
||||||
|
key1.CopyTo(challenge, 0);
|
||||||
|
key2.CopyTo(challenge, key1.Length);
|
||||||
|
CSS.EncryptKey(DvdCssKeyType.BusKey, variant, challenge, out buffer);
|
||||||
|
|
||||||
|
BusKey = buffer;
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>Reads a title key for a sector on the disc.</summary>
|
||||||
|
/// <param name="buffer">Buffer where the bus key will be stored</param>
|
||||||
|
/// <param name="senseBuffer">Sense buffer.</param>
|
||||||
|
/// <param name="keyClass">Key class.</param>
|
||||||
|
/// <param name="address">The sector address to get the key for.</param>
|
||||||
|
/// <param name="timeout">Timeout in seconds.</param>
|
||||||
|
/// <param name="duration">Duration in milliseconds it took for the device to execute the command.</param>
|
||||||
|
/// <returns><c>true</c> if the command failed and <paramref name="senseBuffer" /> contains the sense buffer.</returns>
|
||||||
|
public bool ReadTitleKey(out byte[] buffer, out byte[] senseBuffer, DvdCssKeyClass keyClass, ulong address,
|
||||||
|
uint timeout, out double duration)
|
||||||
|
{
|
||||||
|
// We need to be in a bus key state to read title keys. Only CSS has title keys.
|
||||||
|
ReadBusKey(out buffer, out senseBuffer, CopyrightType.CSS, timeout, out duration);
|
||||||
|
|
||||||
|
BusKey = buffer;
|
||||||
|
|
||||||
|
senseBuffer = new byte[64];
|
||||||
|
var cdb = new byte[12];
|
||||||
|
buffer = new byte[12];
|
||||||
|
|
||||||
|
cdb[0] = (byte)ScsiCommands.ReportKey;
|
||||||
|
cdb[2] = (byte)((address & 0xFF000000) >> 24);
|
||||||
|
cdb[3] = (byte)((address & 0xFF0000) >> 16);
|
||||||
|
cdb[4] = (byte)((address & 0xFF00) >> 8);
|
||||||
|
cdb[5] = (byte)(address & 0xFF);
|
||||||
|
cdb[7] = (byte)keyClass;
|
||||||
|
cdb[8] = (byte)((buffer.Length & 0xFF00) >> 8);
|
||||||
|
cdb[9] = (byte)(buffer.Length & 0xFF);
|
||||||
|
cdb[10] = (byte)((byte)CssReportKeyFormat.TitleKey ^ (Agid & 0x03) << 6);
|
||||||
|
|
||||||
|
dev.SendScsiCommand(cdb, ref buffer, out senseBuffer, timeout, ScsiDirection.In, out duration, out bool sense);
|
||||||
|
|
||||||
|
AaruConsole.DebugWriteLine(MODULE_NAME, Localization.GET_TITLE_KEY_AGID_1_LBA_2_Sense_3_took_0_ms, duration,
|
||||||
|
Agid, address, sense);
|
||||||
|
|
||||||
|
return sense;
|
||||||
|
}
|
||||||
|
}
|
||||||
168
Aaru.Decryption/DVD/MPEG.cs
Normal file
168
Aaru.Decryption/DVD/MPEG.cs
Normal file
@@ -0,0 +1,168 @@
|
|||||||
|
// /***************************************************************************
|
||||||
|
// Aaru Data Preservation Suite
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
//
|
||||||
|
// Filename : MPEG.cs
|
||||||
|
// Author(s) : Rebecca Wallander <sakcheen+github@gmail.com>
|
||||||
|
//
|
||||||
|
// --[ Description ] ----------------------------------------------------------
|
||||||
|
//
|
||||||
|
// Handles MPEG packets functionality.
|
||||||
|
//
|
||||||
|
// --[ License ] --------------------------------------------------------------
|
||||||
|
//
|
||||||
|
// Permission is hereby granted, free of charge, to any person obtaining a
|
||||||
|
// copy of this software and associated documentation files (the
|
||||||
|
// "Software"), to deal in the Software without restriction, including
|
||||||
|
// without limitation the rights to use, copy, modify, merge, publish,
|
||||||
|
// distribute, sublicense, and/or sell copies of the Software, and to
|
||||||
|
// permit persons to whom the Software is furnished to do so, subject to
|
||||||
|
// the following conditions:
|
||||||
|
//
|
||||||
|
// The above copyright notice and this permission notice shall be included
|
||||||
|
// in all copies or substantial portions of the Software.
|
||||||
|
//
|
||||||
|
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
|
// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||||
|
// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
||||||
|
// IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
||||||
|
// CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
||||||
|
// TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
||||||
|
// SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||||
|
//
|
||||||
|
// ----------------------------------------------------------------------------
|
||||||
|
// Copyright © 2023 Rebecca Wallander
|
||||||
|
// ****************************************************************************/
|
||||||
|
|
||||||
|
// http://www.mpucoder.com/DVD/vobov.html
|
||||||
|
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using System.Diagnostics.CodeAnalysis;
|
||||||
|
using System.Linq;
|
||||||
|
using System.Runtime.InteropServices;
|
||||||
|
|
||||||
|
// ReSharper disable UnusedMember.Global
|
||||||
|
|
||||||
|
namespace Aaru.Decryption.DVD;
|
||||||
|
|
||||||
|
[SuppressMessage("ReSharper", "UnusedType.Global")]
|
||||||
|
public class Mpeg
|
||||||
|
{
|
||||||
|
#region Mpeg2StreamId enum
|
||||||
|
|
||||||
|
public enum Mpeg2StreamId : byte
|
||||||
|
{
|
||||||
|
ProgramEnd = 0xB9,
|
||||||
|
PackHeader = 0xBA,
|
||||||
|
SystemHeader = 0xBB,
|
||||||
|
ProgramStreamMap = 0xBC,
|
||||||
|
PrivateStream1 = 0xBD,
|
||||||
|
PaddingStream = 0xBE,
|
||||||
|
PrivateStream2 = 0xBF,
|
||||||
|
EcmStream = 0xF0,
|
||||||
|
EmmStream = 0xF1,
|
||||||
|
ItuTRecH222_0_Or_IsoIec13818_1AnnexA_Or_IsoIec13818_6DsmccStream = 0xF2,
|
||||||
|
IsoIec13522Stream = 0xF3,
|
||||||
|
ItuTRecH222_1TypeA = 0xF4,
|
||||||
|
ItuTRecH222_1TypeB = 0xF5,
|
||||||
|
ItuTRecH222_1TypeC = 0xF6,
|
||||||
|
ItuTRecH222_1TypeD = 0xF7,
|
||||||
|
ItuTRecH222_1TypeE = 0xF8,
|
||||||
|
AncillaryStream = 0xF9,
|
||||||
|
Reserved1 = 0xFA,
|
||||||
|
Reserved2 = 0xFB,
|
||||||
|
Reserved3 = 0xFC,
|
||||||
|
Reserved4 = 0xFD,
|
||||||
|
Reserved5 = 0xFE,
|
||||||
|
ProgramStreamDirectory = 0xFF,
|
||||||
|
|
||||||
|
// DVD Video can only hold 8 audio streams
|
||||||
|
MpegAudioStream1 = 0xC0,
|
||||||
|
MpegAudioStream2 = 0xC1,
|
||||||
|
MpegAudioStream3 = 0xC2,
|
||||||
|
MpegAudioStream4 = 0xC3,
|
||||||
|
MpegAudioStream5 = 0xC4,
|
||||||
|
MpegAudioStream6 = 0xC5,
|
||||||
|
MpegAudioStream7 = 0xC6,
|
||||||
|
MpegAudioStream8 = 0xC7,
|
||||||
|
MpegAudioStream9 = 0xC8,
|
||||||
|
MpegAudioStream10 = 0xC9,
|
||||||
|
MpegAudioStream11 = 0xCA,
|
||||||
|
MpegAudioStream12 = 0xCB,
|
||||||
|
MpegAudioStream13 = 0xCC,
|
||||||
|
MpegAudioStream14 = 0xCD,
|
||||||
|
MpegAudioStream15 = 0xCE,
|
||||||
|
MpegAudioStream16 = 0xCF,
|
||||||
|
MpegAudioStream17 = 0xD0,
|
||||||
|
MpegAudioStream18 = 0xD1,
|
||||||
|
MpegAudioStream19 = 0xD2,
|
||||||
|
MpegAudioStream20 = 0xD3,
|
||||||
|
MpegAudioStream21 = 0xD4,
|
||||||
|
MpegAudioStream22 = 0xD5,
|
||||||
|
MpegAudioStream23 = 0xD6,
|
||||||
|
MpegAudioStream24 = 0xD7,
|
||||||
|
MpegAudioStream25 = 0xD8,
|
||||||
|
MpegAudioStream26 = 0xD9,
|
||||||
|
MpegAudioStream27 = 0xDA,
|
||||||
|
MpegAudioStream28 = 0xDB,
|
||||||
|
MpegAudioStream29 = 0xDC,
|
||||||
|
MpegAudioStream30 = 0xDD,
|
||||||
|
MpegAudioStream31 = 0xDE,
|
||||||
|
MpegAudioStream32 = 0xDF,
|
||||||
|
|
||||||
|
// DVD Video can only hold 1 video stream
|
||||||
|
MpegVideStream1 = 0xE0,
|
||||||
|
MpegVideStream2 = 0xE1,
|
||||||
|
MpegVideStream3 = 0xE2,
|
||||||
|
MpegVideStream4 = 0xE3,
|
||||||
|
MpegVideStream5 = 0xE4,
|
||||||
|
MpegVideStream6 = 0xE5,
|
||||||
|
MpegVideStream7 = 0xE6,
|
||||||
|
MpegVideStream8 = 0xE7,
|
||||||
|
MpegVideStream9 = 0xE8,
|
||||||
|
MpegVideStream10 = 0xE9,
|
||||||
|
MpegVideStream11 = 0xEA,
|
||||||
|
MpegVideStream12 = 0xEB,
|
||||||
|
MpegVideStream13 = 0xEC,
|
||||||
|
MpegVideStream14 = 0xED,
|
||||||
|
MpegVideStream15 = 0xEE,
|
||||||
|
MpegVideStream16 = 0xEF
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
static readonly byte[] _mpeg2PackHeaderStartCode =
|
||||||
|
{
|
||||||
|
0x0, 0x0, 0x1
|
||||||
|
};
|
||||||
|
|
||||||
|
public static bool ContainsMpegPackets(byte[] sectorData, uint blocks = 1, uint blockSize = 2048)
|
||||||
|
{
|
||||||
|
for(uint i = 0; i < blocks; i++)
|
||||||
|
{
|
||||||
|
if(IsMpegPacket(sectorData.Skip((int)(i * blockSize))))
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public static bool IsMpegPacket(IEnumerable<byte> sector) =>
|
||||||
|
sector.Take(3).ToArray().SequenceEqual(_mpeg2PackHeaderStartCode);
|
||||||
|
|
||||||
|
#region Nested type: MpegHeader
|
||||||
|
|
||||||
|
public struct MpegHeader
|
||||||
|
{
|
||||||
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
|
||||||
|
public byte[] StartCode;
|
||||||
|
public byte PackIdentifier;
|
||||||
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 6)]
|
||||||
|
public byte[] SCRBlock;
|
||||||
|
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
|
||||||
|
public byte[] ProgramMuxRateBlock;
|
||||||
|
byte _packStuffingLengthBlock;
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
16
Aaru.Decryption/Enums.cs
Normal file
16
Aaru.Decryption/Enums.cs
Normal file
@@ -0,0 +1,16 @@
|
|||||||
|
// ReSharper disable UnusedMember.Global
|
||||||
|
|
||||||
|
namespace Aaru.Decryption;
|
||||||
|
|
||||||
|
public enum DvdCssKeyClass : byte
|
||||||
|
{
|
||||||
|
DvdCssCppmOrCprm = 0,
|
||||||
|
RewritableSecurityServicesA = 1
|
||||||
|
}
|
||||||
|
|
||||||
|
public enum DvdCssKeyType
|
||||||
|
{
|
||||||
|
Key1 = 0,
|
||||||
|
Key2 = 1,
|
||||||
|
BusKey = 2
|
||||||
|
}
|
||||||
19
Aaru.Decryption/LICENSE
Normal file
19
Aaru.Decryption/LICENSE
Normal file
@@ -0,0 +1,19 @@
|
|||||||
|
Copyright (c) 2015-2023 Natalia Portillo <claunia@claunia.com>
|
||||||
|
|
||||||
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
|
in the Software without restriction, including without limitation the rights
|
||||||
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
|
furnished to do so, subject to the following conditions:
|
||||||
|
|
||||||
|
The above copyright notice and this permission notice shall be included in
|
||||||
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
||||||
|
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
|
THE SOFTWARE.
|
||||||
134
Aaru.Decryption/Localization/Localization.Designer.cs
generated
Normal file
134
Aaru.Decryption/Localization/Localization.Designer.cs
generated
Normal file
@@ -0,0 +1,134 @@
|
|||||||
|
//------------------------------------------------------------------------------
|
||||||
|
// <auto-generated>
|
||||||
|
// This code was generated by a tool.
|
||||||
|
//
|
||||||
|
// Changes to this file may cause incorrect behavior and will be lost if
|
||||||
|
// the code is regenerated.
|
||||||
|
// </auto-generated>
|
||||||
|
//------------------------------------------------------------------------------
|
||||||
|
|
||||||
|
namespace Aaru.Decryption {
|
||||||
|
using System;
|
||||||
|
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||||
|
/// </summary>
|
||||||
|
// This class was auto-generated by the StronglyTypedResourceBuilder
|
||||||
|
// class via a tool like ResGen or Visual Studio.
|
||||||
|
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||||
|
// with the /str option, or rebuild your VS project.
|
||||||
|
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
|
||||||
|
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||||
|
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||||
|
internal class Localization {
|
||||||
|
|
||||||
|
private static global::System.Resources.ResourceManager resourceMan;
|
||||||
|
|
||||||
|
private static global::System.Globalization.CultureInfo resourceCulture;
|
||||||
|
|
||||||
|
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
|
||||||
|
internal Localization() {
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Returns the cached ResourceManager instance used by this class.
|
||||||
|
/// </summary>
|
||||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||||
|
internal static global::System.Resources.ResourceManager ResourceManager {
|
||||||
|
get {
|
||||||
|
if (object.ReferenceEquals(resourceMan, null)) {
|
||||||
|
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Aaru.Decryption.Localization.Localization", typeof(Localization).Assembly);
|
||||||
|
resourceMan = temp;
|
||||||
|
}
|
||||||
|
return resourceMan;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Overrides the current thread's CurrentUICulture property for all
|
||||||
|
/// resource lookups using this strongly typed resource class.
|
||||||
|
/// </summary>
|
||||||
|
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||||
|
internal static global::System.Globalization.CultureInfo Culture {
|
||||||
|
get {
|
||||||
|
return resourceCulture;
|
||||||
|
}
|
||||||
|
set {
|
||||||
|
resourceCulture = value;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to GET TITLE KEY (AGID: {1}, LBA: {2}, Sense: {3}) took {0} ms..
|
||||||
|
/// </summary>
|
||||||
|
internal static string GET_TITLE_KEY_AGID_1_LBA_2_Sense_3_took_0_ms {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("GET_TITLE_KEY_AGID_1_LBA_2_Sense_3_took_0_ms", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to INVALIDATE AGID (AGID: {1}, Sense: {2}, Last Error: {3}) took {0} ms..
|
||||||
|
/// </summary>
|
||||||
|
internal static string INVALIDATE_AGID_AGID_1_Sense_2_Last_Error_3_took_0_ms {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("INVALIDATE_AGID_AGID_1_Sense_2_Last_Error_3_took_0_ms", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to REPORT AGID CSS/CPPM (AGID: {1}, Sense: {2}, Last Error: {3}) took {0} ms..
|
||||||
|
/// </summary>
|
||||||
|
internal static string REPORT_AGID_CSS_CPPM_AGID_1_Sense_2_Last_Error_3_took_0_ms {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("REPORT_AGID_CSS_CPPM_AGID_1_Sense_2_Last_Error_3_took_0_ms", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to REPORT ASF (AGID: {1}, Sense: {2}, Last Error: {3}) took {0} ms..
|
||||||
|
/// </summary>
|
||||||
|
internal static string REPORT_ASF_AGID_1_Sense_2_Last_Error_3_took_0_ms {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("REPORT_ASF_AGID_1_Sense_2_Last_Error_3_took_0_ms", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to REPORT CHALLENGE (AGID: {1}, Sense: {2}, Last Error: {3}) took {0} ms..
|
||||||
|
/// </summary>
|
||||||
|
internal static string REPORT_CHALLENGE_AGID_1_Sense_2_Last_Error_3_took_0_ms {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("REPORT_CHALLENGE_AGID_1_Sense_2_Last_Error_3_took_0_ms", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to REPORT KEY1 (AGID: {1}, Sense: {2}, Last Error: {3}) took {0} ms..
|
||||||
|
/// </summary>
|
||||||
|
internal static string REPORT_KEY1_AGID_1_Sense_2_Last_Error_3_took_0_ms {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("REPORT_KEY1_AGID_1_Sense_2_Last_Error_3_took_0_ms", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to SEND CHALLENGE (AGID: {1}, Challenge {2}, Sense: {3}, Last Error: {4}) took {0} ms..
|
||||||
|
/// </summary>
|
||||||
|
internal static string SEND_CHALLENGE_AGID_1_Challenge_2_Sense_3_Last_Error_4_took_0_ms {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("SEND_CHALLENGE_AGID_1_Challenge_2_Sense_3_Last_Error_4_took_0_ms", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Looks up a localized string similar to SEND CHALLENGE (AGID: {1}, KEY2 {2}, Sense: {3}, Last Error: {4}) took {0} ms..
|
||||||
|
/// </summary>
|
||||||
|
internal static string SEND_CHALLENGE_AGID_1_KEY2_2_Sense_3_Last_Error_4_took_0_ms {
|
||||||
|
get {
|
||||||
|
return ResourceManager.GetString("SEND_CHALLENGE_AGID_1_KEY2_2_Sense_3_Last_Error_4_took_0_ms", resourceCulture);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
43
Aaru.Decryption/Localization/Localization.es.resx
Normal file
43
Aaru.Decryption/Localization/Localization.es.resx
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
<root>
|
||||||
|
<!-- ReSharper disable MarkupTextTypo -->
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>1.3</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral,
|
||||||
|
PublicKeyToken=b77a5c561934e089
|
||||||
|
</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral,
|
||||||
|
PublicKeyToken=b77a5c561934e089
|
||||||
|
</value>
|
||||||
|
</resheader>
|
||||||
|
<data name="GET_TITLE_KEY_AGID_1_LBA_2_Sense_3_took_0_ms" xml:space="preserve">
|
||||||
|
<value>GET TITLE KEY (AGID: {1}, LBA: {2}, Sense: {3}) tardó {0} ms.</value>
|
||||||
|
</data>
|
||||||
|
<data name="INVALIDATE_AGID_AGID_1_Sense_2_Last_Error_3_took_0_ms" xml:space="preserve">
|
||||||
|
<value>INVALIDATE AGID (AGID: {1}, Sense: {2}, Error: {3}) tardó {0} ms.</value>
|
||||||
|
</data>
|
||||||
|
<data name="REPORT_AGID_CSS_CPPM_AGID_1_Sense_2_Last_Error_3_took_0_ms" xml:space="preserve">
|
||||||
|
<value>REPORT AGID CSS/CPPM (AGID: {1}, Sense: {2}, Error: {3}) tardó {0} ms.</value>
|
||||||
|
</data>
|
||||||
|
<data name="REPORT_ASF_AGID_1_Sense_2_Last_Error_3_took_0_ms" xml:space="preserve">
|
||||||
|
<value>REPORT ASF (AGID: {1}, Sense: {2}, Error: {3}) tardó {0} ms.</value>
|
||||||
|
</data>
|
||||||
|
<data name="REPORT_CHALLENGE_AGID_1_Sense_2_Last_Error_3_took_0_ms" xml:space="preserve">
|
||||||
|
<value>REPORT CHALLENGE (AGID: {1}, Sense: {2}, Error: {3}) tardó {0} ms.</value>
|
||||||
|
</data>
|
||||||
|
<data name="REPORT_KEY1_AGID_1_Sense_2_Last_Error_3_took_0_ms" xml:space="preserve">
|
||||||
|
<value>REPORT KEY1 (AGID: {1}, Sense: {2}, Error: {3}) tardó {0} ms.</value>
|
||||||
|
</data>
|
||||||
|
<data name="SEND_CHALLENGE_AGID_1_Challenge_2_Sense_3_Last_Error_4_took_0_ms" xml:space="preserve">
|
||||||
|
<value>SEND CHALLENGE (AGID: {1}, Desafío {2}, Sense: {3}, Error: {4}) tardó {0} ms.</value>
|
||||||
|
</data>
|
||||||
|
<data name="SEND_CHALLENGE_AGID_1_KEY2_2_Sense_3_Last_Error_4_took_0_ms" xml:space="preserve">
|
||||||
|
<value>SEND CHALLENGE (AGID: {1}, KEY2 {2}, Sense: {3}, Error: {4}) tardó {0} ms.</value>
|
||||||
|
</data>
|
||||||
|
</root>
|
||||||
50
Aaru.Decryption/Localization/Localization.resx
Normal file
50
Aaru.Decryption/Localization/Localization.resx
Normal file
@@ -0,0 +1,50 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
|
||||||
|
<root>
|
||||||
|
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||||
|
xmlns:msdata="urn:schemas-microsoft-com:xml-msdata"
|
||||||
|
id="root"
|
||||||
|
xmlns="">
|
||||||
|
<xsd:element name="root" msdata:IsDataSet="true"></xsd:element>
|
||||||
|
</xsd:schema>
|
||||||
|
<resheader name="resmimetype">
|
||||||
|
<value>text/microsoft-resx</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="version">
|
||||||
|
<value>1.3</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="reader">
|
||||||
|
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral,
|
||||||
|
PublicKeyToken=b77a5c561934e089
|
||||||
|
</value>
|
||||||
|
</resheader>
|
||||||
|
<resheader name="writer">
|
||||||
|
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral,
|
||||||
|
PublicKeyToken=b77a5c561934e089
|
||||||
|
</value>
|
||||||
|
</resheader>
|
||||||
|
<data name="REPORT_ASF_AGID_1_Sense_2_Last_Error_3_took_0_ms" xml:space="preserve">
|
||||||
|
<value>REPORT ASF (AGID: {1}, Sense: {2}, Last Error: {3}) took {0} ms.</value>
|
||||||
|
</data>
|
||||||
|
<data name="INVALIDATE_AGID_AGID_1_Sense_2_Last_Error_3_took_0_ms" xml:space="preserve">
|
||||||
|
<value>INVALIDATE AGID (AGID: {1}, Sense: {2}, Last Error: {3}) took {0} ms.</value>
|
||||||
|
</data>
|
||||||
|
<data name="REPORT_AGID_CSS_CPPM_AGID_1_Sense_2_Last_Error_3_took_0_ms" xml:space="preserve">
|
||||||
|
<value>REPORT AGID CSS/CPPM (AGID: {1}, Sense: {2}, Last Error: {3}) took {0} ms.</value>
|
||||||
|
</data>
|
||||||
|
<data name="REPORT_KEY1_AGID_1_Sense_2_Last_Error_3_took_0_ms" xml:space="preserve">
|
||||||
|
<value>REPORT KEY1 (AGID: {1}, Sense: {2}, Last Error: {3}) took {0} ms.</value>
|
||||||
|
</data>
|
||||||
|
<data name="REPORT_CHALLENGE_AGID_1_Sense_2_Last_Error_3_took_0_ms" xml:space="preserve">
|
||||||
|
<value>REPORT CHALLENGE (AGID: {1}, Sense: {2}, Last Error: {3}) took {0} ms.</value>
|
||||||
|
</data>
|
||||||
|
<data name="SEND_CHALLENGE_AGID_1_Challenge_2_Sense_3_Last_Error_4_took_0_ms" xml:space="preserve">
|
||||||
|
<value>SEND CHALLENGE (AGID: {1}, Challenge {2}, Sense: {3}, Last Error: {4}) took {0} ms.</value>
|
||||||
|
</data>
|
||||||
|
<data name="SEND_CHALLENGE_AGID_1_KEY2_2_Sense_3_Last_Error_4_took_0_ms" xml:space="preserve">
|
||||||
|
<value>SEND CHALLENGE (AGID: {1}, KEY2 {2}, Sense: {3}, Last Error: {4}) took {0} ms.</value>
|
||||||
|
</data>
|
||||||
|
<data name="GET_TITLE_KEY_AGID_1_LBA_2_Sense_3_took_0_ms" xml:space="preserve">
|
||||||
|
<value>GET TITLE KEY (AGID: {1}, LBA: {2}, Sense: {3}) took {0} ms.</value>
|
||||||
|
</data>
|
||||||
|
</root>
|
||||||
Reference in New Issue
Block a user