-
Notifications
You must be signed in to change notification settings - Fork 89
Commit
- Loading branch information
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
/** | ||
* Создает хэш сообщения по ГОСТ Р 34.11-2012 256 бит | ||
* Создает хеш сообщения по ГОСТ Р 34.11-2012 256 бит | ||
* https://ru.wikipedia.org/wiki/%D0%A1%D1%82%D1%80%D0%B8%D0%B1%D0%BE%D0%B3_(%D1%85%D0%B5%D1%88-%D1%84%D1%83%D0%BD%D0%BA%D1%86%D0%B8%D1%8F) | ||
* | ||
* @param unencryptedMessage - сообщение для хеширования | ||
* | ||
* @returns хэш | ||
* @returns хеш | ||
*/ | ||
export declare const createHash: (unencryptedMessage: string | ArrayBuffer) => Promise<string>; |
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,7 @@ | ||
// Type definitions for crypto-pro 2.1.0 | ||
// Project: crypto-pro | ||
// Definitions by: Vitalii Goma https://github.com/vgoma | ||
|
||
export as namespace cryptoPro; | ||
|
||
export * from './api'; |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,6 @@ | |
"symlink-dir": "3.1.2" | ||
}, | ||
"dependencies": { | ||
"crypto-pro": "2.0.5" | ||
"crypto-pro": "2.1.0" | ||
} | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** | ||
* Создает присоединенную подпись сообщения по отпечатку сертификата | ||
* | ||
* @param thumbprint - отпечаток сертификата | ||
* @param message - подписываемое сообщение | ||
* @returns подпись в формате PKCS#7 | ||
*/ | ||
export declare const createAttachedSignature: (thumbprint: string, unencryptedMessage: string | ArrayBuffer) => Promise<string>; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
/** | ||
* Создает отсоединенную подпись хеша по отпечатку сертификата | ||
* | ||
* @param thumbprint - отпечаток сертификата | ||
* @param messageHash - хеш подписываемого сообщения, сгенерированный по ГОСТ Р 34.11-2012 256 бит | ||
* @returns подпись в формате PKCS#7 | ||
*/ | ||
export declare const createDetachedSignature: (thumbprint: string, messageHash: string) => Promise<string>; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,9 @@ | ||
declare type Algorithm = 'GOST_3411' | 'GOST_3411_2012_256' | 'GOST_3411_2012_512' | 'GOST_3411_HMAC' | 'GOST_3411_2012_256_HMAC' | 'GOST_3411_2012_512_HMAC'; | ||
/** | ||
* Создает хэш сообщения по ГОСТ Р 34.11 | ||
* Создает хеш сообщения по ГОСТ Р 34.11-2012 256 бит | ||
* https://ru.wikipedia.org/wiki/%D0%A1%D1%82%D1%80%D0%B8%D0%B1%D0%BE%D0%B3_(%D1%85%D0%B5%D1%88-%D1%84%D1%83%D0%BD%D0%BA%D1%86%D0%B8%D1%8F) | ||
* | ||
* @param unencryptedMessage - сообщение для хеширования | ||
* @param algorithm - один из алгоритмов хеширования: | ||
* GOST_3411 | ||
* GOST_3411_2012_256 | ||
* GOST_3411_2012_512 - по умолчанию | ||
* GOST_3411_HMAC | ||
* GOST_3411_2012_256_HMAC | ||
* GOST_3411_2012_512_HMAC | ||
* | ||
* @returns хэш | ||
* @returns хеш | ||
*/ | ||
export declare const createHash: (unencryptedMessage: string | ArrayBuffer, algorithm?: Algorithm) => Promise<string>; | ||
export {}; | ||
export declare const createHash: (unencryptedMessage: string | ArrayBuffer) => Promise<string>; |