mirror of
https://github.com/openpgpjs/openpgpjs.git
synced 2026-03-13 11:55:01 +00:00
Fix typos
This patch contains several trivial/inconsequential orthographic fixes.
This commit is contained in:
@@ -813,7 +813,7 @@ function safeAdd_64_2(x, y)
|
||||
* @param {Int_64} a The first 64-bit integer argument to be added
|
||||
* @param {Int_64} b The second 64-bit integer argument to be added
|
||||
* @param {Int_64} c The third 64-bit integer argument to be added
|
||||
* @param {Int_64} d The fouth 64-bit integer argument to be added
|
||||
* @param {Int_64} d The fourth 64-bit integer argument to be added
|
||||
* @return {Int_64} The sum of a + b + c + d
|
||||
*/
|
||||
function safeAdd_64_4(a, b, c, d)
|
||||
@@ -843,8 +843,8 @@ function safeAdd_64_4(a, b, c, d)
|
||||
* @param {Int_64} a The first 64-bit integer argument to be added
|
||||
* @param {Int_64} b The second 64-bit integer argument to be added
|
||||
* @param {Int_64} c The third 64-bit integer argument to be added
|
||||
* @param {Int_64} d The fouth 64-bit integer argument to be added
|
||||
* @param {Int_64} e The fouth 64-bit integer argument to be added
|
||||
* @param {Int_64} d The fourth 64-bit integer argument to be added
|
||||
* @param {Int_64} e The fourth 64-bit integer argument to be added
|
||||
* @return {Int_64} The sum of a + b + c + d + e
|
||||
*/
|
||||
function safeAdd_64_5(a, b, c, d, e)
|
||||
|
||||
@@ -11,7 +11,7 @@ import * as openpgp from './openpgp';
|
||||
export default openpgp;
|
||||
|
||||
/**
|
||||
* Export each high level api function seperately.
|
||||
* Export each high level api function separately.
|
||||
* Usage:
|
||||
*
|
||||
* import { encryptMessage } from 'openpgp.js'
|
||||
|
||||
@@ -349,7 +349,7 @@ function isValidSigningKeyPacket(keyPacket, signature) {
|
||||
* @returns {(module:packet/public_subkey|module:packet/secret_subkey|module:packet/secret_key|module:packet/public_key|null)} key packet or null if no encryption key has been found
|
||||
*/
|
||||
Key.prototype.getEncryptionKeyPacket = function() {
|
||||
// V4: by convention subkeys are prefered for encryption service
|
||||
// V4: by convention subkeys are preferred for encryption service
|
||||
// V3: keys MUST NOT have subkeys
|
||||
if (this.subKeys) {
|
||||
for (var i = 0; i < this.subKeys.length; i++) {
|
||||
@@ -546,7 +546,7 @@ Key.prototype.getPrimaryUser = function(allowExpired=false) {
|
||||
* users, subkeys, certificates are merged into the destination key,
|
||||
* duplicates are ignored.
|
||||
* If the specified key is a private key and the destination key is public,
|
||||
* the destination key is tranformed to a private key.
|
||||
* the destination key is transformed to a private key.
|
||||
* @param {module:key~Key} key source key to merge
|
||||
*/
|
||||
Key.prototype.update = function(key) {
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
|
||||
/**
|
||||
* @fileoverview This module implements packet list cloning required to
|
||||
* pass certain object types beteen the web worker and main thread using
|
||||
* pass certain object types between the web worker and main thread using
|
||||
* the structured cloning algorithm.
|
||||
*/
|
||||
|
||||
|
||||
@@ -15,7 +15,7 @@
|
||||
// License along with this library; if not, write to the Free Software
|
||||
// Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
// Hint: We hold our MPIs as an array of octets in big endian format preceeding a two
|
||||
// Hint: We hold our MPIs as an array of octets in big endian format preceding a two
|
||||
// octet scalar: MPI: [a,b,c,d,e,f]
|
||||
// - MPI size: (a << 8) | b
|
||||
// - MPI = c | d << 8 | e << ((MPI.length -2)*8) | f ((MPI.length -2)*8)
|
||||
|
||||
Reference in New Issue
Block a user