Skip to content

Commit

Permalink
Fix JSDoc tags for full documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
federicobond committed May 31, 2016
1 parent e120370 commit 40cbd89
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 8 deletions.
2 changes: 1 addition & 1 deletion core/bn.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @constructor
* Constructs a new bignum from another bignum, a number or a hex string.
* @constructor
*/
sjcl.bn = function(it) {
this.initWith(it);
Expand Down
4 changes: 2 additions & 2 deletions core/cbc.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ if (sjcl.beware === undefined) {
}
sjcl.beware["CBC mode is dangerous because it doesn't protect message integrity."
] = function() {
/** @namespace
/**
* Dangerous: CBC mode with PKCS#5 padding.
*
* @namespace
* @author Emily Stark
* @author Mike Hamburg
* @author Dan Boneh
Expand Down
6 changes: 4 additions & 2 deletions core/ccmArrayBuffer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,10 @@
* @author Marco Munizaga
*/

/** @namespace CTR mode with CBC MAC. */

/**
* CTR mode with CBC MAC.
* @namespace
*/
sjcl.arrayBuffer = sjcl.arrayBuffer || {};

//patch arraybuffers if they don't exist
Expand Down
5 changes: 4 additions & 1 deletion core/codecBytes.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
* @author Dan Boneh
*/

/** @namespace Arrays of bytes */
/**
* Arrays of bytes
* @namespace
*/
sjcl.codec.bytes = {
/** Convert from a bitArray to an array of bytes. */
fromBits: function (arr) {
Expand Down
4 changes: 2 additions & 2 deletions core/ctr.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ if (sjcl.beware === undefined) {
}
sjcl.beware["CTR mode is dangerous because it doesn't protect message integrity."
] = function() {
/** @namespace
/**
* Dangerous: CTR mode.
*
* @namespace
* @author Torben Haase
*/
sjcl.mode.ctr = {
Expand Down

0 comments on commit 40cbd89

Please sign in to comment.