-
Notifications
You must be signed in to change notification settings - Fork 802
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
67a586a
commit 040824a
Showing
24 changed files
with
531 additions
and
401 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
// Copyright (c) Microsoft Corporation. All Rights Reserved. See License.txt in the project root for license information. | ||
|
||
/// Functions associated with signing il assemblies which | ||
/// vary between supported implementations of the CLI Common Language | ||
/// Runtime, e.g. between the SSCLI, Mono and the Microsoft CLR. | ||
/// | ||
module internal FSharp.Compiler.AbstractIL.Internal.StrongNameSign | ||
|
||
//--------------------------------------------------------------------- | ||
// Strong name signing | ||
//--------------------------------------------------------------------- | ||
|
||
type keyContainerName = string | ||
type keyPair = byte[] | ||
type pubkey = byte[] | ||
type pubkeyOptions = byte[] * bool | ||
|
||
val signerOpenPublicKeyFile: string -> pubkey | ||
val signerOpenKeyPairFile: string -> keyPair | ||
val signerSignatureSize: pubkey -> int | ||
val signerGetPublicKeyForKeyPair: keyPair -> pubkey | ||
val signerGetPublicKeyForKeyContainer: string -> pubkey | ||
val signerCloseKeyContainer: keyContainerName -> unit | ||
val signerSignFileWithKeyPair: string -> keyPair -> unit | ||
val signerSignFileWithKeyContainer: string -> keyContainerName -> unit | ||
|
||
|
||
//--------------------------------------------------------------------- | ||
// Strong name signing | ||
//--------------------------------------------------------------------- | ||
[<Sealed>] | ||
type ILStrongNameSigner = | ||
member PublicKey: byte[] | ||
static member OpenPublicKeyOptions: string -> bool -> ILStrongNameSigner | ||
static member OpenPublicKey: byte[] -> ILStrongNameSigner | ||
static member OpenKeyPairFile: string -> ILStrongNameSigner | ||
static member OpenKeyContainer: string -> ILStrongNameSigner | ||
member Close: unit -> unit | ||
member IsFullySigned: bool | ||
member PublicKey: pubkey | ||
member SignatureSize: int | ||
member SignFile: string -> unit | ||
|
||
//--------------------------------------------------------------------- | ||
// Strong name signing | ||
//--------------------------------------------------------------------- | ||
|
||
val signerOpenPublicKeyFile: string -> pubkey | ||
val signerOpenKeyPairFile: string -> keyPair | ||
val signerSignatureSize: pubkey -> int | ||
val signerGetPublicKeyForKeyPair: keyPair -> pubkey | ||
val signerGetPublicKeyForKeyContainer: string -> pubkey | ||
val signerCloseKeyContainer: keyContainerName -> unit | ||
val signerSignFileWithKeyPair: string -> keyPair -> unit | ||
val signerSignFileWithKeyContainer: string -> keyContainerName -> unit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.